[Insight-users] [insight-users] How to write 2D slices into a folder?

Mario Ceresa mario.ceresa at torrescalla.it
Tue Mar 18 05:30:08 EDT 2008


Hi Sherry,
If you just want to save a single slice why don't you use the
ImageFileWriter class?

Here there is a thread that might help you in working out the details:

http://www.itk.org/pipermail/insight-users/2008-March/025083.html

Best regards,

Mario

On Tue, Mar 18, 2008 at 1:51 AM, Sherry Shang <sherryxiaoshang at gmail.com> wrote:
> Hi Mario:
>
>   Thank you for your help!
>
>    I load the data through a loop. Because I try to compare two adjacent
> slices in a 2D slices series and remove too slimilar slices. After that, I
> have to save remaining slices in a folder.  The input of "Writing a 2D DICOM
> Series" should be a volume, that is right? I try to write image slice by
> slice into a folder.  I mean after processing two images, save these two
> images.
>
>   How can I do that?
>   Thanks
>
> Sherry
>
>
>
>
> On 3/18/08, Mario Ceresa <mario.ceresa at torrescalla.it> wrote:
> > Hi Sherry,
> > How do you load the slice data? If you load them from DICOM format, I
> > think that section
> >
> > "7.12.4 Reading a 2D DICOM Series and Writing a 2D DICOM Series"
> >
> > of Itk guide can help you
> >
> > Also the source code for this section can be found in the file
> > Examples/IO/DicomSeriesReadSeriesWrite.cxx.
> >
> > Hope this helps
> >
> >
> > Mario
> >
> >
> >
> >
> > On Mon, Mar 17, 2008 at 1:14 AM, Sherry Shang <sherryxiaoshang at gmail.com>
> wrote:
> > >
> > >
> > > Dear All
> > >
> > > I am a newer in ITK. I am trying to do slice by slice processing. I got
> some
> > > problem when I was trying to write the slice image, because I want to
> write
> > > slices into a folder. Can I use "itkImageSeriesWriter", but this writer
> is
> > > just for writing 3D volume to 2D slices. I need to write 2D slices into
> a
> > > folder. Please help me. Thanks.
> > >
> > >
> > > Sherry
> > > _______________________________________________
> > >  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