[Insight-users] drawing a line

LaMoOsH .. xlolla28x at hotmail.com
Fri Apr 22 07:10:33 EDT 2011



 Hi
 
i still dont know how can i fix this error. why does it crash? memory?
 
Access violation reading location 0x000002d8.
 
on this line 
 
std::cout <<(float)iterator.Get() << std::endl;
 
Thanks.  


From: xlolla28x at hotmail.com
To: daviddoria at gmail.com
Date: Thu, 21 Apr 2011 19:16:31 +0000
CC: insight-users at itk.org
Subject: Re: [Insight-users] drawing a line




sorry about this, 
i get this error when i add th eiterator to my pipeline. 
if I dont add it, it built without errors, but when i run it, it breaks on the Get. line. 
 


Date: Thu, 21 Apr 2011 14:39:30 -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, 
 
great ! it was built. I didnt create a new image, just added the pointer to my image .
 
But now , i cant debug this 
it breaks on 
std::cout <<(float)iterator.Get() << std::endl;
why?
and I cant add image to my pipeline 
when i add it i get this error 
 
error C2039: 'SetInput' : is not a member of 'itk::Image<TPixel,VImageDimension>
 
thanks

error C2039: 'SetInput' : is not a member of 'itk::Image<TPixel,VImageDimension>

SetInput is indeed not a member of itkImage

You have not shown us the correct line - the error is not complaining about the call to .Get().

I suggest you look through some of the basic examples here:http://www.vtk.org/Wiki/ITK/Examples

David

_____________________________________ Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Kitware offers ITK Training Courses, for more information visit: http://www.kitware.com/products/protraining.html Please keep messages on-topic and check the ITK FAQ at: http://www.itk.org/Wiki/ITK_FAQ Follow this link to subscribe/unsubscribe: http://www.itk.org/mailman/listinfo/insight-users 		 	   		  
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.itk.org/pipermail/insight-users/attachments/20110422/7479e860/attachment.htm>


More information about the Insight-users mailing list