[Insight-users] drawing a line

Kevin H. Hobbs hobbsk at ohio.edu
Thu Apr 21 13:58:45 EDT 2011


On 04/21/2011 01:33 PM, LaMoOsH .. wrote:
> 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 ?

You need to instantiate the iterator with an image and not with
the reader.

Try using "reader->GetOutput()" instead of just "reader".

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 261 bytes
Desc: OpenPGP digital signature
URL: <http://www.itk.org/pipermail/insight-users/attachments/20110421/26bbea1b/attachment.pgp>


More information about the Insight-users mailing list