[Insight-users] drawing a line

LaMoOsH .. xlolla28x at hotmail.com
Thu Apr 21 13:33:29 EDT 2011


Hi, 
 
Thank you for your help !
 
I did what u told me .. and I still get the same error 
 
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> *'
 
how can I fix it ?
 
thanks 
 


Date: Thu, 21 Apr 2011 11:30:13 -0400
Subject: Re: [Insight-users] drawing a line
From: daviddoria at gmail.com
To: xlolla28x at hotmail.com
CC: insight-users at itk.org


2011/4/21 LaMoOsH .. <xlolla28x at hotmail.com>


Hi, 
 
what does this part do ?
it is specifying two points in the region? right?
i already have both my points. 
 
thanks  


Right, but (170.910,144.438) is not anything to a c++ compiler

It needs to be like this:
  ImageType::IndexType point;
  point0[0] = 170.91;
  point1[1] = 144.438;
// same idea for point 0

LineIteratorType it( reader, point0, point1);
David 
 		 	   		  
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.itk.org/pipermail/insight-users/attachments/20110421/07e9912f/attachment.htm>


More information about the Insight-users mailing list