SET(
_bash_APPS
+ CreateRealConfig
CreateInstances
CreateDemanglers
CreatePlugins
#define cpPlugins_CONFIG_VECTORS "@cpPlugins_CONFIG_VECTORS@"
#define cpPlugins_CONFIG_DIFFUSIONTENSORS "@cpPlugins_CONFIG_DIFFUSIONTENSORS@"
#define cpPlugins_CONFIG_MATRICES "@cpPlugins_CONFIG_MATRICES@"
+#define cpPlugins_ALL_CONFIGS "@cpPlugins_ALL_CONFIGS@"
// -------------------------------------------------------------------------
#define cpPlugins_bash_OS_@CMAKE_SYSTEM_NAME@
--- /dev/null
+#include <bash/Config.h>
+
+// -------------------------------------------------------------------------
+int main( int argc, char* argv[] )
+{
+ // Get inputs
+ if( argc < 2 )
+ {
+ std::cerr << "Usage: " << argv[ 0 ] << " output_file" << std::endl;
+ return( 1 );
+
+ } // fi
+ std::string output_filename = argv[ 1 ];
+
+ std::stringstream data;
+ data
+ << "#ifndef __cpPlugins__RealConfig__h__" << std::endl
+ << "#define __cpPlugins__RealConfig__h__" << std::endl
+ << std::endl;
+
+ TStrings tokens;
+ cpPlugins_bash::Tokenize( tokens, cpPlugins_ALL_CONFIGS, ";" );
+ for( auto t = tokens.begin( ); t != tokens.end( ); ++t )
+ data << "#define " << *t << std::endl;
+
+ data << std::endl << "#endif // __cpPlugins__RealConfig__h__" << std::endl;
+ if( !( cpPlugins_bash::Write( data.str( ), output_filename ) ) )
+ {
+ std::cerr << "Error writing file." << std::endl;
+ return( 1 );
+
+ } // fi
+
+ return( 0 );
+}
+
+// eof - $RCSfile$
## == Main library ==
## ==================
-FILE(WRITE ${CMAKE_CURRENT_BINARY_DIR}/cpPlugins/RealConfig.h "#ifndef __cpPlugins__RealConfig__h__\n")
-FILE(APPEND ${CMAKE_CURRENT_BINARY_DIR}/cpPlugins/RealConfig.h "#define __cpPlugins__RealConfig__h__\n\n")
-FOREACH(_def ${cpPlugins_ALL_CONFIGS})
- FILE(APPEND ${CMAKE_CURRENT_BINARY_DIR}/cpPlugins/RealConfig.h "#define ${_def}\n")
-ENDFOREACH(_def)
-FILE(APPEND ${CMAKE_CURRENT_BINARY_DIR}/cpPlugins/RealConfig.h "\n#endif // __cpPlugins__RealConfig__h__\n")
+ADD_CUSTOM_COMMAND(
+ OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/cpPlugins/RealConfig.h
+ COMMAND ${CMAKE_COMMAND} -E make_directory ${CMAKE_CURRENT_BINARY_DIR}/cpPlugins
+ COMMAND ${cpPlugins_bash_CreateRealConfig_APP} ${CMAKE_CURRENT_BINARY_DIR}/cpPlugins/RealConfig.h
+ DEPENDS ${cpPlugins_bash_CreateRealConfig_APP}
+ )
INCLUDE_DIRECTORIES(${CMAKE_CURRENT_BINARY_DIR}/Instances)
CompileLibFromDir(cpPlugins SHARED cpPlugins ${CMAKE_CURRENT_BINARY_DIR}/cpPlugins/RealConfig.h)
TARGET_LINK_LIBRARIES(
-#include <plugins/ImageGradientFilters/FluxImageFilter.h>
+#include <ImageGradientFilters/FluxImageFilter.h>
#include <cpPlugins/DataObjects/Image.h>
+#include <cpPlugins/DataObjects/Image_Demanglers.h>
-#include <cpExtensions/Algorithms/ImageFunctionFilter.h>
-#include <cpExtensions/Algorithms/FluxMedialness.h>
+/* TODO
+ #include <cpExtensions/Algorithms/ImageFunctionFilter.h>
+ #include <cpExtensions/Algorithms/FluxMedialness.h>
-#include <cpExtensions/Algorithms/ImageFunctionFilter.hxx>
-#include <cpExtensions/Algorithms/FluxMedialness.hxx>
-#include <cpExtensions/Algorithms/GradientImageFunctionBase.hxx>
-#include <itkImageFunction.hxx>
+ #include <cpExtensions/Algorithms/ImageFunctionFilter.hxx>
+ #include <cpExtensions/Algorithms/FluxMedialness.hxx>
+ #include <cpExtensions/Algorithms/GradientImageFunctionBase.hxx>
+ #include <itkImageFunction.hxx>
+*/
// -------------------------------------------------------------------------
cpPluginsImageGradientFilters::FluxImageFilter::
FluxImageFilter( )
: Superclass( )
{
- this->_ConfigureInput< cpPlugins::DataObjects::Image >( "Input", true, false );
- this->_ConfigureInput< cpPlugins::DataObjects::Image >( "Mask", false, false );
- this->_ConfigureOutput< cpPlugins::DataObjects::Image >( "Output" );
+ typedef cpPlugins::DataObjects::Image _TImage;
+ this->_ConfigureInput< _TImage >( "Input", true, false );
+ this->_ConfigureInput< _TImage >( "Mask", false, false );
+ this->_ConfigureOutput< _TImage >( "Output" );
this->m_Parameters.ConfigureAsReal( "MinRadius" );
this->m_Parameters.ConfigureAsReal( "MaxRadius" );
void cpPluginsImageGradientFilters::FluxImageFilter::
_GenerateData( )
{
- auto o = this->GetInputData( "Input" );
- cpPlugins_Demangle_ImageCovariantVectors_Dims( o, _GD0 );
- else this->_Error( "Invalid input image." );
+ /* TODO
+ auto o = this->GetInputData( "Input" );
+ cpPlugins_Demangle_ImageCovariantVectors_Dims( o, _GD0 );
+ else this->_Error( "Invalid input image." );
+ */
}
// -------------------------------------------------------------------------
void cpPluginsImageGradientFilters::FluxImageFilter::
_GD0( _TImage* image )
{
- typedef typename _TImage::PixelType _TGradient;
- typedef cpExtensions::Algorithms::FluxMedialness< _TImage > _TFunction;
- typedef typename _TFunction::TOutput _TScalar;
- typedef itk::Image< _TScalar, _TImage::ImageDimension > _TOutputImage;
- typedef cpExtensions::Algorithms::ImageFunctionFilter< _TImage, _TOutputImage, _TFunction > _TFilter;
+ /* TODO
+ typedef typename _TImage::PixelType _TGradient;
+ typedef cpExtensions::Algorithms::FluxMedialness< _TImage > _TFunction;
+ typedef typename _TFunction::TOutput _TScalar;
+ typedef itk::Image< _TScalar, _TImage::ImageDimension > _TOutputImage;
+ typedef cpExtensions::Algorithms::ImageFunctionFilter< _TImage, _TOutputImage, _TFunction > _TFilter;
- auto filter = this->_CreateITK< _TFilter >( );
- auto function = filter->GetFunction( );
- if( function == NULL )
- {
- filter->SetFunction( _TFunction::New( ) );
- function = filter->GetFunction( );
+ auto filter = this->_CreateITK< _TFilter >( );
+ auto function = filter->GetFunction( );
+ if( function == NULL )
+ {
+ filter->SetFunction( _TFunction::New( ) );
+ function = filter->GetFunction( );
- } // fi
- function->SetMinRadius( this->m_Parameters.GetReal( "MinRadius" ) );
- function->SetMaxRadius( this->m_Parameters.GetReal( "MaxRadius" ) );
- function->SetRadiusStep( this->m_Parameters.GetReal( "RadiusStep" ) );
- function->SetRadialSampling( this->m_Parameters.GetUint( "RadialSampling" ) );
- filter->SetInput( image );
- filter->Update( );
- this->GetOutput( "Output" )->SetITK( filter->GetOutput( ) );
+ } // fi
+ function->SetMinRadius( this->m_Parameters.GetReal( "MinRadius" ) );
+ function->SetMaxRadius( this->m_Parameters.GetReal( "MaxRadius" ) );
+ function->SetRadiusStep( this->m_Parameters.GetReal( "RadiusStep" ) );
+ function->SetRadialSampling( this->m_Parameters.GetUint( "RadialSampling" ) );
+ filter->SetInput( image );
+ filter->Update( );
+ this->GetOutput( "Output" )->SetITK( filter->GetOutput( ) );
+ */
}
// eof - $RCSfile$
#ifndef __cpPluginsImageGradientFilters__FluxImageFilter__h__
#define __cpPluginsImageGradientFilters__FluxImageFilter__h__
-#include <plugins/cpPluginsImageGradientFilters_Export.h>
+#include <cpPluginsImageGradientFilters_Export.h>
#include <cpPlugins/BaseObjects/ProcessObject.h>
namespace cpPluginsImageGradientFilters
protected:
template< class _TImage >
- inline void _GD0( _TImage* image );
+ inline void _GD0( _TImage* image );
};
} // ecapseman
#include <ImageGradientFilters/GulsunTekImageFilter.h>
#include <cpPlugins/DataObjects/Image.h>
-#include <cpPlugins/DataObjects/Image_Demangler.h>
+#include <cpPlugins/DataObjects/Image_Demanglers.h>
/* TODO
#include <cpExtensions/Algorithms/ImageFunctionFilter.h>
GulsunTekImageFilter( )
: Superclass( )
{
- this->_ConfigureInput< cpPlugins::DataObjects::Image >( "Input", true, false );
- this->_ConfigureInput< cpPlugins::DataObjects::Image >( "Mask", false, false );
- this->_ConfigureOutput< cpPlugins::DataObjects::Image >( "Output" );
+ typedef cpPlugins::DataObjects::Image _TImage;
+
+ this->_ConfigureInput< _TImage >( "Input", true, false );
+ this->_ConfigureInput< _TImage >( "Mask", false, false );
+ this->_ConfigureOutput< _TImage >( "Output" );
this->m_Parameters.ConfigureAsReal( "MinRadius" );
this->m_Parameters.ConfigureAsReal( "MaxRadius" );
void cpPluginsImageGradientFilters::GulsunTekImageFilter::
_GenerateData( )
{
- auto o = this->GetInputData( "Input" );
- cpPlugins_Demangle_ImageCovariantVectors_Dims( o, _GD0 );
- else this->_Error( "Invalid input image." );
+ /* TODO
+ auto o = this->GetInputData( "Input" );
+ cpPlugins_Demangle_ImageCovariantVectors_Dims( o, _GD0 );
+ else this->_Error( "Invalid input image." );
+ */
}
// -------------------------------------------------------------------------
void cpPluginsImageGradientFilters::GulsunTekImageFilter::
_GD0( _TImage* image )
{
- typedef itk::Image< char, _TImage::ImageDimension > _TChar;
- typedef itk::Image< short, _TImage::ImageDimension > _TShort;
- typedef itk::Image< int, _TImage::ImageDimension > _TInt;
- typedef itk::Image< long, _TImage::ImageDimension > _TLong;
- typedef itk::Image< float, _TImage::ImageDimension > _TFloat;
- typedef itk::Image< double, _TImage::ImageDimension > _TDouble;
- typedef itk::Image< unsigned char, _TImage::ImageDimension > _TUChar;
- typedef itk::Image< unsigned short, _TImage::ImageDimension > _TUShort;
- typedef itk::Image< unsigned int, _TImage::ImageDimension > _TUInt;
- typedef itk::Image< unsigned long, _TImage::ImageDimension > _TULong;
+ /* TODO
+ typedef itk::Image< char, _TImage::ImageDimension > _TChar;
+ typedef itk::Image< short, _TImage::ImageDimension > _TShort;
+ typedef itk::Image< int, _TImage::ImageDimension > _TInt;
+ typedef itk::Image< long, _TImage::ImageDimension > _TLong;
+ typedef itk::Image< float, _TImage::ImageDimension > _TFloat;
+ typedef itk::Image< double, _TImage::ImageDimension > _TDouble;
+ typedef itk::Image< unsigned char, _TImage::ImageDimension > _TUChar;
+ typedef itk::Image< unsigned short, _TImage::ImageDimension > _TUShort;
+ typedef itk::Image< unsigned int, _TImage::ImageDimension > _TUInt;
+ typedef itk::Image< unsigned long, _TImage::ImageDimension > _TULong;
- auto m = this->GetInput( "Mask" );
- auto ci = m->GetITK< _TChar >( );
- auto si = m->GetITK< _TShort >( );
- auto ii = m->GetITK< _TInt >( );
- auto li = m->GetITK< _TLong >( );
- auto fi = m->GetITK< _TFloat >( );
- auto di = m->GetITK< _TDouble >( );
- auto uci = m->GetITK< _TUChar >( );
- auto usi = m->GetITK< _TUShort >( );
- auto uii = m->GetITK< _TUInt >( );
- auto uli = m->GetITK< _TULong >( );
- if ( ci != NULL ) this->_GD1( image, ci );
- else if( si != NULL ) this->_GD1( image, si );
- else if( ii != NULL ) this->_GD1( image, ii );
- else if( li != NULL ) this->_GD1( image, li );
- else if( fi != NULL ) this->_GD1( image, fi );
- else if( di != NULL ) this->_GD1( image, di );
- else if( uci != NULL ) this->_GD1( image, uci );
- else if( usi != NULL ) this->_GD1( image, usi );
- else if( uii != NULL ) this->_GD1( image, uii );
- else if( uli != NULL ) this->_GD1( image, uli );
- else this->_GD1( image, ci );
+ auto m = this->GetInput( "Mask" );
+ auto ci = m->GetITK< _TChar >( );
+ auto si = m->GetITK< _TShort >( );
+ auto ii = m->GetITK< _TInt >( );
+ auto li = m->GetITK< _TLong >( );
+ auto fi = m->GetITK< _TFloat >( );
+ auto di = m->GetITK< _TDouble >( );
+ auto uci = m->GetITK< _TUChar >( );
+ auto usi = m->GetITK< _TUShort >( );
+ auto uii = m->GetITK< _TUInt >( );
+ auto uli = m->GetITK< _TULong >( );
+ if ( ci != NULL ) this->_GD1( image, ci );
+ else if( si != NULL ) this->_GD1( image, si );
+ else if( ii != NULL ) this->_GD1( image, ii );
+ else if( li != NULL ) this->_GD1( image, li );
+ else if( fi != NULL ) this->_GD1( image, fi );
+ else if( di != NULL ) this->_GD1( image, di );
+ else if( uci != NULL ) this->_GD1( image, uci );
+ else if( usi != NULL ) this->_GD1( image, usi );
+ else if( uii != NULL ) this->_GD1( image, uii );
+ else if( uli != NULL ) this->_GD1( image, uli );
+ else this->_GD1( image, ci );
+ */
}
// -------------------------------------------------------------------------
void cpPluginsImageGradientFilters::GulsunTekImageFilter::
_GD1( _TImage* image, _TMask* mask )
{
- typedef typename _TImage::PixelType _TGradient;
- typedef cpExtensions::Algorithms::GulsunTekMedialness< _TImage, _TMask > _TFunction;
- typedef typename _TFunction::TOutput _TScalar;
- typedef itk::Image< _TScalar, _TImage::ImageDimension > _TOutputImage;
- typedef cpExtensions::Algorithms::ImageFunctionFilter< _TImage, _TOutputImage, _TFunction > _TFilter;
+ /* TODO
+ typedef typename _TImage::PixelType _TGradient;
+ typedef cpExtensions::Algorithms::GulsunTekMedialness< _TImage, _TMask > _TFunction;
+ typedef typename _TFunction::TOutput _TScalar;
+ typedef itk::Image< _TScalar, _TImage::ImageDimension > _TOutputImage;
+ typedef cpExtensions::Algorithms::ImageFunctionFilter< _TImage, _TOutputImage, _TFunction > _TFilter;
- auto filter = this->_CreateITK< _TFilter >( );
- auto function = filter->GetFunction( );
- if( function == NULL )
- {
- filter->SetFunction( _TFunction::New( ) );
- function = filter->GetFunction( );
+ auto filter = this->_CreateITK< _TFilter >( );
+ auto function = filter->GetFunction( );
+ if( function == NULL )
+ {
+ filter->SetFunction( _TFunction::New( ) );
+ function = filter->GetFunction( );
- } // fi
- function->SetMinRadius( this->m_Parameters.GetReal( "MinRadius" ) );
- function->SetMaxRadius( this->m_Parameters.GetReal( "MaxRadius" ) );
- function->SetProfileSampling( this->m_Parameters.GetUint( "ProfileSampling" ) );
- function->SetRadialSampling( this->m_Parameters.GetUint( "RadialSampling" ) );
- filter->SetInput( image );
- if( mask != NULL )
- function->SetMask( mask );
- filter->Update( );
- this->GetOutput( "Output" )->SetITK( filter->GetOutput( ) );
+ } // fi
+ function->SetMinRadius( this->m_Parameters.GetReal( "MinRadius" ) );
+ function->SetMaxRadius( this->m_Parameters.GetReal( "MaxRadius" ) );
+ function->SetProfileSampling( this->m_Parameters.GetUint( "ProfileSampling" ) );
+ function->SetRadialSampling( this->m_Parameters.GetUint( "RadialSampling" ) );
+ filter->SetInput( image );
+ if( mask != NULL )
+ function->SetMask( mask );
+ filter->Update( );
+ this->GetOutput( "Output" )->SetITK( filter->GetOutput( ) );
+ */
}
// eof - $RCSfile$
-#include <plugins/ImageGradientFilters/MFluxImageFilter.h>
+#include <ImageGradientFilters/MFluxImageFilter.h>
#include <cpPlugins/DataObjects/Image.h>
+#include <cpPlugins/DataObjects/Image_Demanglers.h>
-#include <cpExtensions/Algorithms/ImageFunctionFilter.h>
-#include <cpExtensions/Algorithms/MFluxMedialness.h>
+/* TODO
+ #include <cpExtensions/Algorithms/ImageFunctionFilter.h>
+ #include <cpExtensions/Algorithms/MFluxMedialness.h>
-#include <cpExtensions/Algorithms/ImageFunctionFilter.hxx>
-#include <cpExtensions/Algorithms/MFluxMedialness.hxx>
-#include <cpExtensions/Algorithms/GradientImageFunctionBase.hxx>
-#include <itkImageFunction.hxx>
+ #include <cpExtensions/Algorithms/ImageFunctionFilter.hxx>
+ #include <cpExtensions/Algorithms/MFluxMedialness.hxx>
+ #include <cpExtensions/Algorithms/GradientImageFunctionBase.hxx>
+ #include <itkImageFunction.hxx>
+*/
// -------------------------------------------------------------------------
cpPluginsImageGradientFilters::MFluxImageFilter::
MFluxImageFilter( )
: Superclass( )
{
- this->_ConfigureInput< cpPlugins::DataObjects::Image >( "Input", true, false );
- this->_ConfigureInput< cpPlugins::DataObjects::Image >( "Mask", false, false );
- this->_ConfigureOutput< cpPlugins::DataObjects::Image >( "Output" );
+ typedef cpPlugins::DataObjects::Image _TImage;
+ this->_ConfigureInput< _TImage >( "Input", true, false );
+ this->_ConfigureInput< _TImage >( "Mask", false, false );
+ this->_ConfigureOutput< _TImage >( "Output" );
this->m_Parameters.ConfigureAsReal( "MinRadius" );
this->m_Parameters.ConfigureAsReal( "MaxRadius" );
void cpPluginsImageGradientFilters::MFluxImageFilter::
_GenerateData( )
{
- auto o = this->GetInputData( "Input" );
- cpPlugins_Demangle_ImageCovariantVectors_Dims( o, _GD0 );
- else this->_Error( "Invalid input image." );
+ /* TODO
+ auto o = this->GetInputData( "Input" );
+ cpPlugins_Demangle_ImageCovariantVectors_Dims( o, _GD0 );
+ else this->_Error( "Invalid input image." );
+ */
}
// -------------------------------------------------------------------------
void cpPluginsImageGradientFilters::MFluxImageFilter::
_GD0( _TImage* image )
{
- typedef typename _TImage::PixelType _TGradient;
- typedef cpExtensions::Algorithms::MFluxMedialness< _TImage > _TFunction;
- typedef typename _TFunction::TOutput _TScalar;
- typedef itk::Image< _TScalar, _TImage::ImageDimension > _TOutputImage;
- typedef cpExtensions::Algorithms::ImageFunctionFilter< _TImage, _TOutputImage, _TFunction > _TFilter;
+ /* TODO
+ typedef typename _TImage::PixelType _TGradient;
+ typedef cpExtensions::Algorithms::MFluxMedialness< _TImage > _TFunction;
+ typedef typename _TFunction::TOutput _TScalar;
+ typedef itk::Image< _TScalar, _TImage::ImageDimension > _TOutputImage;
+ typedef cpExtensions::Algorithms::ImageFunctionFilter< _TImage, _TOutputImage, _TFunction > _TFilter;
- auto filter = this->_CreateITK< _TFilter >( );
- auto function = filter->GetFunction( );
- if( function == NULL )
- {
- filter->SetFunction( _TFunction::New( ) );
- function = filter->GetFunction( );
+ auto filter = this->_CreateITK< _TFilter >( );
+ auto function = filter->GetFunction( );
+ if( function == NULL )
+ {
+ filter->SetFunction( _TFunction::New( ) );
+ function = filter->GetFunction( );
- } // fi
- function->SetMinRadius( this->m_Parameters.GetReal( "MinRadius" ) );
- function->SetMaxRadius( this->m_Parameters.GetReal( "MaxRadius" ) );
- function->SetRadiusStep( this->m_Parameters.GetReal( "RadiusStep" ) );
- function->SetRadialSampling( this->m_Parameters.GetUint( "RadialSampling" ) );
- filter->SetInput( image );
- filter->Update( );
- this->GetOutput( "Output" )->SetITK( filter->GetOutput( ) );
+ } // fi
+ function->SetMinRadius( this->m_Parameters.GetReal( "MinRadius" ) );
+ function->SetMaxRadius( this->m_Parameters.GetReal( "MaxRadius" ) );
+ function->SetRadiusStep( this->m_Parameters.GetReal( "RadiusStep" ) );
+ function->SetRadialSampling( this->m_Parameters.GetUint( "RadialSampling" ) );
+ filter->SetInput( image );
+ filter->Update( );
+ this->GetOutput( "Output" )->SetITK( filter->GetOutput( ) );
+ */
}
// eof - $RCSfile$
#ifndef __cpPluginsImageGradientFilters__MFluxImageFilter__h__
#define __cpPluginsImageGradientFilters__MFluxImageFilter__h__
-#include <plugins/cpPluginsImageGradientFilters_Export.h>
+#include <cpPluginsImageGradientFilters_Export.h>
#include <cpPlugins/BaseObjects/ProcessObject.h>
namespace cpPluginsImageGradientFilters
protected:
template< class _TImage >
- inline void _GD0( _TImage* image );
+ inline void _GD0( _TImage* image );
};
} // ecapseman
-#include <plugins/ImageParaMorphologyFilters/BinaryDilateParaImageFilter.h>
+#include <ImageParaMorphologyFilters/BinaryDilateParaImageFilter.h>
#include <cpPlugins/DataObjects/Image.h>
-#include <itkBinaryDilateParaImageFilter.h>
-#include <itkBinaryDilateParaImageFilter.hxx>
-#include <itkBinaryThresholdImageFilter.hxx>
-#include <itkUnaryFunctorImageFilter.hxx>
-#include <itkParabolicErodeDilateImageFilter.hxx>
+/* TODO
+ #include <itkBinaryDilateParaImageFilter.h>
+ #include <itkBinaryDilateParaImageFilter.hxx>
+ #include <itkBinaryThresholdImageFilter.hxx>
+ #include <itkUnaryFunctorImageFilter.hxx>
+ #include <itkParabolicErodeDilateImageFilter.hxx>
+*/
// -------------------------------------------------------------------------
cpPluginsImageParaMorphologyFilters::BinaryDilateParaImageFilter::
BinaryDilateParaImageFilter( )
: Superclass( )
{
- this->_ConfigureInput< cpPlugins::DataObjects::Image >( "Input", true, false );
- this->_ConfigureOutput< cpPlugins::DataObjects::Image >( "Output" );
+ typedef cpPlugins::DataObjects::Image _TImage;
+
+ this->_ConfigureInput< _TImage >( "Input", true, false );
+ this->_ConfigureOutput< _TImage >( "Output" );
this->m_Parameters.ConfigureAsReal( "Radius" );
this->m_Parameters.ConfigureAsBool( "Circular" );
this->m_Parameters.ConfigureAsBool( "UseImageSpacing" );
void cpPluginsImageParaMorphologyFilters::BinaryDilateParaImageFilter::
_GenerateData( )
{
- auto o = this->GetInputData( "Input" );
- cpPlugins_Demangle_ImageScalars_Dims( o, _GD0 );
- else this->_Error( "No valid input image." );
+ /* TODO
+ auto o = this->GetInputData( "Input" );
+ cpPlugins_Demangle_ImageScalars_Dims( o, _GD0 );
+ else this->_Error( "No valid input image." );
+ */
}
// -------------------------------------------------------------------------
void cpPluginsImageParaMorphologyFilters::BinaryDilateParaImageFilter::
_GD0( _TImage* image )
{
- typedef itk::BinaryDilateParaImageFilter< _TImage > _TFilter;
-
- auto filter = this->_CreateITK< _TFilter >( );
- filter->SetInput( image );
- filter->SetRadius( this->m_Parameters.GetReal( "Radius" ) );
- filter->SetCircular( this->m_Parameters.GetBool( "Circular" ) );
- filter->SetUseImageSpacing( this->m_Parameters.GetBool( "UseImageSpacing" ) );
- filter->Update( );
- this->GetOutput( "Output" )->SetITK( filter->GetOutput( ) );
+ /* TODO
+ typedef itk::BinaryDilateParaImageFilter< _TImage > _TFilter;
+
+ auto filter = this->_CreateITK< _TFilter >( );
+ filter->SetInput( image );
+ filter->SetRadius( this->m_Parameters.GetReal( "Radius" ) );
+ filter->SetCircular( this->m_Parameters.GetBool( "Circular" ) );
+ filter->SetUseImageSpacing( this->m_Parameters.GetBool( "UseImageSpacing" ) );
+ filter->Update( );
+ this->GetOutput( "Output" )->SetITK( filter->GetOutput( ) );
+ */
}
// eof - $RCSfile$
#ifndef __cpPluginsImageParaMorphologyFilters__BinaryDilateParaImageFilter__h__
#define __cpPluginsImageParaMorphologyFilters__BinaryDilateParaImageFilter__h__
-#include <plugins/cpPluginsImageParaMorphologyFilters_Export.h>
+#include <cpPluginsImageParaMorphologyFilters_Export.h>
#include <cpPlugins/BaseObjects/ProcessObject.h>
namespace cpPluginsImageParaMorphologyFilters
protected:
template< class _TImage >
- inline void _GD0( _TImage* image );
+ inline void _GD0( _TImage* image );
};
} // ecapseman
-#include <plugins/ImageParaMorphologyFilters/BinaryErodeParaImageFilter.h>
+#include <ImageParaMorphologyFilters/BinaryErodeParaImageFilter.h>
#include <cpPlugins/DataObjects/Image.h>
-#include <itkBinaryErodeParaImageFilter.h>
-#include <itkBinaryErodeParaImageFilter.hxx>
-#include <itkBinaryThresholdImageFilter.hxx>
-#include <itkUnaryFunctorImageFilter.hxx>
-#include <itkParabolicErodeDilateImageFilter.hxx>
+/* TODO
+ #include <itkBinaryErodeParaImageFilter.h>
+ #include <itkBinaryErodeParaImageFilter.hxx>
+ #include <itkBinaryThresholdImageFilter.hxx>
+ #include <itkUnaryFunctorImageFilter.hxx>
+ #include <itkParabolicErodeDilateImageFilter.hxx>
+*/
// -------------------------------------------------------------------------
cpPluginsImageParaMorphologyFilters::BinaryErodeParaImageFilter::
BinaryErodeParaImageFilter( )
: Superclass( )
{
- this->_ConfigureInput< cpPlugins::DataObjects::Image >( "Input", true, false );
- this->_ConfigureOutput< cpPlugins::DataObjects::Image >( "Output" );
+ typedef cpPlugins::DataObjects::Image _TImage;
+
+ this->_ConfigureInput< _TImage >( "Input", true, false );
+ this->_ConfigureOutput< _TImage >( "Output" );
this->m_Parameters.ConfigureAsReal( "Radius" );
this->m_Parameters.ConfigureAsBool( "Circular" );
this->m_Parameters.ConfigureAsBool( "UseImageSpacing" );
void cpPluginsImageParaMorphologyFilters::BinaryErodeParaImageFilter::
_GenerateData( )
{
- auto o = this->GetInputData( "Input" );
- cpPlugins_Demangle_ImageScalars_Dims( o, _GD0 );
- else this->_Error( "No valid input image." );
+ /* TODO
+ auto o = this->GetInputData( "Input" );
+ cpPlugins_Demangle_ImageScalars_Dims( o, _GD0 );
+ else this->_Error( "No valid input image." );
+ */
}
// -------------------------------------------------------------------------
void cpPluginsImageParaMorphologyFilters::BinaryErodeParaImageFilter::
_GD0( _TImage* image )
{
- typedef itk::BinaryErodeParaImageFilter< _TImage > _TFilter;
-
- auto filter = this->_CreateITK< _TFilter >( );
- filter->SetInput( image );
- filter->SetRadius( this->m_Parameters.GetReal( "Radius" ) );
- filter->SetCircular( this->m_Parameters.GetBool( "Circular" ) );
- filter->SetUseImageSpacing( this->m_Parameters.GetBool( "UseImageSpacing" ) );
- filter->Update( );
- this->GetOutput( "Output" )->SetITK( filter->GetOutput( ) );
+ /* TODO
+ typedef itk::BinaryErodeParaImageFilter< _TImage > _TFilter;
+
+ auto filter = this->_CreateITK< _TFilter >( );
+ filter->SetInput( image );
+ filter->SetRadius( this->m_Parameters.GetReal( "Radius" ) );
+ filter->SetCircular( this->m_Parameters.GetBool( "Circular" ) );
+ filter->SetUseImageSpacing( this->m_Parameters.GetBool( "UseImageSpacing" ) );
+ filter->Update( );
+ this->GetOutput( "Output" )->SetITK( filter->GetOutput( ) );
+ */
}
// eof - $RCSfile$
#ifndef __cpPluginsImageParaMorphologyFilters__BinaryErodeParaImageFilter__h__
#define __cpPluginsImageParaMorphologyFilters__BinaryErodeParaImageFilter__h__
-#include <plugins/cpPluginsImageParaMorphologyFilters_Export.h>
+#include <cpPluginsImageParaMorphologyFilters_Export.h>
#include <cpPlugins/BaseObjects/ProcessObject.h>
namespace cpPluginsImageParaMorphologyFilters
protected:
template< class _TImage >
- inline void _GD0( _TImage* image );
+ inline void _GD0( _TImage* image );
};
} // ecapseman