[Insight-users] How to get the read image parameters?

Alireza Akhondi-asl a_akhundi at yahoo.com
Mon Nov 3 17:48:11 EST 2008


Hi
ImageType3D::SpacingType spacing =image->GetSpacing();
ImageType3D::SizeType size=image->GetBufferedRegion().GetSize();ImageType3D::PointType origin=image->GetOrigin();
Also you can find complete information in chapter 4 of http://www.itk.org/ItkSoftwareGuide.pdf
AAA



________________________________
From: orientation f <fuzengliang435 at gmail.com>
To: insight-users <insight-users at itk.org>
Sent: Monday, November 3, 2008 3:25:57 AM
Subject: [Insight-users] How to get the read image parameters?


Hi,
I read the serial image with the class itk::ImageSeriesReader. Now, I want to obtain the parameters, such as origion, spacing and so on.
typedef  int   PixelType_3D;
typedef  itk::Image< PixelType_3D, 3> ImageType3D;
ImageType3D::ConstPointer image;
image = SeriesReader->GetOutput();
The data is stored pointer image now, but I don't know how to get the value of each paramter, such as the double value of spacing, spacing_x = ?
Thanks!


      
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.itk.org/pipermail/insight-users/attachments/20081103/0768fdbd/attachment.htm>


More information about the Insight-users mailing list