[Insight-users] lsm reader fails for 2 channels ?
Daniel Mace
dlm19 at duke.edu
Tue Sep 18 20:34:30 EDT 2007
Alex,
I can confirm that the LSM reader fails for more than one channel (I'm
pretty sure it's not just 3, although I could be wrong). Your best best
is to use the VTKLSMReader file and convert it from a VTK image to an
ITK image. A direct implementation of a robust LSM reader in ITK would
be nice (I have the LSM file format technical document if you're feeling
ambitious ;) ).
Cheers,
Dan
Alex. GOUAILLARD wrote:
> hi all,
>
> I tried the itkLSMImageIO filter on a two channels image
> (http://www.creatis.insa-lyon.fr/~agouaillard/LSMReaderTest/) and it
> failed. The image is a 512*680, with two 12 bits channels.
>
> No test is provided on the toolkit for an lsm file with two channels.
> I used the exisitng test (Testing/Code/IO/itkLSMImageIOTest.cxx) and
> modified the pixeltype to be:
>
> typedef itk::Vector< float, 2 > InputPixelType;
>
> and had the following error message:
> "Sorry, can not handle RGB image with color channels=2."
> which comes from the itktiff lib (tif_getimage.c:138), and
> "Cannot read TIFF image or as TIFF RGBA image" which comes from
> itkTiffImageIO.cxx:1069.
>
> Am I doing something wrong with the image type, or shall I fill a bug
> report?
>
> alex
> _______________________________________________
> Insight-users mailing list
> Insight-users at itk.org
> http://www.itk.org/mailman/listinfo/insight-users
More information about the Insight-users
mailing list