[Insight-users] The SetPosition() method of itk::SpatialObjectPoint

Julien Jomier jjomier at cs.unc.edu
Tue Jan 3 16:39:35 EST 2006


Hi Yan,

Looking at the class:

   void SetPosition(const double x0, const double x1, const double x2);

So SetPosition() is accepting float coordinates.
What kind of error or strange behavior are you getting?

Julien

Yan Yang wrote:
> Hi All,
>  
> I think the SetPosition method in itk::SpatialObjectPoint can only 
> accept integer coordinates, as I could not get a correct filtered image 
> using itk::SpatialObjectToImageFiltet if I used float coordinates. But I 
> referred to Doxygen, the PointType is Point< double, TPointDimension >. 
> I would be grateful if anyone could tell me what kind of data type the 
> SetPosition should use.
>  
> Thanks,
>  
> Yan
>  
>  
> 
> 
> ------------------------------------------------------------------------
> 
> _______________________________________________
> Insight-users mailing list
> Insight-users at itk.org
> http://www.itk.org/mailman/listinfo/insight-users


More information about the Insight-users mailing list