#include <ITKDistanceMapFilters/SignedMaurerDistanceMapImageFilter.h>
-#include <cpInstances/Image.h>
+#include <cpInstances/DataObjects/Image.h>
#include <itkSignedMaurerDistanceMapImageFilter.h>
SignedMaurerDistanceMapImageFilter( )
: Superclass( )
{
- typedef cpInstances::Image _TImage;
+ typedef cpInstances::DataObjects::Image _TImage;
this->_ConfigureInput< _TImage >( "Input", true, false );
this->_ConfigureOutput< _TImage >( "Output" );
this->m_Parameters.ConfigureAsBool( "UseImageSpacing", true );
std::vector< std::string > choices;
-#ifdef cpPlugins_CONFIG_REAL_TYPES_float
choices.push_back( "float" );
-#endif // cpPlugins_CONFIG_REAL_TYPES_float
-#ifdef cpPlugins_CONFIG_REAL_TYPES_double
choices.push_back( "double" );
-#endif // cpPlugins_CONFIG_REAL_TYPES_double
this->m_Parameters.ConfigureAsChoices( "OutputResolution", choices );
}
{
std::string out_res =
this->m_Parameters.GetSelectedChoice( "OutputResolution" );
-#ifdef cpPlugins_CONFIG_REAL_TYPES_float
if( out_res == "float" ) this->_GD1< _TImage, float >( image );
-#endif // cpPlugins_CONFIG_REAL_TYPES_float
-#ifdef cpPlugins_CONFIG_REAL_TYPES_double
if( out_res == "double" ) this->_GD1< _TImage, double >( image );
-#endif // cpPlugins_CONFIG_REAL_TYPES_double
}
// -------------------------------------------------------------------------