}
// -------------------------------------------------------------------------
-template< class I >
+template< class _TImage >
std::string cpPluginsWidgets::SeedWidget::
-_GD0( I* image )
+_GD0( _TImage* image )
{
if( image != NULL )
{
if( this->m_Parameters.GetBool( "SeedsAreInRealSpace" ) )
- return( this->_GD1_Points< I >( image ) );
+ return( this->_GD1_Points( image ) );
else
- return( this->_GD1_Vertices< I >( image ) );
+ return( this->_GD1_Vertices( image ) );
}
else
return( "Widgets::SeedWidget: Input image dimension not supported." );
}
// -------------------------------------------------------------------------
-template< class I >
+template< class _TImage >
std::string cpPluginsWidgets::SeedWidget::
-_GD1_Points( I* image )
+_GD1_Points( _TImage* image )
{
typedef cpExtensions::Interaction::ImageInteractorStyle _S;
- typedef itk::Point< double, I::ImageDimension > _P;
+ typedef itk::Point< double, _TImage::ImageDimension > _P;
typedef itk::SimpleDataObjectDecorator< std::vector< _P > > _Container;
auto container = this->_CreateITK< _Container >( );
double aux_pnt[ 3 ];
- unsigned int dim = ( I::ImageDimension < 3 )? I::ImageDimension: 3;
+ unsigned int dim = ( _TImage::ImageDimension < 3 )? _TImage::ImageDimension: 3;
container->Get( ).clear( );
}
// -------------------------------------------------------------------------
-template< class I >
+template< class _TImage >
std::string cpPluginsWidgets::SeedWidget::
-_GD1_Vertices( I* image )
+_GD1_Vertices( _TImage* image )
{
typedef cpExtensions::Interaction::ImageInteractorStyle _S;
typedef
- itk::SimpleDataObjectDecorator< std::vector< typename I::IndexType > >
+ itk::SimpleDataObjectDecorator< std::vector< typename _TImage::IndexType > >
_Container;
auto container = this->_CreateITK< _Container >( );
double aux_pnt[ 3 ];
- unsigned int dim = ( I::ImageDimension < 3 )? I::ImageDimension: 3;
+ unsigned int dim = ( _TImage::ImageDimension < 3 )? _TImage::ImageDimension: 3;
container->Get( ).clear( );
for( unsigned int i = 0; i < s->GetNumberOfSeeds( ); ++i )
{
s->GetSeedAsPoint( i, aux_pnt );
- typename I::PointType seed;
+ typename _TImage::PointType seed;
for( unsigned int d = 0; d < dim; ++d )
seed[ d ] = aux_pnt[ d ];
- typename I::IndexType idx;
+ typename _TImage::IndexType idx;
if( image->TransformPhysicalPointToIndex( seed, idx ) )
container->Get( ).push_back( idx );
for( unsigned int i = 0; i < s->GetNumberOfSeeds( ); ++i )
{
s->GetSeedAsPoint( i, aux_pnt );
- typename I::PointType seed;
+ typename _TImage::PointType seed;
for( unsigned int d = 0; d < dim; ++d )
seed[ d ] = aux_pnt[ d ];
- typename I::IndexType idx;
+ typename _TImage::IndexType idx;
if( image->TransformPhysicalPointToIndex( seed, idx ) )
container->Get( ).push_back( idx );