#include <ITKSliceFilters/CPRImageFilter.h>
-/* TODO
- #include <cpInstances/Image.h>
- #include <cpInstances/Simple3DCurve.h>
+#include <cpInstances/Image.h>
+#include <cpInstances/Simple3DCurve.h>
- #include <itkImage.h>
- #include <cpExtensions/DataStructures/Simple3DCurve.h>
- #include <cpExtensions/Algorithms/CPRImageFilter.h>
-*/
+#include <itkImage.h>
+#include <cpExtensions/DataStructures/Simple3DCurve.h>
+#include <cpExtensions/Algorithms/CPRImageFilter.h>
// -------------------------------------------------------------------------
cpPluginsITKSliceFilters::CPRImageFilter::
CPRImageFilter( )
: Superclass( )
{
- /* TODO
- typedef cpInstances::Image _TImage;
- typedef cpInstances::Simple3DCurve _TCurve;
- this->_ConfigureInput< _TImage >( "Image", true, false );
- this->_ConfigureInput< _TCurve >( "Curve", true, false );
- this->_ConfigureOutput< _TImage >( "Output" );
-
- this->m_Parameters.ConfigureAsReal( "SliceRadius", 1 );
- */
+ typedef cpInstances::Image _TImage;
+ typedef cpInstances::Simple3DCurve _TCurve;
+ this->_ConfigureInput< _TImage >( "Image", true, false );
+ this->_ConfigureInput< _TCurve >( "Curve", true, false );
+ this->_ConfigureOutput< _TImage >( "Output" );
+ this->m_Parameters.ConfigureAsReal( "SliceRadius", 1 );
}
// -------------------------------------------------------------------------
void cpPluginsITKSliceFilters::CPRImageFilter::
_GenerateData( )
{
- /* TODO
- auto o = this->GetInputData( "Image" );
- cpPlugins_Demangle_Image_ScalarPixels_1( o, _GD0, 3 )
- this->_Error( "Invalid input image." );
- */
+ auto o = this->GetInputData( "Image" );
+ cpPlugins_Demangle_Image_ScalarPixels_1( o, _GD0, 3 )
+ this->_Error( "Invalid input image." );
}
// -------------------------------------------------------------------------
void cpPluginsITKSliceFilters::CPRImageFilter::
_GD0( _TImage* image )
{
- /* TODO
- auto o = this->GetInputData( "Curve" );
- cpPlugins_Demangle_Simple3DCurve_All_2( o, _GD1, image )
- this->_Error( "Invalid input curve." );
- */
+ auto o = this->GetInputData( "Curve" );
+ cpPlugins_Demangle_Simple3DCurve_All_2( o, _GD1, image )
+ this->_Error( "Invalid input curve." );
}
// -------------------------------------------------------------------------
void cpPluginsITKSliceFilters::CPRImageFilter::
_GD1( _TCurve* curve, _TImage* image )
{
- /* TODO
- typedef cpExtensions::Algorithms::CPRImageFilter< _TImage, _TCurve > _TFilter;
-
- auto filter = this->_CreateITK< _TFilter >( );
- filter->SetInput( image );
- filter->SetCurve( curve );
- filter->SetSliceRadius( this->m_Parameters.GetReal( "SliceRadius" ) );
- filter->Update( );
- this->GetOutput( "Output" )->SetITK( filter->GetOutput( ) );
- */
+ typedef cpExtensions::Algorithms::CPRImageFilter< _TImage, _TCurve > _TFilter;
+
+ auto filter = this->_CreateITK< _TFilter >( );
+ filter->SetInput( image );
+ filter->SetCurve( curve );
+ filter->SetSliceRadius( this->m_Parameters.GetReal( "SliceRadius" ) );
+ filter->Update( );
+ this->GetOutput( "Output" )->SetITK( filter->GetOutput( ) );
}
// eof - $RCSfile$
header #define ITK_MANUAL_INSTANTIATION
-tinclude itkResampleImageFilter:h|hxx
+tinclude itkImageToImageFilter:h|hxx
+tinclude itkInPlaceImageFilter:h|hxx
+instances itk::ImageToImageFilter< itk::Image< #scalar_types#, 3 >, itk::Image< #scalar_types#, 2 > >
+instances itk::InPlaceImageFilter< itk::Image< #scalar_types#, 3 >, itk::Image< #scalar_types#, 2 > >
+tinclude itkResampleImageFilter:h|hxx
instances itk::ResampleImageFilter< itk::Image< #scalar_types#, #pdims# >, itk::Image< #scalar_types#, #pdims# >, #real_types#, #real_types# >
+tinclude cpExtensions/Algorithms/IsoImageSlicer:h|hxx
+tinclude itkExtractImageFilter:h|hxx
+tinclude itkJoinSeriesImageFilter:h|hxx
+tinclude itkImageAlgorithm:h|hxx
+
+cinclude cpExtensions/DataStructures/Simple3DCurve.h
+tinclude cpExtensions/Algorithms/CPRImageFilter:h|hxx
+instances cpExtensions::Algorithms::CPRImageFilter< itk::Image< #scalar_types#, 3 >, cpExtensions::DataStructures::Simple3DCurve< #real_types# > >
+
** eof - $RCSfile$