<div dir="ltr">Hi Simon,<div><br></div><div>Thanks for the quick reply. This solved the issue I was having. I simply changed the offset value in the mhd file, created the projection and moved the offset value of the final reconstruction back to its original value so the world coordinates would be the same.</div><div><br></div><div>Just as a side question, do you know what the center of rotation values are used for in mhd files? They're all 0 0 0 and I am not noticing any differences when I change the values.</div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Feb 3, 2016 at 10:14 PM, Simon Rit <span dir="ltr"><<a href="mailto:simon.rit@creatis.insa-lyon.fr" target="_blank">simon.rit@creatis.insa-lyon.fr</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div>
Hi,<br>
If you want to move a volume around space and keep the same geometry
for the source and detector positions, the best is to modify the
origin of your itk image. I don't know what is the original file
format but with mhd files, you simply have to change the Offset
value in the mhd file.<br>
Good luck,<br>
Simon<div><div class="h5"><br>
<br>
<div>On 04/02/2016 00:25, Solomon Tang
wrote:<br>
</div>
</div></div><blockquote type="cite"><div><div class="h5">
<div dir="ltr">
<div style="font-size:12.8px">Dear rtk-users,</div>
<div style="font-size:12.8px"><br>
</div>
<div style="font-size:12.8px">I am having success with forward
projection and reconstruction of complete cases much like in
the example from the wiki. However, I am interested in
creating projections of cropped images. I took the 00.mha from
the example and cropped it. When I create the projection,
using rtkforwardprojections, the cropped projection rotates
around the isocenter of the original uncropped file around the
AP axis as expected.</div>
<div style="font-size:12.8px"><br>
</div>
<div style="font-size:12.8px">Is there a way to create a
projection of a cropped image such that the cropped projection
rotates around a newly centered AP axis?</div>
<div style="font-size:12.8px"><br>
</div>
<div style="font-size:12.8px">I am certain that the origin and
spacing values of the geometry are correct. I have tried
messing with the sid and the sdd values but they do not
influence the distance between the isocenter and the cropped
object.</div>
<div style="font-size:12.8px"><br>
</div>
<div style="font-size:12.8px">Thanks</div>
</div>
<br>
<fieldset></fieldset>
<br>
</div></div><pre>_______________________________________________
Rtk-users mailing list
<a href="mailto:Rtk-users@public.kitware.com" target="_blank">Rtk-users@public.kitware.com</a>
<a href="http://public.kitware.com/mailman/listinfo/rtk-users" target="_blank">http://public.kitware.com/mailman/listinfo/rtk-users</a>
</pre>
</blockquote>
<br>
</div>
</blockquote></div><div><br></div><div class="gmail_signature"><div dir="ltr"><div><div dir="ltr"></div></div></div></div>
</div></div>