<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Tahoma
}
--></style>
</head>
<body class='hmmessage'>
Hi, <BR>
<BR>
Thank you for your help !<BR>
<BR>
I did what u told me .. and I still get the same error <BR>
<BR><FONT size=1>
<FONT size=2>error C2664: 'itk::LineConstIterator<TImage>::LineConstIterator(const itk::Image<TPixel,VImageDimension> *,const itk::Index<VIndexDimension> &,const itk::Index<VIndexDimension> &)' : cannot convert parameter 1 from 'itk::SmartPointer<TObjectType>' to 'const itk::Image<TPixel,VImageDimension> *'</FONT><BR>
<BR>
</FONT>how can I fix it ?<BR>
<BR>
thanks <BR> <BR>
<HR id=stopSpelling>
Date: Thu, 21 Apr 2011 11:30:13 -0400<BR>Subject: Re: [Insight-users] drawing a line<BR>From: daviddoria@gmail.com<BR>To: xlolla28x@hotmail.com<BR>CC: insight-users@itk.org<BR><BR>
<DIV class=ecxgmail_quote>2011/4/21 LaMoOsH .. <SPAN dir=ltr><<A href="mailto:xlolla28x@hotmail.com">xlolla28x@hotmail.com</A>></SPAN><BR>
<BLOCKQUOTE class=ecxgmail_quote style="PADDING-LEFT: 1ex; BORDER-LEFT: #ccc 1px solid">
<DIV>Hi, <BR> <BR>what does this part do ?<BR>it is specifying two points in the region? right?<BR>i already have both my points. <BR> <BR>thanks <BR></DIV></BLOCKQUOTE>
<DIV><BR>Right, but (170.910,144.438) is not anything to a c++ compiler<BR><BR>It needs to be like this:<BR><PRE> ImageType<SPAN>::</SPAN><SPAN>IndexType</SPAN> point<SPAN>;</SPAN>
point0<SPAN>[</SPAN><SPAN>0</SPAN><SPAN>]</SPAN> <SPAN>=</SPAN> 170.91<SPAN>;</SPAN>
point<SPAN>1[</SPAN><SPAN>1</SPAN><SPAN>]</SPAN> <SPAN>=</SPAN> 144.438<SPAN>;</SPAN><BR></PRE>// same idea for point 0<BR><BR>LineIteratorType it( reader, point0, point1);<BR clear=all><BR>David <BR></DIV></DIV>                                            </body>
</html>