tinclude itk#matrices#:h|hxx
tinclude itk#diff_tensors#:h|hxx
tinclude itkSymmetricEigenAnalysis:h|hxx
+tinclude itkSimpleDataObjectDecorator:h|hxx
tinclude vnl/vnl_vector:h|hxx
cinclude vnl/vnl_c_vector.hxx
instances itk::#matrices#< #real_types#, #process_dims#, #process_dims# >
instances itk::SymmetricEigenAnalysis< itk::Matrix< #real_types#, #process_dims#, #process_dims# >, itk::FixedArray< #real_types#, #process_dims# >, itk::Matrix< #real_types#, #process_dims#, #process_dims# > >
+instances itk::SimpleDataObjectDecorator< #scalar_pixels# >
+
define my_vectors=Vector;Point
minstances #_export_# std::ostream& itk::operator<< < #real_types#, #process_dims# >( std::ostream& a, itk::#my_vectors#< #real_types#, #process_dims# > const& b )
BaseObjects
SimpleImages
ImageIterators
+ ImageNeighborhoodIterators
ImageFiltersBases
BoundingBoxes
Meshes
TARGET_LINK_LIBRARIES(cpInstances_BaseObjects ${ITK_LIBRARIES})
TARGET_LINK_LIBRARIES(cpInstances_SimpleImages cpInstances_BaseObjects)
TARGET_LINK_LIBRARIES(cpInstances_ImageIterators cpInstances_SimpleImages)
+TARGET_LINK_LIBRARIES(cpInstances_ImageNeighborhoodIterators cpInstances_SimpleImages)
TARGET_LINK_LIBRARIES(cpInstances_ImageFiltersBases cpInstances_SimpleImages)
TARGET_LINK_LIBRARIES(cpInstances_BoundingBoxes cpInstances_BaseObjects)
TARGET_LINK_LIBRARIES(cpInstances_Meshes cpInstances_BoundingBoxes)
header #define ITK_MANUAL_INSTANTIATION
+define in_scalar_pixels=#scalar_pixels#
+define out_scalar_pixels=#scalar_pixels#
+define filters=ImageToImageFilter;InPlaceImageFilter
+
tinclude itkImageSource:h|hxx
+tinclude itk#filters#:h|hxx
cinclude complex
cinclude itk#color_pixels#.h
instances itk::ImageSource< itk::Image< itk::#matrices#< #real_types#, #process_dims#, #process_dims# >, #process_dims# > >
instances itk::ImageSource< itk::Image< itk::Offset< #process_dims# >, #process_dims# > >
+instances itk::#filters#< itk::Image< #in_scalar_pixels#, #process_dims# >, itk::Image< #out_scalar_pixels#, #process_dims# > >
+
** eof - $RCSfile$
header #define ITK_MANUAL_INSTANTIATION
-define iter=ImageRegionConstIterator;ImageRegionIterator;ImageScanlineConstIterator;ImageScanlineIterator;ImageConstIteratorWithIndex;ImageIteratorWithIndex;ImageRegionConstIteratorWithIndex;ImageRegionIteratorWithIndex
+define iter=ImageRegionConstIterator;ImageRegionIterator;ImageScanlineConstIterator;ImageScanlineIterator;ImageConstIteratorWithIndex;ImageIteratorWithIndex;ImageRegionConstIteratorWithIndex;ImageRegionIteratorWithIndex;ImageLinearConstIteratorWithIndex;ImageLinearIteratorWithIndex
tinclude itk#iter#:h|hxx
--- /dev/null
+header #define ITK_MANUAL_INSTANTIATION
+
+define iter=ConstNeighborhoodIterator;NeighborhoodIterator
+define esp_iter=ConstShapedNeighborhoodIterator;ShapedNeighborhoodIterator
+define cond=ZeroFluxNeumannBoundaryCondition
+
+tinclude itkNeighborhood:h|hxx
+tinclude itk#cond#:h|hxx
+tinclude itk#iter#:h|hxx
+tinclude itk#esp_iter#:h|hxx
+
+cinclude complex
+cinclude itk#color_pixels#.h
+cinclude itk#vectors#.h
+cinclude itk#diff_tensors#.h
+cinclude itk#matrices#.h
+
+instances itk::Neighborhood< #scalar_pixels#, #process_dims#, itk::NeighborhoodAllocator< #scalar_pixels# > >
+instances itk::Neighborhood< std::complex< #real_types# >, #process_dims#, itk::NeighborhoodAllocator< std::complex< #real_types# > > >
+instances itk::Neighborhood< itk::#color_pixels#< #scalar_pixels# >, #process_dims#, itk::NeighborhoodAllocator< itk::#color_pixels#< #scalar_pixels# > > >
+instances itk::Neighborhood< itk::#vectors#< #real_types#, #process_dims# >, #process_dims#, itk::NeighborhoodAllocator< itk::#vectors#< #real_types#, #process_dims# > > >
+instances itk::Neighborhood< itk::#diff_tensors#< #real_types# >, #process_dims#, itk::NeighborhoodAllocator< itk::#diff_tensors#< #real_types# > > >
+instances itk::Neighborhood< itk::#matrices#< #real_types#, #process_dims#, #process_dims# >, #process_dims#, itk::NeighborhoodAllocator< itk::#matrices#< #real_types#, #process_dims#, #process_dims# > > >
+instances itk::Neighborhood< itk::Offset< #process_dims# >, #process_dims#, itk::NeighborhoodAllocator< itk::Offset< #process_dims# > > >
+
+instances itk::#cond#< itk::Image< #scalar_pixels#, #process_dims# > >
+instances itk::#cond#< itk::Image< std::complex< #real_types# >, #process_dims# > >
+instances itk::#cond#< itk::Image< itk::#color_pixels#< #scalar_pixels# >, #process_dims# > >
+instances itk::#cond#< itk::Image< itk::#vectors#< #real_types#, #process_dims# >, #process_dims# > >
+instances itk::#cond#< itk::Image< itk::#diff_tensors#< #real_types# >, 3 > >
+instances itk::#cond#< itk::Image< itk::#matrices#< #real_types#, #process_dims#, #process_dims# >, #process_dims# > >
+instances itk::#cond#< itk::Image< itk::Offset< #process_dims# >, #process_dims# > >
+
+instances itk::#iter#< itk::Image< #scalar_pixels#, #process_dims# >, itk::#cond#< itk::Image< #scalar_pixels#, #process_dims# > > >
+instances itk::#iter#< itk::Image< std::complex< #real_types# >, #process_dims# >, itk::#cond#< itk::Image< std::complex< #real_types# >, #process_dims# > > >
+instances itk::#iter#< itk::Image< itk::#color_pixels#< #scalar_pixels# >, #process_dims# >, itk::#cond#< itk::Image< itk::#color_pixels#< #scalar_pixels# >, #process_dims# > > >
+instances itk::#iter#< itk::Image< itk::#vectors#< #real_types#, #process_dims# >, #process_dims# >, itk::#cond#< itk::Image< itk::#vectors#< #real_types#, #process_dims# >, #process_dims# > > >
+instances itk::#iter#< itk::Image< itk::#diff_tensors#< #real_types# >, 3 >, itk::#cond#< itk::Image< itk::#diff_tensors#< #real_types# >, 3 > > >
+instances itk::#iter#< itk::Image< itk::#matrices#< #real_types#, #process_dims#, #process_dims# >, #process_dims# >, itk::#cond#< itk::Image< itk::#matrices#< #real_types#, #process_dims#, #process_dims# >, #process_dims# > > >
+instances itk::#iter#< itk::Image< itk::Offset< #process_dims# >, #process_dims# >, itk::#cond#< itk::Image< itk::Offset< #process_dims# >, #process_dims# > > >
+
+instances itk::#esp_iter#< itk::Image< #scalar_pixels#, #process_dims# >, itk::#cond#< itk::Image< #scalar_pixels#, #process_dims# > > >
+
+** eof - $RCSfile$
SetITK( itk::LightObject* o )
{
this->Superclass::SetITK( o );
- cpPlugins_Demangle_Image_VisualDims( o, _ITK_2_VTK_0, );
- cpPlugins_Demangle_Image_DiffTensors3D( o, _ITK_2_VTK_1, );
+ cpPlugins_Demangle_Image_VisualDims( o, _ITK_2_VTK_0, )
+ cpPlugins_Demangle_Image_DiffTensors3D( o, _ITK_2_VTK_1, )
{
this->m_VTK = NULL;
this->m_ITKvVTK = NULL;
bool success = false;
auto stype = img->GetScalarType( );
-#ifdef cpPlugins_CONFIG_INTEGER_TYPES_char
+#ifdef cpPlugins_CONFIG_INTEGER_TYPES_char
if( stype == VTK_CHAR ) success = this->_VTK_2_ITK_0< char >( img );
if( stype == VTK_UNSIGNED_CHAR ) success = this->_VTK_2_ITK_0< unsigned char >( img );
-#endif // cpPlugins_CONFIG_INTEGER_TYPES_char
-#ifdef cpPlugins_CONFIG_INTEGER_TYPES_short
+#endif // cpPlugins_CONFIG_INTEGER_TYPES_char
+#ifdef cpPlugins_CONFIG_INTEGER_TYPES_short
if( stype == VTK_CHAR ) success = this->_VTK_2_ITK_0< short >( img );
if( stype == VTK_UNSIGNED_CHAR ) success = this->_VTK_2_ITK_0< unsigned short >( img );
-#endif // cpPlugins_CONFIG_INTEGER_TYPES_short
-#ifdef cpPlugins_CONFIG_INTEGER_TYPES_int
+#endif // cpPlugins_CONFIG_INTEGER_TYPES_short
+#ifdef cpPlugins_CONFIG_INTEGER_TYPES_int
if( stype == VTK_CHAR ) success = this->_VTK_2_ITK_0< int >( img );
if( stype == VTK_UNSIGNED_CHAR ) success = this->_VTK_2_ITK_0< unsigned int >( img );
-#endif // cpPlugins_CONFIG_INTEGER_TYPES_int
-#ifdef cpPlugins_CONFIG_INTEGER_TYPES_long
+#endif // cpPlugins_CONFIG_INTEGER_TYPES_int
+#ifdef cpPlugins_CONFIG_INTEGER_TYPES_long
if( stype == VTK_CHAR ) success = this->_VTK_2_ITK_0< long >( img );
if( stype == VTK_UNSIGNED_CHAR ) success = this->_VTK_2_ITK_0< unsigned long >( img );
-#endif // cpPlugins_CONFIG_INTEGER_TYPES_long
-#ifdef cpPlugins_CONFIG_REAL_TYPES_float
+#endif // cpPlugins_CONFIG_INTEGER_TYPES_long
+#ifdef cpPlugins_CONFIG_REAL_TYPES_float
if( stype == VTK_CHAR ) success = this->_VTK_2_ITK_0< float >( img );
-#endif // cpPlugins_CONFIG_REAL_TYPES_float
-#ifdef cpPlugins_CONFIG_REAL_TYPES_double
+#endif // cpPlugins_CONFIG_REAL_TYPES_float
+#ifdef cpPlugins_CONFIG_REAL_TYPES_double
if( stype == VTK_CHAR ) success = this->_VTK_2_ITK_0< double >( img );
-#endif // cpPlugins_CONFIG_REAL_TYPES_double
+#endif // cpPlugins_CONFIG_REAL_TYPES_double
/* TODO
- #define cpPlugins_CONFIG_COLOR_PIXELS_RGBPixel
- #define cpPlugins_CONFIG_COLOR_PIXELS_RGBAPixel
- #define cpPlugins_CONFIG_VECTORS_CovariantVector
- #define cpPlugins_CONFIG_VECTORS_Point
- #define cpPlugins_CONFIG_VECTORS_SymmetricSecondRankTensor
- #define cpPlugins_CONFIG_VECTORS_Vector
- #define cpPlugins_CONFIG_DIFFUSIONTENSORS_DiffusionTensor3D
- #define cpPlugins_CONFIG_MATRICES_Matrix
+ #define cpPlugins_CONFIG_COLOR_PIXELS_RGBPixel
+ #define cpPlugins_CONFIG_COLOR_PIXELS_RGBAPixel
+ #define cpPlugins_CONFIG_VECTORS_CovariantVector
+ #define cpPlugins_CONFIG_VECTORS_Point
+ #define cpPlugins_CONFIG_VECTORS_SymmetricSecondRankTensor
+ #define cpPlugins_CONFIG_VECTORS_Vector
+ #define cpPlugins_CONFIG_DIFFUSIONTENSORS_DiffusionTensor3D
+ #define cpPlugins_CONFIG_MATRICES_Matrix
*/
if( !success )
{
void cpPlugins::DataObjects::Image::
_ITK_2_VTK_0( _TImage* image )
{
- cpPlugins_Demangle_Image_ScalarPixels( image, _ITK_2_VTK_1, _TImage::ImageDimension, );
- cpPlugins_Demangle_Image_ColorPixels( image, _ITK_2_VTK_1, _TImage::ImageDimension, );
- cpPlugins_Demangle_Image_VectorPixels( image, _ITK_2_VTK_1, _TImage::ImageDimension, );
+ cpPlugins_Demangle_Image_ScalarPixels( image, _ITK_2_VTK_1, _TImage::ImageDimension, )
+ cpPlugins_Demangle_Image_ColorPixels( image, _ITK_2_VTK_1, _TImage::ImageDimension, )
+ cpPlugins_Demangle_Image_VectorPixels( image, _ITK_2_VTK_1, _TImage::ImageDimension, )
{
this->m_VTK = NULL;
this->m_ITKvVTK = NULL;
SetITK( itk::LightObject* o )
{
this->Superclass::SetITK( o );
- cpPlugins_Demangle_Mesh_Meshes( o, _ITK_2_VTK, 2, );
- cpPlugins_Demangle_Mesh_Meshes( o, _ITK_2_VTK, 3, );
+ cpPlugins_Demangle_Mesh_Meshes( o, _ITK_2_VTK, 2, )
+ cpPlugins_Demangle_Mesh_Meshes( o, _ITK_2_VTK, 3, )
{
this->m_VTK = NULL;
vcells->InsertNextCell( cell->GetNumberOfPoints( ) );
for( auto k = cell->PointIdsBegin( ); k != cell->PointIdsEnd( ); ++k )
vcells->InsertCellPoint( IndexMap[ *k ] );
-
+
} // rof
// Final assignations
#ImageGradientFilters
ImageMeshFilters
ImageSources
- #ImageThresholdFilters
+ ImageThresholdFilters
IO
MeshFilters
MeshSources
)
ENDFOREACH(_dir)
+TARGET_LINK_LIBRARIES(
+ cpPluginsImageDistanceMaps
+ cpPluginsImageThresholdFilters
+ )
+
## eof - $RSCfile$
--- /dev/null
+#include <ImageDistanceMaps/BinaryContourImageFilter.h>
+#include <cpPlugins/DataObjects/Image.h>
+#include <cpPlugins/DataObjects/Image_Demanglers.h>
+
+#include <itkBinaryContourImageFilter.h>
+
+// -------------------------------------------------------------------------
+cpPluginsImageDistanceMaps::BinaryContourImageFilter::
+BinaryContourImageFilter( )
+ : Superclass( )
+{
+ typedef cpPlugins::DataObjects::Image _TImage;
+
+ this->_ConfigureInput< _TImage >( "Input", true, false );
+ this->_ConfigureOutput< _TImage >( "Output" );
+
+ this->m_Parameters.ConfigureAsReal( "BackgroundValue" );
+ this->m_Parameters.ConfigureAsReal( "ForegroundValue" );
+ this->m_Parameters.ConfigureAsBool( "FullyConnected" );
+
+ this->m_Parameters.SetReal( "BackgroundValue", 0 );
+ this->m_Parameters.SetReal( "ForegroundValue", 1 );
+ this->m_Parameters.SetBool( "FullyConnected", false );
+}
+
+// -------------------------------------------------------------------------
+cpPluginsImageDistanceMaps::BinaryContourImageFilter::
+~BinaryContourImageFilter( )
+{
+}
+
+// -------------------------------------------------------------------------
+void cpPluginsImageDistanceMaps::BinaryContourImageFilter::
+_GenerateData( )
+{
+ auto o = this->GetInputData( "Input" );
+ cpPlugins_Demangle_Image_VisualDims( o, _GD0, )
+ this->_Error( "Invalid input image dimension." );
+}
+
+// -------------------------------------------------------------------------
+template< class _TImage >
+void cpPluginsImageDistanceMaps::BinaryContourImageFilter::
+_GD0( _TImage* image )
+{
+ cpPlugins_Demangle_Image_ScalarPixels( image, _GD1, _TImage::ImageDimension, )
+ this->_Error( "Invalid input image pixel type." );
+}
+
+// -------------------------------------------------------------------------
+template< class _TImage >
+void cpPluginsImageDistanceMaps::BinaryContourImageFilter::
+_GD1( _TImage* image )
+{
+ typedef
+ itk::BinaryContourImageFilter< _TImage, _TImage >
+ _TFilter;
+
+ // Get parameters
+ double b = this->m_Parameters.GetReal( "BackgroundValue" );
+ double f = this->m_Parameters.GetReal( "ForegroundValue" );
+ double c = this->m_Parameters.GetBool( "FullyConnected" );
+
+ // Configure filter
+ _TFilter* filter = this->_CreateITK< _TFilter >( );
+ filter->SetInput( image );
+ filter->SetBackgroundValue( ( typename _TImage::PixelType )( b ) );
+ filter->SetForegroundValue( ( typename _TImage::PixelType )( f ) );
+ filter->SetFullyConnected( c );
+ filter->Update( );
+
+ // Connect output
+ this->GetOutput( "Output" )->SetITK( filter->GetOutput( ) );
+}
+
+// eof - $RCSfile$
--- /dev/null
+#ifndef __cpPluginsImageDistanceMaps__BinaryContourImageFilter__h__
+#define __cpPluginsImageDistanceMaps__BinaryContourImageFilter__h__
+
+#include <cpPluginsImageDistanceMaps_Export.h>
+#include <cpPlugins/BaseObjects/ProcessObject.h>
+
+namespace cpPluginsImageDistanceMaps
+{
+ /**
+ */
+ class cpPluginsImageDistanceMaps_EXPORT BinaryContourImageFilter
+ : public cpPlugins::BaseObjects::ProcessObject
+ {
+ cpPluginsObject(
+ BinaryContourImageFilter,
+ cpPlugins::BaseObjects::ProcessObject,
+ ImageDistanceMaps
+ );
+
+ protected:
+ template< class _TImage >
+ inline void _GD0( _TImage* image );
+
+ template< class _TImage >
+ inline void _GD1( _TImage* image );
+ };
+
+} // ecapseman
+
+#endif // __cpPluginsImageDistanceMaps__BinaryContourImageFilter__h__
+
+// eof - $RCSfile$
header #define ITK_MANUAL_INSTANTIATION
-define filters=SignedMaurerDistanceMapImageFilter
+define filters=BinaryContourImageFilter
+define dmaps=SignedMaurerDistanceMapImageFilter
+
define iter=ImageRegionConstIterator;ImageRegionIterator
tinclude itk#filters#:h|hxx
+tinclude itk#dmaps#:h|hxx
tinclude itk#iter#:h|h
+tinclude itkProgressReporter:h|h
+tinclude itkImageHelper:h|h
+
+define in_scalar_pixels=#scalar_pixels#
+define out_scalar_pixels=#scalar_pixels#
-instances itk::#filters#< itk::Image< #scalar_pixels#, #process_dims# >, itk::Image< #real_types#, #process_dims# > >
+instances itk::#filters#< itk::Image< #in_scalar_pixels#, #visual_dims# >, itk::Image< #out_scalar_pixels#, #visual_dims# > >
+instances itk::#dmaps#< itk::Image< #scalar_pixels#, #visual_dims# >, itk::Image< #real_types#, #visual_dims# > >
** eof - $RCSfile$
_GenerateData( )
{
auto o = this->GetInputData( "Input" );
- cpPlugins_Demangle_Image_ProcessDims( o, _GD0, )
+ cpPlugins_Demangle_Image_VisualDims( o, _GD0, )
this->_Error( "Invalid input image dimension." );
}
-#include <plugins/ImageThresholdFilters/BinaryThresholdImageFilter.h>
+#include <ImageThresholdFilters/BinaryThresholdImageFilter.h>
#include <cpPlugins/DataObjects/Image.h>
#include <itkBinaryThresholdImageFilter.h>
-#include <itkBinaryThresholdImageFilter.hxx>
-#include <itkUnaryFunctorImageFilter.hxx>
// -------------------------------------------------------------------------
cpPluginsImageThresholdFilters::BinaryThresholdImageFilter::
BinaryThresholdImageFilter( )
: 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( "LowerThresholdValue" );
this->m_Parameters.ConfigureAsReal( "UpperThresholdValue" );
void cpPluginsImageThresholdFilters::BinaryThresholdImageFilter::
_GenerateData( )
{
- auto o = this->GetInputData( "Input" );
- cpPlugins_Demangle_ImageScalars_Dims( o, _GD0 );
- else this->_Error( "Invalid input image." );
+ /* TODO
+ auto o = this->GetInputData( "Input" );
+ cpPlugins_Demangle_ImageScalars_Dims( o, _GD0 );
+ else this->_Error( "Invalid input image." );
+ */
}
// -------------------------------------------------------------------------
void cpPluginsImageThresholdFilters::BinaryThresholdImageFilter::
_GD0( _TImage* image )
{
- typedef unsigned char _TBin;
- typedef itk::Image< unsigned char, _TImage::ImageDimension > _TBinImage;
- typedef itk::BinaryThresholdImageFilter< _TImage, _TBinImage > _TFilter;
- typedef typename _TImage::PixelType _TPixel;
+ /* TODO
+ typedef unsigned char _TBin;
+ typedef itk::Image< unsigned char, _TImage::ImageDimension > _TBinImage;
+ typedef itk::BinaryThresholdImageFilter< _TImage, _TBinImage > _TFilter;
+ typedef typename _TImage::PixelType _TPixel;
- // Get parameters
- _TPixel lt = _TPixel( this->m_Parameters.GetReal( "LowerThresholdValue" ) );
- _TPixel ut = _TPixel( this->m_Parameters.GetReal( "UpperThresholdValue" ) );
- _TBin iv = _TBin( this->m_Parameters.GetUint( "InsideValue" ) );
- _TBin ov = _TBin( this->m_Parameters.GetUint( "OutsideValue" ) );
+ // Get parameters
+ _TPixel lt = _TPixel( this->m_Parameters.GetReal( "LowerThresholdValue" ) );
+ _TPixel ut = _TPixel( this->m_Parameters.GetReal( "UpperThresholdValue" ) );
+ _TBin iv = _TBin( this->m_Parameters.GetUint( "InsideValue" ) );
+ _TBin ov = _TBin( this->m_Parameters.GetUint( "OutsideValue" ) );
- // Configure filter
- _TFilter* filter = this->_CreateITK< _TFilter >( );
- filter->SetInput( image );
- filter->SetLowerThreshold( lt );
- filter->SetUpperThreshold( ut );
- filter->SetInsideValue( iv );
- filter->SetOutsideValue( ov );
- filter->Update( );
+ // Configure filter
+ _TFilter* filter = this->_CreateITK< _TFilter >( );
+ filter->SetInput( image );
+ filter->SetLowerThreshold( lt );
+ filter->SetUpperThreshold( ut );
+ filter->SetInsideValue( iv );
+ filter->SetOutsideValue( ov );
+ filter->Update( );
- // Connect output
- this->GetOutput( "Output" )->SetITK( filter->GetOutput( ) );
+ // Connect output
+ this->GetOutput( "Output" )->SetITK( filter->GetOutput( ) );
+ */
}
// eof - $RCSfile$
#ifndef __cpPluginsImageThresholdFilters__BinaryThresholdImageFilter__h__
#define __cpPluginsImageThresholdFilters__BinaryThresholdImageFilter__h__
-#include <plugins/cpPluginsImageThresholdFilters_Export.h>
+#include <cpPluginsImageThresholdFilters_Export.h>
#include <cpPlugins/BaseObjects/ProcessObject.h>
namespace cpPluginsImageThresholdFilters
protected:
template< class _TImage >
- inline void _GD0( _TImage* image );
+ inline void _GD0( _TImage* image );
};
} // ecapseman
--- /dev/null
+header #define ITK_MANUAL_INSTANTIATION
+
+define filters=BinaryThresholdImageFilter
+
+tinclude itk#filters#:h|hxx
+
+cinclude itkUnaryFunctorImageFilter.hxx
+
+define in_scalar_pixels=#scalar_pixels#
+define out_scalar_pixels=#scalar_pixels#
+
+instances itk::#filters#< itk::Image< #in_scalar_pixels#, #process_dims# >, itk::Image< #out_scalar_pixels#, #process_dims# > >
+
+** eof - $RCSfile$
-#include <plugins/ImageThresholdFilters/ImageToBoundingBoxFromThreshold.h>
+#include <ImageThresholdFilters/ImageToBoundingBoxFromThreshold.h>
#include <cpPlugins/DataObjects/Image.h>
#include <cpPlugins/DataObjects/BoundingBox.h>
#include <cpExtensions/Algorithms/ImageToBoundingBoxFromThreshold.h>
-#include <cpExtensions/Algorithms/ImageToBoundingBoxFromThreshold.hxx>
// -------------------------------------------------------------------------
cpPluginsImageThresholdFilters::ImageToBoundingBoxFromThreshold::
ImageToBoundingBoxFromThreshold( )
: Superclass( )
{
- this->_ConfigureInput< cpPlugins::DataObjects::Image >( "Input", true, false );
- this->_ConfigureOutput< cpPlugins::DataObjects::BoundingBox >( "Output" );
+ typedef cpPlugins::DataObjects::Image _TImage;
+ typedef cpPlugins::DataObjects::BoundingBox _TBBox;
+
+ this->_ConfigureInput< _TImage >( "Input", true, false );
+ this->_ConfigureOutput< _TBBox >( "Output" );
this->m_Parameters.ConfigureAsReal( "LowerThreshold" );
this->m_Parameters.ConfigureAsReal( "UpperThreshold" );
void cpPluginsImageThresholdFilters::ImageToBoundingBoxFromThreshold::
_GenerateData( )
{
- auto o = this->GetInputData( "Input" );
- cpPlugins_Demangle_ImageScalars_Dims( o, _GD0 );
- else this->_Error( "Invalid input image." );
+ /* TODO
+ auto o = this->GetInputData( "Input" );
+ cpPlugins_Demangle_ImageScalars_Dims( o, _GD0 );
+ else this->_Error( "Invalid input image." );
+ */
}
// -------------------------------------------------------------------------
void cpPluginsImageThresholdFilters::ImageToBoundingBoxFromThreshold::
_GD0( _TImage* image )
{
- typedef
- cpExtensions::Algorithms::ImageToBoundingBoxFromThreshold< _TImage >
- _TFilter;
+ /* TODO
+ typedef
+ cpExtensions::Algorithms::ImageToBoundingBoxFromThreshold< _TImage >
+ _TFilter;
- // Configure filter
- _TFilter* filter = this->_CreateITK< _TFilter >( );
- filter->SetImage( image );
- filter->SetLowerThreshold( this->m_Parameters.GetReal( "LowerThreshold" ) );
- filter->SetUpperThreshold( this->m_Parameters.GetReal( "UpperThreshold" ) );
- filter->Compute( );
+ // Configure filter
+ _TFilter* filter = this->_CreateITK< _TFilter >( );
+ filter->SetImage( image );
+ filter->SetLowerThreshold( this->m_Parameters.GetReal( "LowerThreshold" ) );
+ filter->SetUpperThreshold( this->m_Parameters.GetReal( "UpperThreshold" ) );
+ filter->Compute( );
- // Create output
- auto reg = filter->GetRegion( );
- auto bb = this->GetOutput< cpPlugins::DataObjects::BoundingBox >( "Output" );
- typename _TImage::PointType p0, p1;
- image->TransformIndexToPhysicalPoint( reg.GetIndex( ), p0 );
- image->TransformIndexToPhysicalPoint( reg.GetIndex( ) + reg.GetSize( ), p1 );
- bb->SetMinimum( p0 );
- bb->SetMaximum( p1 );
+ // Create output
+ auto reg = filter->GetRegion( );
+ auto bb = this->GetOutput< cpPlugins::DataObjects::BoundingBox >( "Output" );
+ typename _TImage::PointType p0, p1;
+ image->TransformIndexToPhysicalPoint( reg.GetIndex( ), p0 );
+ image->TransformIndexToPhysicalPoint( reg.GetIndex( ) + reg.GetSize( ), p1 );
+ bb->SetMinimum( p0 );
+ bb->SetMaximum( p1 );
+ */
}
// eof - $RCSfile$
#ifndef __cpPluginsImageThresholdFilters__ImageToBoundingBoxFromThreshold__h__
#define __cpPluginsImageThresholdFilters__ImageToBoundingBoxFromThreshold__h__
-#include <plugins/cpPluginsImageThresholdFilters_Export.h>
+#include <cpPluginsImageThresholdFilters_Export.h>
#include <cpPlugins/BaseObjects/ProcessObject.h>
namespace cpPluginsImageThresholdFilters
-#include <plugins/ImageThresholdFilters/UnaryThresholdImageFilter.h>
+#include <ImageThresholdFilters/UnaryThresholdImageFilter.h>
#include <cpPlugins/DataObjects/Image.h>
#include <cpExtensions/Algorithms/UnaryThresholdImageFilter.h>
-#include <cpExtensions/Algorithms/UnaryThresholdImageFilter.hxx>
-#include <itkUnaryFunctorImageFilter.hxx>
// -------------------------------------------------------------------------
cpPluginsImageThresholdFilters::UnaryThresholdImageFilter::
UnaryThresholdImageFilter( )
: 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( "Threshold" );
this->m_Parameters.ConfigureAsReal( "InsideValue" );
void cpPluginsImageThresholdFilters::UnaryThresholdImageFilter::
_GenerateData( )
{
- auto o = this->GetInputData( "Input" );
- cpPlugins_Demangle_ImageScalars_Dims( o, _GD0 );
- else this->_Error( "Invalid input image." );
+ /* TODO
+ auto o = this->GetInputData( "Input" );
+ cpPlugins_Demangle_ImageScalars_Dims( o, _GD0 );
+ else this->_Error( "Invalid input image." );
+ */
}
// -------------------------------------------------------------------------
void cpPluginsImageThresholdFilters::UnaryThresholdImageFilter::
_GD0( _TImage* image )
{
- typedef
- cpExtensions::Algorithms::UnaryThresholdImageFilter< _TImage >
- _TFilter;
+ /* TODO
+ typedef
+ cpExtensions::Algorithms::UnaryThresholdImageFilter< _TImage >
+ _TFilter;
- // Configure filter
- _TFilter* filter = this->_CreateITK< _TFilter >( );
- filter->SetInput( image );
- filter->SetThreshold( this->m_Parameters.GetReal( "Threshold" ) );
- filter->SetInsideValue( this->m_Parameters.GetReal( "InsideValue" ) );
- filter->SetOutsideValue( this->m_Parameters.GetReal( "OutsideValue" ) );
- filter->SetStrict( this->m_Parameters.GetBool( "Strict" ) );
- filter->Update( );
+ // Configure filter
+ _TFilter* filter = this->_CreateITK< _TFilter >( );
+ filter->SetInput( image );
+ filter->SetThreshold( this->m_Parameters.GetReal( "Threshold" ) );
+ filter->SetInsideValue( this->m_Parameters.GetReal( "InsideValue" ) );
+ filter->SetOutsideValue( this->m_Parameters.GetReal( "OutsideValue" ) );
+ filter->SetStrict( this->m_Parameters.GetBool( "Strict" ) );
+ filter->Update( );
- // Connect output
- this->GetOutput( "Output" )->SetITK( filter->GetOutput( ) );
+ // Connect output
+ this->GetOutput( "Output" )->SetITK( filter->GetOutput( ) );
+ */
}
// eof - $RCSfile$
#ifndef __cpPluginsImageThresholdFilters__UnaryThresholdImageFilter__h__
#define __cpPluginsImageThresholdFilters__UnaryThresholdImageFilter__h__
-#include <plugins/cpPluginsImageThresholdFilters_Export.h>
+#include <cpPluginsImageThresholdFilters_Export.h>
#include <cpPlugins/BaseObjects/ProcessObject.h>
namespace cpPluginsImageThresholdFilters
protected:
template< class _TImage >
- inline void _GD0( _TImage* image );
+ inline void _GD0( _TImage* image );
};
} // ecapseman