[Insight-users] ImageIOBase::GetSpacing
Samuel Rodríguez Bescos
srodrigu@gbt.tfo.upm.es
Tue, 10 Dec 2002 11:16:55 +0100
Thanks Bill for your help.
Sam
----- Original Message -----
From: "Bill Lorensen" <wlorens1@nycap.rr.com>
To: "Samuel Rodríguez Bescos" <srodrigu@gbt.tfo.upm.es>;
<insight-users@public.kitware.com>
Sent: Tuesday, December 10, 2002 1:40 AM
Subject: Re: [Insight-users] ImageIOBase::GetSpacing
> Try:
> double scaleX= m_Reader->GetOutput()->GetSpacing()[0];
> double scaleY= m_Reader->GetOutput()->GetSpacing()[1];
> double scaleZ= m_Reader->GetOutput()->GetSpacing()[2];
>
> At 02:02 PM 12/9/02 +0100, Samuel Rodríguez Bescos wrote:
> >Hello to all,
> >
> >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.
> >
> >I do it with the next code:
> >
> > double scaleX= m_Reader->GetOutput()->GetSpacing(0);
> > double scaleY=m_Reader->GetOutput()->GetSpacing(1);
> > double scaleZ= m_Reader->GetOutput()->GetSpacing(2);
> >
> >But the are the next error message doing the compilation process:
> >
> >error C2660: 'GetSpacing' : function does not take 1 parameters.
> >
> >Has anybody any Idea about how is used the function GetSpacing.
> >
> >The interface is
> >
> >virtual double
<http://www.itk.org/Doxygen10/html/classitk_1_1ImageIOBase.html#z888_1>GetSp
acing (unsigned int i) const
> >
> >Thanks,
> >
> >Sam
> >
> >
> >
>
>
> _______________________________________________
> Insight-users mailing list
> Insight-users@public.kitware.com
> http://public.kitware.com/mailman/listinfo/insight-users