<html><head><style type="text/css"><!-- DIV {margin:0px;} --></style></head><body><div style="font-family:arial, helvetica, sans-serif;font-size:12pt"><DIV><SPAN lang=EN>
<P>Hi</P>
<P>ImageType3D::SpacingType spacing =image->GetSpacing();</P>
<P>ImageType3D::SizeType size=image->GetBufferedRegion().GetSize();</P></SPAN>ImageType3D::PointType origin=image->GetOrigin();</DIV>
<DIV>Also you can find complete information in chapter 4 of <A href="http://www.itk.org/ItkSoftwareGuide.pdf" target=_blank><SPAN class=yshortcuts id=lw_1225752339_0><FONT color=#0000ff>http://www.itk.org/ItkSoftwareGuide.pdf</FONT></SPAN></A></DIV>
<DIV>AAA</DIV>
<DIV style="FONT-SIZE: 12pt; FONT-FAMILY: arial, helvetica, sans-serif"><BR>
<DIV style="FONT-SIZE: 12pt; FONT-FAMILY: times new roman, new york, times, serif"><FONT face=Tahoma size=2>
<HR SIZE=1>
<B><SPAN style="FONT-WEIGHT: bold">From:</SPAN></B> orientation f <fuzengliang435@gmail.com><BR><B><SPAN style="FONT-WEIGHT: bold">To:</SPAN></B> insight-users <insight-users@itk.org><BR><B><SPAN style="FONT-WEIGHT: bold">Sent:</SPAN></B> Monday, November 3, 2008 3:25:57 AM<BR><B><SPAN style="FONT-WEIGHT: bold">Subject:</SPAN></B> [Insight-users] How to get the read image parameters?<BR></FONT><BR>
<DIV><FONT style="BACKGROUND-COLOR: #008000">Hi,</FONT></DIV>
<DIV><FONT style="BACKGROUND-COLOR: #c7edcc">I read the serial image with the class itk::ImageSeriesReader. Now, I want to obtain the parameters, such as origion, spacing and so on.</FONT><FONT style="BACKGROUND-COLOR: #c7edcc"><BR>typedef int PixelType_3D;<BR>typedef itk::Image< PixelType_3D, 3> ImageType3D;</FONT></DIV>
<DIV><FONT style="BACKGROUND-COLOR: #c7edcc">ImageType3D::ConstPointer image;</FONT></DIV>
<DIV><FONT style="BACKGROUND-COLOR: #c7edcc">image = SeriesReader->GetOutput();</FONT></DIV>
<DIV><FONT style="BACKGROUND-COLOR: #c7edcc">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 = ?</FONT></DIV>
<DIV><FONT style="BACKGROUND-COLOR: #c7edcc">Thanks!</FONT></DIV></DIV></DIV></div><br>
</body></html>