Hi Rashed,<div><br></div><div>You can easily change the origin of your image using the SetOrigin property.</div><div><br></div><div>For example,</div><br>ImageType::PointType origin; <div><br>origin[0] = 0;<div><br><div>origin[1] = 0;</div>
<div><br></div><div>origin[2] = 0;</div><div><br>image->SetOrigin(origin);</div><div><br></div><div>Regards,</div><div><br></div><div>Dawood</div><div><br></div><div><br></div><div>>>>>>>>>>>>>>>>>>>>>>>>><<<<<<<<<<<<<<<<<<<<<<<<</div>
<div><br></div><div>>>>>>>>>>>>>>>>>>>>>>>>><<<<<<<<<<<<<<<<<<<<<<<<</div><div>
<br></div><div><br></div><div><span class="Apple-style-span" style="font-family: 'Times New Roman'; font-size: medium; "><pre>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</pre></span></div></div></div>