[Insight-users] Reading LSM images
Jesse Stokum
jessestokum at gmail.com
Fri Feb 12 12:34:42 EST 2010
I'm trying to use ITK's ImageFileReader to read in LSM format images
and my code is abruptly throwing exceptions. The images are three
channel, and are ~30 slices. Should I consider them 3d images? Here's
the code in my main() I've been trying:
typedef itk::RGBPixel<unsigned char> PixelType;
typedef itk::Image<PixelType, 3> ImageType;
typedef itk::ImageFileReader<ImageType> ReaderType;
typedef itk::LSMImageIO ImageIOType;
typedef itk::ImageFileWriter<ImageType> WriterType;
ReaderType::Pointer reader = ReaderType::New();
ImageIOType::Pointer lsmImageIO = ImageIOType::New();
reader->SetImageIO(lsmImageIO);
reader->SetFileName("Tests.lsm");
Are lsm pixels vector pixels? I guess I'm just unsure how to handle
this situation. Thanks in advance!
More information about the Insight-users
mailing list