<div dir="ltr">Hi,<br>Sorry, I guess the geometry is not perfectly explained. The source should be in the positive Z if you have a positive sdd, see "6.2 Source position" section of the <a href="http://www.openrtk.org/Doxygen/geometry.pdf">geometry document</a>. I enclose a drawing to help you visualize this (which will make it to the doxygen doc when I find the time to put everything there).<br>Simon<br></div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Oct 21, 2016 at 2:48 PM, Serkan Cimen <span dir="ltr"><<a href="mailto:s.cimen@sheffield.ac.uk" target="_blank">s.cimen@sheffield.ac.uk</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hi,<br><br>I am trying to understand the RTK geometry, but I am a bit confused. I wrote the following:<br><br>#include "rtkThreeDCircularProjectionGe<wbr>ometry.h"<br>typedef rtk::ThreeDCircularProjectionG<wbr>eometry GeometryType;<br>int main(int argc, char *argv[])<br>{<br>    int argOffset = 1;<br>    double gantryAngle     = atof(argv[argOffset++]);<br>    double outOfPlaneAngle = atof(argv[argOffset++]);<br>    double inPlaneAngle    = atof(argv[argOffset++]);<br>    double sid             = atof(argv[argOffset++]);<br>    double sdd             = atof(argv[argOffset++]);<br><br>    GeometryType::Pointer rtkGeo = GeometryType::New();<br>    rtkGeo->AddProjection(sid, sdd, gantryAngle, 0.0, 0.0, outOfPlaneAngle, inPlaneAngle, 0.0, 0.0);<br>    std::cout << rtkGeo->GetSourcePosition(0) << std::endl;<br><br>    return EXIT_SUCCESS;<br>}<br><br>With inputs 0 0 0 400 1000, I expect to get the source at [0,0,-400 1] but I get [0,0,400,1]. The reason for my expectation is this sentence from geometry description file:<br>"With all parameters set to 0, the detector is normal to the z direction of the fixed coordinate system". I drew a sketch (please see attached) of what I understood from this sentence, and was wondering if I am correct?<br><br>It looks like I am missing something trivial, but couldn't figure out what. Many thanks in advance.<br><br>Kind regards,<br>Serkan<br></div>
<br>______________________________<wbr>_________________<br>
Rtk-users mailing list<br>
<a href="mailto:Rtk-users@public.kitware.com">Rtk-users@public.kitware.com</a><br>
<a href="http://public.kitware.com/mailman/listinfo/rtk-users" rel="noreferrer" target="_blank">http://public.kitware.com/<wbr>mailman/listinfo/rtk-users</a><br>
<br></blockquote></div><br></div>