[Insight-users] Image origin
Dawood AlMasslawi
masslawi at gmail.com
Mon Jul 18 08:27:30 EDT 2011
Hi Rashed,
You can easily change the origin of your image using the SetOrigin property.
For example,
ImageType::PointType origin;
origin[0] = 0;
origin[1] = 0;
origin[2] = 0;
image->SetOrigin(origin);
Regards,
Dawood
>>>>>>>>>>>>>>>>>>>>>>>><<<<<<<<<<<<<<<<<<<<<<<<
>>>>>>>>>>>>>>>>>>>>>>>><<<<<<<<<<<<<<<<<<<<<<<<
Hi all,
I have converted a dicom series to NIFTI format using code in:
Examples/IO/DicomSeriesReadImageWrite2.cxx
Question: The origin of the NIFTI image shows to be (x y z) = (-8.5, 24.0,
0.77), in world co-ordinates. I want the origin to be (0, 0, 0). How can
this be done? I applied a translation to the image but that didn't seem to
work.
RK
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.itk.org/pipermail/insight-users/attachments/20110718/ab5b546e/attachment.htm>
More information about the Insight-users
mailing list