Hi,
what does this error mean?
: error C2440: 'initializing' : cannot convert from 'char' to 'const char *'
i'm trying to read an image from a file using this code:
#include "itkImage.h"
#include "itkImageFileReader.h"
int main( int , char * argv)
{
typedef unsigned char PixelType;
const unsigned int Dimension = 2;
typedef itk::Image<unsigned short, 2> ImageType;
typedef itk::ImageFileReader< ImageType > ReaderType;
ReaderType::Pointer reader = ReaderType::New();
const char * filename = argv[1];
reader->SetFileName( filename );
reader->Update();
ImageType::Pointer image = reader->GetOutput();
return 0;
}
what is wrong?
I already took this code from the ITK librray.
jowana