[Insight-users] ITK LSM READER

Gaetan Lehmann gaetan.lehmann at jouy.inra.fr
Thu Oct 19 09:24:51 EDT 2006


Hi,

LSM reader doesn't seem to be fully functional in ITK. The last time I  
tried it, I was able to read an lsm file only if it contains a single  
channel.

You should prefer the very good vtkLSMReader developed for BioImageXD. I'm  
using it daily, and it works perfectly.

http://svn.sourceforge.net/viewvc/bioimagexd/bioimagexd/trunk/C%2B%2B/
http://modeling.bio.jyu.fi:8080/bioimagexd

Gaetan


On Thu, 19 Oct 2006 15:08:29 +0200, Manuss <mac.manuss at gmail.com> wrote:

>   Hello,
> I  try to convert the LSM files (Zeiss) to VTK file format.
>
> I had a look on the different Library of VTK/ITK
> and i saw that on ITK->Code->IO, there is a file call itkLSMImageIO
> (.h and .cxx) which read a LSM file.
> But i have a problem when i read the LSM file and save it in a VTK
> format, it saves only the first image of the stack.
> It create all the different images in z and make a VTK matrix with
> all this stack, but only the first image on this stack is written,
> the other are all black ...
> Have you got an Idea, i think it's a problem of the reader.
>
>
>
> I use the file itkLSMImageIOTest.cxx
>
>
>    typedef itk::RGBPixel< unsigned char >   InputPixelType;
>    typedef itk::Image< InputPixelType, 3 > InputImageType;
>    typedef itk::ImageFileReader< InputImageType > ReaderType;
>    typedef itk::LSMImageIO ImageIOType;
>
>    ReaderType::Pointer reader = ReaderType::New();
>    reader->SetFileName( filename );
>
>    ImageIOType::Pointer lsmImageIO = ImageIOType::New();
>    reader->SetImageIO( lsmImageIO );
>
>    reader->Update();
>
>
>    typedef itk::ImageFileWriter< InputImageType >  WriterType;
>    WriterType::Pointer writer = WriterType::New();
>    writer->SetFileName( outfilename );
>    writer->SetInput( reader->GetOutput() );
>
>    writer->Update();
>
> lsmImageIO->Print(std::cout);
>



-- 
Gaëtan Lehmann
Biologie du Développement et de la Reproduction
INRA de Jouy-en-Josas (France)
tel: +33 1 34 65 29 66    fax: 01 34 65 29 09
http://voxel.jouy.inra.fr


More information about the Insight-users mailing list