}
// -------------------------------------------------------------------------
-std::string fpaPlugins::RegionGrowThresholdFunction::
+void fpaPlugins::RegionGrowThresholdFunction::
_GenerateData( )
{
- auto image =
- this->GetInputData( "ReferenceImage" )->GetITK< itk::DataObject >( );
- std::string cpPlugin_Image_Demangle_Pixel_AllScalars( r, _GD0, image, 2 );
- if( r != "" ) cpPlugin_Image_Demangle_Pixel_AllScalars( r, _GD0, image, 3 );
- return( r );
+ auto image = this->GetInputData< itk::DataObject >( "ReferenceImage" );
+ cpPlugins_Image_Demangle_Pixel_AllScalars ( _GD0, image, 2 );
+ else cpPlugins_Image_Demangle_Pixel_AllScalars( _GD0, image, 3 );
+ else this->_Error( "No valid input image." );
}
// -------------------------------------------------------------------------
template< class _TImage >
-std::string fpaPlugins::RegionGrowThresholdFunction::
+void fpaPlugins::RegionGrowThresholdFunction::
_GD0( _TImage* image )
{
typedef
fpa::Image::Functors::RegionGrowThresholdFunction< _TImage >
_TFunctor;
- if( image == NULL )
- return( "fpaPlugins::RegionGrowThresholdFunction: invalid image type." );
-
- auto out = this->GetOutputData( "Output" );
+ auto out = this->GetOutput( "Output" );
auto f = out->GetITK< _TFunctor >( );
if( f == NULL )
{
} // fi
f->SetLowerThreshold( this->m_Parameters.GetReal( "LowerThreshold" ) );
f->SetUpperThreshold( this->m_Parameters.GetReal( "UpperThreshold" ) );
- return( "" );
}
// eof - $RCSfile$