<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Tahoma
}
--></style>
</head>
<body class='hmmessage'>
Hello, <BR>
<BR>
I am new to itk, and trying to draw a line between two points.<BR>
<BR><FONT color=#0000ff size=2><FONT color=#0000ff size=2>
typedef</FONT></FONT><FONT size=2> itk::LineConstIterator< OutputImageType > LineIteratorType;<BR>
LineIteratorType it( reader, (170.910,144.438),(170.910,450.510) );<BR>
it.GoToBegin();<BR>
</FONT><FONT color=#0000ff size=2><FONT color=#0000ff size=2>while</FONT></FONT><FONT size=2> (!it.IsAtEnd())<BR>
{<BR>
std::cout << (</FONT><FONT color=#0000ff size=2><FONT color=#0000ff size=2>float</FONT></FONT><FONT size=2>)it.Get() << std::endl;<BR>
++it;<BR>
}<BR>
<BR>
can I know what is wring with this code?<BR>
the error is <BR>
<BR><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> *'<BR>
<BR>
i think the way im writing the points might be wrong. not sure.<BR>
my reader a reader to an image already defined before and the pixel is of type float. <BR>
output image type is the output of another function that was applied on my image. <BR>
<BR>
hope i get some help.<BR>
<BR>
Thank you. <BR></FONT></FONT>                                            </body>
</html>