std::string fpaPlugins::AllPixelsImageGrowFunctionSource::
_GenerateData( )
{
- cpPlugins::Interface::Image* image =
- this->GetInput< cpPlugins::Interface::Image >( "ReferenceImage" );
+ auto image =
+ this->GetInputData< cpPlugins::Interface::Image >( "ReferenceImage" );
if( image == NULL )
return( "fpaPlugins::AllPixelsImageGrowFunctionSource: No input reference image." );
typename _F::Pointer functor = _F::New( );
// Connect output
- GrowFunction* out = this->GetOutput< GrowFunction >( "Output" );
+ auto out = this->GetOutputData< GrowFunction >( "Output" );
if( out != NULL )
{
out->SetITK< _F >( functor );
Self& operator=( const Self& other );
};
- // ---------------------------------------------------------------------
- CPPLUGINS_INHERIT_PROVIDER( AllPixelsImageGrowFunctionSource );
-
} // ecapseman
#endif // __FPAPLUGINS__ALLPIXELSIMAGEGROWFUNCTIONSOURCE__H__
std::set< unsigned long > m_Observers;
};
- // -----------------------------------------------------------------------
- /*
- CPPLUGINS_INHERIT_PROVIDER( BaseImageFilter );
- */
-
} // ecapseman
// -------------------------------------------------------------------------
std::string fpaPlugins::ImageDijkstra::
_GenerateData( )
{
- cpPlugins::Interface::Image* input =
- this->GetInput< cpPlugins::Interface::Image >( "Input" );
+ auto input =
+ this->GetInputData< cpPlugins::Interface::Image >( "Input" );
if( input == NULL )
return( "fpaPlugins::ImageDijkstra: No input image." );
typedef typename I::PointType _TPoint;
typedef typename _TFilter::TMinimumSpanningTree _TMST;
- cpPlugins::Interface::PointList* seeds =
- this->GetInput< cpPlugins::Interface::PointList >( "Seeds" );
+ auto seeds =
+ this->GetInputData< cpPlugins::Interface::PointList >( "Seeds" );
if( seeds == NULL )
return( "fpaPlugins::ImageRegionGrow: No given seeds." );
I* image = dynamic_cast< I* >( data );
this->_DeconfigureDebugger( filter );
// Connect output
- cpPlugins::Interface::Image* out =
- this->GetOutput< cpPlugins::Interface::Image >( "Output" );
- fpaPlugins::MinimumSpanningTree* mst =
- this->GetOutput< fpaPlugins::MinimumSpanningTree >( "MinimumSpanningTree" );
+ auto out =
+ this->GetOutputData< cpPlugins::Interface::Image >( "Output" );
+ auto mst =
+ this->GetOutputData< fpaPlugins::MinimumSpanningTree >( "MinimumSpanningTree" );
if( out != NULL )
out->SetITK< _TOut >( filter->GetOutput( ) );
else
Self& operator=( const Self& other );
};
- // ---------------------------------------------------------------------
- CPPLUGINS_INHERIT_PROVIDER( ImageDijkstra );
-
} // ecapseman
#endif // __FPAPLUGINS__IMAGEDIJKSTRA__H__
std::string fpaPlugins::ImageRegionGrow::
_GenerateData( )
{
- cpPlugins::Interface::Image* input =
- this->GetInput< cpPlugins::Interface::Image >( "Input" );
+ auto input =
+ this->GetInputData< cpPlugins::Interface::Image >( "Input" );
if( input == NULL )
return( "fpaPlugins::ImageRegionGrow: No input image." );
typedef typename _TFilter::TGrowingFunction _TFunctor;
typedef typename I::PointType _TPoint;
- cpPlugins::Interface::PointList* seeds =
- this->GetInput< cpPlugins::Interface::PointList >( "Seeds" );
+ auto seeds =
+ this->GetInputData< cpPlugins::Interface::PointList >( "Seeds" );
if( seeds == NULL )
return( "fpaPlugins::ImageRegionGrow: No given seeds." );
I* image = dynamic_cast< I* >( data );
// Connect grow functor (or create a tautology)
typename _TFunctor::Pointer functor;
- cpPlugins::Interface::DataObject* functor_wrapper =
- this->GetInput< cpPlugins::Interface::DataObject >( "GrowFunction" );
+ auto functor_wrapper =
+ this->GetInputData< cpPlugins::Interface::DataObject >( "GrowFunction" );
if( functor_wrapper != NULL )
functor = functor_wrapper->GetITK< _TFunctor >( );
if( functor.IsNull( ) )
this->_DeconfigureDebugger( filter );
// Connect output
- cpPlugins::Interface::Image* out =
- this->GetOutput< cpPlugins::Interface::Image >( "Output" );
+ auto out =
+ this->GetOutputData< cpPlugins::Interface::Image >( "Output" );
if( out != NULL )
{
out->SetITK< _TOut >( filter->GetOutput( ) );
Self& operator=( const Self& other );
};
- // ---------------------------------------------------------------------
- CPPLUGINS_INHERIT_PROVIDER( ImageRegionGrow );
-
} // ecapseman
#endif // __FPAPLUGINS__IMAGEREGIONGROW__H__
typedef itk::ImageBase< 2 > _2D;
typedef itk::ImageBase< 3 > _3D;
- cpPlugins::Interface::Image* input =
- this->GetInput< cpPlugins::Interface::Image >( "ReferenceImage" );
+ auto input =
+ this->GetInputData< cpPlugins::Interface::Image >( "ReferenceImage" );
if( input == NULL )
return( "fpaPlugins::MinimumSpanningTreeToMesh: No reference image." );
typedef fpa::Base::MinimumSpanningTree< _V, _VC > _MST;
// Get inputs
- fpaPlugins::MinimumSpanningTree* mst_wrapper =
- this->GetInput< fpaPlugins::MinimumSpanningTree >( "Input" );
+ auto mst_wrapper =
+ this->GetInputData< fpaPlugins::MinimumSpanningTree >( "Input" );
if( mst_wrapper == NULL )
return( "fpaPlugins::MinimumSpanningTreeToMesh: No input MST" );
_MST* mst = mst_wrapper->GetITK< _MST >( );
if( mst == NULL )
return( "fpaPlugins::MinimumSpanningTreeToMesh: Input MST type not supported." );
- cpPlugins::Interface::PointList* seeds =
- this->GetInput< cpPlugins::Interface::PointList >( "Seeds" );
+ auto seeds =
+ this->GetInputData< cpPlugins::Interface::PointList >( "Seeds" );
if( seeds == NULL )
return( "fpaPlugins::MinimumSpanningTreeToMesh: No given seeds." );
if( seeds->GetNumberOfPoints( ) < 2 )
return( "fpaPlugins::MinimumSpanningTreeToMesh: Not enough seeds (<2)." );
// Get output
- cpPlugins::Interface::Mesh* out =
- this->GetOutput< cpPlugins::Interface::Mesh >( "Output" );
+ auto out =
+ this->GetOutputData< cpPlugins::Interface::Mesh >( "Output" );
vtkSmartPointer< vtkPolyData > pd = out->GetVTK< vtkPolyData >( );
if( pd.GetPointer( ) == NULL )
{
Self& operator=( const Self& other );
};
- // ---------------------------------------------------------------------
- CPPLUGINS_INHERIT_PROVIDER( MinimumSpanningTreeToMesh );
-
} // ecapseman
#endif // __FPAPLUGINS__MINIMUMSPANNINGTREETOMESH__H__
std::string fpaPlugins::ThresholdImageGrowFunctionSource::
_GenerateData( )
{
- cpPlugins::Interface::Image* image =
- this->GetInput< cpPlugins::Interface::Image >( "ReferenceImage" );
+ auto image =
+ this->GetInputData< cpPlugins::Interface::Image >( "ReferenceImage" );
if( image == NULL )
return( "fpaPlugins::ThresholdImageGrowFunctionSource: No input reference image." );
f->SetUpperThreshold( this->m_Parameters->GetReal( "UpperThreshold" ) );
// Connect output
- GrowFunction* out = this->GetOutput< GrowFunction >( "Output" );
+ auto out = this->GetOutputData< GrowFunction >( "Output" );
if( out != NULL )
{
out->SetITK< _F >( f );
Self& operator=( const Self& other );
};
- // ---------------------------------------------------------------------
- CPPLUGINS_INHERIT_PROVIDER( ThresholdImageGrowFunctionSource );
-
} // ecapseman
#endif // __FPAPLUGINS__THRESHOLDIMAGEGROWFUNCTIONSOURCE__H__