[Insight-users] 3 questions (FFT filters)

Martin Urschler urschler at icg.tu-graz.ac.at
Sat Sep 16 10:07:19 EDT 2006


hi

> 3) impossible to pass origin into image
> I need to manually set an origin of an image:
>  double origin[ Dimension ];
>  for (unsigned int i = 0; i < Dimension; i++)
>    {
>    origin[i] = 0.0;
>    }
>  movingImage->SetOrigin(origin);

you can't pass a standard C array as the origin to an image, the origin 
of an image is an itk::Point

try this:

MovingImageType::PointType origin;
for (unsigned int i = 0; i < Dimension; i++)
    origin[i]=0.0;
movingImage->SetOrigin(origin);

regards,
Martin

-- 
Martin Urschler
TU Graz - Institute for Computer Graphics & Vision
EMail: martin at urschler.info
Web: http://www.urschler.info
-----------------------------------------------------------
"Wehre nichts ab, was zu dir kommt, und halte nichts fest, was von dir 
geht."


More information about the Insight-users mailing list