[Insight-users] ImageIOBase::GetSpacing
Bill Lorensen
wlorens1@nycap.rr.com
Mon, 09 Dec 2002 19:40:12 -0500
Try:
double scaleX=3D m_Reader->GetOutput()->GetSpacing()[0];
double scaleY=3D m_Reader->GetOutput()->GetSpacing()[1];
double scaleZ=3D m_Reader->GetOutput()->GetSpacing()[2];
At 02:02 PM 12/9/02 +0100, Samuel Rodr=EDguez Bescos wrote:
>Hello to all,
>=20
>I want to know the spacing attributes of and image for make a mesh=
resulting of the deformable model 3D Segmentation and I need knowing that=
parameters for visualizate the resulted mesh.
>=20
>I do it with the next code:
>=20
> double scaleX=3D m_Reader->GetOutput()->GetSpacing(0);
> double scaleY=3Dm_Reader->GetOutput()->GetSpacing(1);
> double scaleZ=3D m_Reader->GetOutput()->GetSpacing(2);
>=20
>But the are the next error message doing the compilation process:
>
>error C2660: 'GetSpacing' : function does not take 1 parameters.
>=20
>Has anybody any Idea about how is used the function GetSpacing.
>=20
>The interface is=20
>=20
>virtual double =
<http://www.itk.org/Doxygen10/html/classitk_1_1ImageIOBase.html#z888_1>GetS=
pacing (unsigned int i) const
>=20
>Thanks,
>=20
>Sam
>=20
>=20
>=20