[Insight-users] ImageIOBase::GetSpacing
Samuel Rodríguez Bescos
srodrigu@gbt.tfo.upm.es
Mon, 9 Dec 2002 14:02:49 +0100
This is a multi-part message in MIME format.
------=_NextPart_000_0034_01C29F8B.A8568C30
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
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=3D m_Reader->GetOutput()->GetSpacing(0);
double scaleY=3Dm_Reader->GetOutput()->GetSpacing(1);
double scaleZ=3D 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=20
virtual double GetSpacing (unsigned int i) const=20
Thanks,
Sam
------=_NextPart_000_0034_01C29F8B.A8568C30
Content-Type: text/html;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=3DContent-Type content=3D"text/html; =
charset=3Diso-8859-1">
<META content=3D"MSHTML 6.00.2715.400" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT face=3DArial size=3D2>Hello to all,</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2>I want to know the spacing attributes =
of and image=20
for make a mesh resulting of the deformable model 3D Segmentation and I =
need=20
knowing that parameters for visualizate the resulted mesh.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2>I do it with the next =
code:</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2> double scaleX=3D=20
m_Reader->GetOutput()->GetSpacing(0);<BR> double=20
scaleY=3Dm_Reader->GetOutput()->GetSpacing(1);<BR> double =
scaleZ=3D=20
m_Reader->GetOutput()->GetSpacing(2);</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2>But the are the next error =
message doing the=20
compilation process:</FONT></DIV><FONT face=3DArial size=3D2>
<DIV><BR>error C2660: 'GetSpacing' : function does not take 1 =
parameters.</DIV>
<DIV> </DIV>
<DIV>Has anybody any Idea about how is used the function =
GetSpacing.</DIV>
<DIV> </DIV>
<DIV>The interface is </DIV>
<DIV> </DIV>
<DIV>
<TABLE cellSpacing=3D0 cellPadding=3D0 border=3D0>
<TBODY>
<TR>
<TD vAlign=3Dtop noWrap align=3Dright><FONT size=3D2>virtual=20
double </FONT></TD>
<TD vAlign=3Dbottom><A class=3Del=20
=
href=3D"http://www.itk.org/Doxygen10/html/classitk_1_1ImageIOBase.html#z8=
88_1"><FONT=20
size=3D2>GetSpacing</FONT></A><FONT size=3D2> (unsigned int i)=20
const</FONT></TD></TR></TBODY></TABLE></DIV>
<DIV> </DIV>
<DIV>Thanks,</DIV>
<DIV> </DIV>
<DIV>Sam<BR></DIV></FONT>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2> </DIV>
<DIV><BR></DIV></FONT></BODY></HTML>
------=_NextPart_000_0034_01C29F8B.A8568C30--