itk::DataObject* itk_image = NULL;
std::string r = "";
- cpPlugins_Image_Input_Demangle_Dimension_AllScalarTypes(
- 2, image, itk_image, r, _DemangleOutput
- );
- else cpPlugins_Image_Input_Demangle_Dimension_AllScalarTypes(
- 3, image, itk_image, r, _DemangleOutput
- );
- else cpPlugins_Image_Input_Demangle_Dimension_AllScalarTypes(
- 4, image, itk_image, r, _DemangleOutput
- );
+ cpPlugins_Image_Demangle_AllScalarTypes( 2, image, itk_image, r, _GD0 );
+ else cpPlugins_Image_Demangle_AllScalarTypes( 3, image, itk_image, r, _GD0 );
+ else cpPlugins_Image_Demangle_AllScalarTypes( 4, image, itk_image, r, _GD0 );
else r = "BinaryThresholdImageFilter: Input image type not supported.";
return( r );
}
// -------------------------------------------------------------------------
template< class I >
std::string cpPlugins::BasicFilters::BinaryThresholdImageFilter::
-_DemangleOutput( itk::DataObject* image )
+_GD0( itk::DataObject* image )
{
return(
this->_RealGD< I, itk::Image< unsigned char, I::ImageDimension > >(
_OP out_val = _OP( this->m_Parameters.GetValueAsReal( "OutsideValue" ) );
// Configure filter
- _F* filter = dynamic_cast< _F* >( this->m_RealProcessObject.GetPointer( ) );
- if( filter == NULL )
- {
- this->m_RealProcessObject = _F::New( );
- filter = dynamic_cast< _F* >( this->m_RealProcessObject.GetPointer( ) );
-
- } // fi
+ _F* filter = this->_CreateITK< _F >( );
filter->SetInput( dynamic_cast< I* >( image ) );
filter->SetLowerThreshold( lower_val );
filter->SetUpperThreshold( upper_val );
this->GetOutput< cpPlugins::Interface::Image >( 0 );
if( out != NULL )
{
- out->SetITKImage< O >( filter->GetOutput( ) );
+ out->SetITK< O >( filter->GetOutput( ) );
return( "" );
}
else