#include <itkImage.h>
#include <itkRGBPixel.h>
+// -------------------------------------------------------------------------
+std::string cpPlugins::Plugins::ImageReader::
+GetClassName( ) const
+{
+ return( "cpPlugins::Plugins::ImageReader" );
+}
+
// -------------------------------------------------------------------------
cpPlugins::Plugins::ImageReader::
ImageReader( )
{
}
-// -------------------------------------------------------------------------
-std::string cpPlugins::Plugins::ImageReader::
-GetClassName( ) const
-{
- return( "cpPlugins::Plugins::ImageReader" );
-}
-
// -------------------------------------------------------------------------
std::string cpPlugins::Plugins::ImageReader::
_GenerateData( )
if( dIt == this->m_Parameters.end( ) )
dIt = this->m_DefaultParameters.find( "ImageDimension" );
- std::string r = "itk::Image dimension not supported.";
+ std::string r = "cpPlugins::Plugins::ImageReader: itk::Image dimension not supported.";
if ( dIt->second.second == "1" ) r = this->_GD0< 1 >( );
else if( dIt->second.second == "2" ) r = this->_GD0< 2 >( );
else if( dIt->second.second == "3" ) r = this->_GD0< 3 >( );
if( cIt == this->m_Parameters.end( ) )
cIt = this->m_DefaultParameters.find( "IsColorImage" );
- std::string r = "itk::Image pixel type not supported";
+ std::string r = "cpPlugins::Plugins::ImageReader: itk::Image pixel type not supported";
if( cIt->second.second == "0" )
{
if( tIt->second.second == "char" )
fIt = this->m_DefaultParameters.find( "FileName" );
typedef itk::Image< P, D > _TImage;
- typedef itk::ImageFileReader< _TImage > _TImageReader;
+ typedef itk::ImageFileReader< _TImage > _TReader;
- _TImageReader* reader =
- dynamic_cast< _TImageReader* >( this->m_Reader.GetPointer( ) );
+ _TReader* reader =
+ dynamic_cast< _TReader* >( this->m_RealProcessObject.GetPointer( ) );
if( reader == NULL )
{
- this->m_Reader = _TImageReader::New( );
- reader = dynamic_cast< _TImageReader* >( this->m_Reader.GetPointer( ) );
+ this->m_RealProcessObject = _TReader::New( );
+ reader =
+ dynamic_cast< _TReader* >( this->m_RealProcessObject.GetPointer( ) );
} // fi
reader->SetFileName( fIt->second.second );