<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Tahoma
}
--></style>
</head>
<body class='hmmessage'>
Hi, <BR>
&nbsp;<BR>
Thank you for your help !<BR>
&nbsp;<BR>
I did what u told&nbsp;me .. and I still get the same error <BR>
&nbsp;<BR><FONT size=1>
<FONT size=2>error C2664: 'itk::LineConstIterator&lt;TImage&gt;::LineConstIterator(const itk::Image&lt;TPixel,VImageDimension&gt; *,const itk::Index&lt;VIndexDimension&gt; &amp;,const itk::Index&lt;VIndexDimension&gt; &amp;)' : cannot convert parameter 1 from 'itk::SmartPointer&lt;TObjectType&gt;' to 'const itk::Image&lt;TPixel,VImageDimension&gt; *'</FONT><BR>
&nbsp;<BR>
</FONT>how can&nbsp;I fix it ?<BR>
&nbsp;<BR>
thanks <BR>&nbsp;<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>&lt;<A href="mailto:xlolla28x@hotmail.com">xlolla28x@hotmail.com</A>&gt;</SPAN><BR>
<BLOCKQUOTE class=ecxgmail_quote style="PADDING-LEFT: 1ex; BORDER-LEFT: #ccc 1px solid">
<DIV>Hi, <BR>&nbsp;<BR>what does this part do ?<BR>it&nbsp;is specifying two points in the region? right?<BR>i already have both my points. <BR>&nbsp;<BR>thanks&nbsp; <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>