typedef itk::ImageBase< 2 > _2DImage;
typedef itk::ImageBase< 3 > _3DImage;
- cpPlugins::Interface::Image* image =
- this->GetInput< cpPlugins::Interface::Image >( "ReferenceImage" );
+ auto image =
+ this->GetInputData< cpPlugins::Interface::Image >( "ReferenceImage" );
if( image == NULL )
return( "SeedWidget: No input image." );
typedef cpExtensions::Interaction::ImageInteractorStyle _S;
I* base_image = dynamic_cast< I* >( image );
- cpPlugins::Interface::PointList* out =
- this->GetOutput< cpPlugins::Interface::PointList >( "Output" );
+ auto out =
+ this->GetOutputData< cpPlugins::Interface::PointList >( "Output" );
double aux_pnt[ 3 ];
unsigned int dim = ( I::ImageDimension < 3 )? I::ImageDimension: 3;