[Insight-users] Saving output files

Rob Bijman lambikjes at hotmail.com
Tue Jun 8 05:17:29 EDT 2004


Dear ITK users,

Thank you very much for your help!
I have to view the output files in order to look if the filters inside my 
program work correctly.
I hope it works now.

With kind regards,

Rob Bijman


>From: Luis Ibanez <luis.ibanez at kitware.com>
>To: Rob Bijman <lambikjes at hotmail.com>
>CC: insight-users at itk.org
>Subject: Re: [Insight-users] Saving output files
>Date: Mon, 07 Jun 2004 10:47:05 -0400
>
>
>Hi Rob,
>
>Saving image files from ITK is extremely simple:
>
>
>You just need the following lines:
>
>
>   #include "itkImageFileWriter.h"
>
>   itk::ImageFileWriter< ImageType >  WriterType:
>   WriterType::Pointer writer = WriterType::New()
>   writer->SetFileName("myFileName.png");
>   writer->SetInput( filter->GetOutput() );
>   writer->Update();
>
>
>
>You will find these lines over and over again if
>you look to almost any of the 200 examples in the
>directory:
>
>         Insight/Examples
>
>In particular you may want to look at
>
>
>        Insight/Examples/IO
>        Insight/Examples/Filtering
>
>
>For a list of all the fileformats supported by ITK,
>please look at the FAQ.
>
>
>You will also find useful to read the IO chapter
>on the SoftwareGuide
>
>
>    http://www.itk.org/ItkSoftwareGuide.pdf
>
>
>
>   Regards,
>
>
>     Luis
>
>
>
>-----------------
>Rob Bijman wrote:
>>Dear ITK users,
>>
>>when I apply filters and other ITK functions on my images, I want to see 
>>the output of the image. In other words, that the program makes an output 
>>file I am able to load.
>>Does someone of you have some tips how to save the output images in a 
>>simple way? Instead of using VTK?
>>
>>With kind regards,
>>
>>Rob Bijman
>>
>>_________________________________________________________________
>>Talk with your online friends with MSN Messenger http://messenger.msn.nl/
>>
>>_______________________________________________
>>Insight-users mailing list
>>Insight-users at itk.org
>>http://www.itk.org/mailman/listinfo/insight-users
>>
>
>
>

_________________________________________________________________
Play online games with your friends with MSN Messenger 
http://messenger.msn.nl/



More information about the Insight-users mailing list