- typename _TImage1::PointType pnt;
- TParameters::const_iterator sIt;
- sIt = this->m_Parameters.find( "Seed" );
- if( sIt == this->m_Parameters.end( ) )
- return( "cpm::Plugins::SimpleFillRegion: no seed given." );
- char* buff = new char[ sIt->second.second.size( ) + 1 ];
- std::memcpy( buff, sIt->second.second.c_str( ), sIt->second.second.size( ) );
- buff[ sIt->second.second.size( ) ] = '\0';
- char* tok = std::strtok( buff, ":" );
- for( unsigned int d = 0; d < D; ++d )
- {
- pnt[ d ] = std::atof( tok );
- tok = std::strtok( NULL, ":" );
-
- } // rof
- delete [] buff;
+ typename _TImage1::PointType pnt =
+ this->m_Parameters.GetValueAsPoint< typename _TImage1::PointType >( "Seed" );