[Insight-users] Insight-users Digest, Vol 57, Issue 58

David Fuentes fuentesdt at gmail.com
Wed Jan 28 18:34:58 EST 2009


> ----------------------------------------------------------------------
>
> Message: 1
> Date: Wed, 28 Jan 2009 09:06:09 -0800 (PST)
> From: John Smith <af3113 at yahoo.com>
> Subject: [Insight-users] Can ImageSeriesReader read slice-by-slice?
> To: insight-users at itk.org
> Message-ID: <459725.83315.qm at web31908.mail.mud.yahoo.com>
> Content-Type: text/plain; charset="us-ascii"
>
> Dear all,
>
> I'm using ImageSeriesReader to convert a set of DIOCM slice into a 3D DICOM image and it works. The question is, can one directly get one slice directly, i.e. reader->somefunction(slice), from the reader? or do I have to cut the 3D image to do that?
>
> Thanks in advance,
>
> John
>
>

the reader accepts

  std::vector<std::string>

so you do

   reader->SetFileNames(files);

where

   files

is the file names of the slices you are interested in


you could also output a mha file from

    $ITK_SOURCE/Examples/IO/DicomSeriesReadImageWrite

and use the "slice" functionality in paraview.


More information about the Insight-users mailing list