[Insight-users] about series write
Luis Ibanez
luis.ibanez at kitware.com
Sun Dec 19 11:02:49 EST 2004
Hi Yixun,
Thanks for the clarification.
If you need to transpose the axis of the image, then simply
insert the PermuteAxesImageFilter between the reader and the
writer.
http://www.itk.org/Insight/Doxygen/html/classitk_1_1PermuteAxesImageFilter.html
The pipeline will look like
SeriesReader---->PermuteAxes----->SeriesWriter
Note that you will have to be *very* careful in order to
make sure that you dont swap left-right in the final image.
Regards
Luis
-------------------------------------------
Yixun Liu wrote:
> Hi,
>
> The question is I do not want to save it along the Z direction(slice direction). The original slice is sagittal, but I want to save it axially.
>
> Thank you!
>
> ----- Original Message -----
> From: "Luis Ibanez" <luis.ibanez at kitware.com>
> To: "Yixun Liu" <yxliu at fudan.edu.cn>
> Cc: <insight-users at itk.org>
> Sent: Sunday, December 19, 2004 11:24 AM
> Subject: Re: [Insight-users] about series write
>
>
>
>>Hi Yixun,
>>
>>Just combine the following two examples from the IO directory
>>
>>
>> Insight/Examples/IO/
>>
>> DicomSeriesReadImageWrite.cxx
>>
>> ImageReadImageSeriesWrite.cxx
>>
>>The first example shows you how to read an image from a set
>>of DICOM files. The second example shows how to save an image
>>as a series of 2D slices, where you can select any image file
>>format, such as PNG, TIFF, JPEG... etc.
>>
>>Note that you must provide the base filename for the
>>output slices as well as the filename extensiong.
>>
>>If you want to get image in TIFF file format, then
>>simply provide "tiff" as the extension.
>>
>>
>>Please let us know if you have further questions,
>>
>>
>> Thanks
>>
>>
>> Luis
>>
>>
>>-------------------------
>>Yixun Liu wrote:
>>
>>
>>>Hi,
>>>
>>>I have a DICOM sagittal series and I want to write it to a series of
>>>TIFF file. Each tiff file is a corsscut instead of sagittal. Anybody
>>>tell me how to do it?
>>>
>>>
>>>Thanks,
>>>
>>>Yixun liu
>>>
>>>
>>>------------------------------------------------------------------------
>>>
>>>_______________________________________________
>>>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