Skip to content
Snippets Groups Projects
Commit 3c0c08bc authored by Emmanuel Christophe's avatar Emmanuel Christophe
Browse files

REFAC: ImageToPointSetFilter Should not copy/paste methods from base class

parent 9b8ac7fd
No related branches found
No related tags found
No related merge requests found
......@@ -24,7 +24,7 @@ namespace otb
{
/** \class ImageToPointSetFilter
* \brief
* \brief Base class to output PointSet data with image data as input
*
* ImageToPointSetFilter is the base class for all process objects that output
* Point Set data and require image data as input. Specifically, this class
......@@ -47,7 +47,7 @@ public:
itkTypeMacro(ImageToPointSetFilter, PointSetSource);
/** Create a valid output. */
itk::DataObject::Pointer MakeOutput(unsigned int idx);
// itk::DataObject::Pointer MakeOutput(unsigned int idx);
/** Some Image related typedefs. */
typedef TInputImage InputImageType;
......@@ -69,7 +69,7 @@ public:
const InputImageType * GetInput(unsigned int idx);
/** Get the output Point Set of this process object. */
OutputPointSetType * GetOutput(void);
// OutputPointSetType * GetOutput(void);
/** Prepare the output */
void GenerateOutputInformation(void);
......
......@@ -54,14 +54,14 @@ ImageToPointSetFilter<TInputImage,TOutputPointSet>
/**
* Make Output
*/
template <class TInputImage, class TOutputPointSet>
itk::DataObject::Pointer
ImageToPointSetFilter<TInputImage,TOutputPointSet>
::MakeOutput(unsigned int)
{
OutputPointSetPointer outputPointSet = OutputPointSetType::New();
return dynamic_cast< itk::DataObject *>( outputPointSet.GetPointer() );
}
// template <class TInputImage, class TOutputPointSet>
// itk::DataObject::Pointer
// ImageToPointSetFilter<TInputImage,TOutputPointSet>
// ::MakeOutput(unsigned int)
// {
// OutputPointSetPointer outputPointSet = OutputPointSetType::New();
// return dynamic_cast< itk::DataObject *>( outputPointSet.GetPointer() );
// }
......@@ -98,14 +98,14 @@ ImageToPointSetFilter<TInputImage,TOutputPointSet>
/**
*
*/
template <class TInputImage, class TOutputPointSet>
typename ImageToPointSetFilter<TInputImage,TOutputPointSet>::OutputPointSetType *
ImageToPointSetFilter<TInputImage,TOutputPointSet>
::GetOutput(void)
{
return dynamic_cast<OutputPointSetType*>
(this->ProcessObjectType::GetOutput(0));
}
// template <class TInputImage, class TOutputPointSet>
// typename ImageToPointSetFilter<TInputImage,TOutputPointSet>::OutputPointSetType *
// ImageToPointSetFilter<TInputImage,TOutputPointSet>
// ::GetOutput(void)
// {
// return dynamic_cast<OutputPointSetType*>
// (this->ProcessObjectType::GetOutput(0));
// }
/**
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment