<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  </head>
  <body>
    <p>Hi Chang,</p>
    <p>I was faced with the same problem not long ago. Here is the
      solution that worked for me:</p>
    <p> If we call this extra angle "c", the following modifications
      have to be made in rtksimulatedgeometry: </p>
    <p>- first angle = c</p>
    <p>- sdd = sdd_0 * cos(c)</p>
    <p>- sid = sid_0 * cos(c)</p>
    <p>- source_x = source_x0 - sid*sin(c)</p>
    <p>- proj_iso_x = proj_iso_x0 + (sdd-sid)*sin(c)</p>
    <p>Hope it helps !</p>
    <p>Best regards,</p>
    <p>Vincent<br>
    </p>
    <div class="moz-cite-prefix">On 27.11.22 22:44, <a class="moz-txt-link-abbreviated" href="mailto:gameboy514@gmail.com">gameboy514@gmail.com</a>
      wrote:<br>
    </div>
    <blockquote type="cite"
      cite="mid:7b1a01d902a9$72995400$57cbfc00$@gmail.com">
      <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
      <meta name="Generator" content="Microsoft Word 15 (filtered
        medium)">
      <!--[if !mso]><style>v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style><![endif]-->
      <style>@font-face
        {font-family:굴림;
        panose-1:2 11 6 0 0 1 1 1 1 1;}@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}@font-face
        {font-family:"맑은 고딕";
        panose-1:2 11 5 3 2 0 0 2 0 4;}@font-face
        {font-family:"\@맑은 고딕";}@font-face
        {font-family:"\@굴림";
        panose-1:2 11 6 0 0 1 1 1 1 1;}p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        font-size:12.0pt;
        font-family:굴림;}a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}span.EmailStyle18
        {mso-style-type:personal-reply;
        font-family:"맑은 고딕";
        color:windowtext;}.MsoChpDefault
        {mso-style-type:export-only;
        font-family:"맑은 고딕";}div.WordSection1
        {page:WordSection1;}</style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
      <div class="WordSection1">
        <p class="MsoNormal" style="word-break:break-hangul"><span
            style="font-size:10.0pt;font-family:"맑은 고딕""
            lang="EN-US">Dear,<o:p></o:p></span></p>
        <p class="MsoNormal" style="word-break:break-hangul"><span
            style="font-size:10.0pt;font-family:"맑은 고딕""
            lang="EN-US"><o:p> </o:p></span></p>
        <p class="MsoNormal" style="word-break:break-hangul"><span
            style="font-size:10.0pt;font-family:"맑은 고딕""
            lang="EN-US">Thank you for your reply, but I still have a
            question.<o:p></o:p></span></p>
        <p class="MsoNormal" style="word-break:break-hangul"><span
            style="font-size:10.0pt;font-family:"맑은 고딕""
            lang="EN-US">I am trying to use Rtksimulatedgeometry which
            employs Addprojection. It supports in_angle and out_angle,
            which is clear.<o:p></o:p></span></p>
        <p class="MsoNormal" style="word-break:break-hangul"><span
            style="font-size:10.0pt;font-family:"맑은 고딕""
            lang="EN-US">There is also a parameter for gantry angle, but
            it does not seem that simulation of slant can be done by
            simply changing the gantry angle.<o:p></o:p></span></p>
        <p class="MsoNormal" style="word-break:break-hangul"><span
            style="font-size:10.0pt;font-family:"맑은 고딕""
            lang="EN-US"><o:p> </o:p></span></p>
        <p class="MsoNormal" style="word-break:break-hangul"><span
            style="font-size:10.0pt;font-family:"맑은 고딕""
            lang="EN-US">Left side of the figure is the schematic of
            simulation that I want which only slants the detector.<o:p></o:p></span></p>
        <p class="MsoNormal" style="word-break:break-hangul"><span
            style="font-size:10.0pt;font-family:"맑은 고딕""
            lang="EN-US">But if I perform the simulation as you suggest,
            the result that I will get would be like the right side of
            the figure.<o:p></o:p></span></p>
        <p class="MsoNormal" style="word-break:break-hangul"><span
            style="font-size:10.0pt;font-family:"맑은 고딕""
            lang="EN-US">To my understanding, the results of these two
            are not the same. (Slant degree itself is same, but in the
            perspective of distance reaching to side of the detector, it
            would be different.)<o:p></o:p></span></p>
        <p class="MsoNormal" style="word-break:break-hangul"><span
            style="font-size:10.0pt;font-family:"맑은 고딕""
            lang="EN-US"><o:p> </o:p></span></p>
        <p class="MsoNormal" style="word-break:break-hangul"><span
            style="font-size:10.0pt;font-family:"맑은 고딕""
            lang="EN-US">It would be appreciated to help me to simulate
            only the slant of the detector.<o:p></o:p></span></p>
        <p class="MsoNormal" style="word-break:break-hangul"><span
            style="font-size:10.0pt;font-family:"맑은 고딕""
            lang="EN-US"><o:p> </o:p></span></p>
        <p class="MsoNormal" style="word-break:break-hangul"><span
            style="font-size:10.0pt;font-family:"맑은 고딕""
            lang="EN-US">Regards,<o:p></o:p></span></p>
        <p class="MsoNormal" style="word-break:break-hangul"><span
            style="font-size:10.0pt;font-family:"맑은 고딕""
            lang="EN-US">Chang.<o:p></o:p></span></p>
        <p class="MsoNormal" style="word-break:break-hangul"><span
            style="font-size:10.0pt;font-family:"맑은 고딕""
            lang="EN-US"><o:p> </o:p></span></p>
        <div style="border:none;border-top:solid #E1E1E1
          1.0pt;padding:3.0pt 0cm 0cm 0cm">
          <p class="MsoNormal"><b><span
                style="font-size:11.0pt;font-family:"Calibri",sans-serif"
                lang="EN-US">From:</span></b><span
              style="font-size:11.0pt;font-family:"Calibri",sans-serif"
              lang="EN-US"> Simon Rit
              <a class="moz-txt-link-rfc2396E" href="mailto:simon.rit@creatis.insa-lyon.fr"><simon.rit@creatis.insa-lyon.fr></a> <br>
              <b>Sent:</b> Friday, November 25, 2022 7:49 PM<br>
              <b>To:</b> </span><span style="font-size:11.0pt">김창환</span><span
style="font-size:11.0pt;font-family:"Calibri",sans-serif"
              lang="EN-US"> <a class="moz-txt-link-rfc2396E" href="mailto:gameboy514@gmail.com"><gameboy514@gmail.com></a><br>
              <b>Cc:</b> <a class="moz-txt-link-abbreviated" href="mailto:rtk-users@public.kitware.com">rtk-users@public.kitware.com</a><br>
              <b>Subject:</b> Re: [Rtk-users] Simulating geometric error
              on detector<o:p></o:p></span></p>
        </div>
        <p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
        <div>
          <div>
            <p class="MsoNormal"><span lang="EN-US">Hi,<o:p></o:p></span></p>
          </div>
          <div>
            <p class="MsoNormal"><span lang="EN-US">There are three
                rotations to chose the orientation of the detector:
                GantryAngle, InPlaneAngle and OutOfPlane. Any
                orientation can be set. If you want a slant around the
                detector center, then a change in the GantryAngle will
                imply a change in SourceToIsocenter, SourceToDetector
                (both measured in the direction orthogonal to the
                detector) and SourceOffsetX / ProjectionOffsetX. The
                geometry documentation should help:<o:p></o:p></span></p>
          </div>
          <div>
            <p class="MsoNormal"><span lang="EN-US"><a
                  href="http://www.openrtk.org/Doxygen/DocGeo3D.html"
                  target="_blank" moz-do-not-send="true"
                  class="moz-txt-link-freetext">http://www.openrtk.org/Doxygen/DocGeo3D.html</a><o:p></o:p></span></p>
          </div>
          <div>
            <p class="MsoNormal"><span lang="EN-US">If you mind find it
                to set one detector position by setting the source
                position, detector origin position and the u and v axes.
                See all the different versions of AddProjection in the <a
href="http://www.openrtk.org/Doxygen/classrtk_1_1ThreeDCircularProjectionGeometry.html"
                  moz-do-not-send="true">doxygen</a>.<o:p></o:p></span></p>
          </div>
          <div>
            <p class="MsoNormal"><span lang="EN-US">Best regards,<o:p></o:p></span></p>
          </div>
          <div>
            <p class="MsoNormal"><span lang="EN-US">Simon<o:p></o:p></span></p>
          </div>
        </div>
        <p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
        <div>
          <div>
            <p class="MsoNormal"><span lang="EN-US">On Fri, Nov 25, 2022
                at 10:21 AM </span>김창환<span lang="EN-US"> <<a
                  href="mailto:gameboy514@gmail.com" target="_blank"
                  moz-do-not-send="true" class="moz-txt-link-freetext">gameboy514@gmail.com</a>>
                wrote:<o:p></o:p></span></p>
          </div>
          <blockquote style="border:none;border-left:solid #CCCCCC
            1.0pt;padding:0cm 0cm 0cm
            6.0pt;margin-left:4.8pt;margin-right:0cm">
            <div>
              <p class="MsoNormal"><span lang="EN-US">Dear all,<o:p></o:p></span></p>
              <div>
                <p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
              </div>
              <div>
                <p class="MsoNormal"><span lang="EN-US">I am now
                    generating the simulation data with geometric
                    distortions on the detector, by using RTK.<o:p></o:p></span></p>
              </div>
              <div>
                <p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
              </div>
              <div>
                <p class="MsoNormal"><span lang="EN-US">Translation can
                    be easily implemented by adjusting the parameters
                    (proj_iso_x and proj_iso_y).<o:p></o:p></span></p>
              </div>
              <div>
                <p class="MsoNormal"><span lang="EN-US">However, for the
                    rotation, it seems that there are only two
                    parameters I can manage. (in_angle and out_angle).<o:p></o:p></span></p>
              </div>
              <div>
                <p class="MsoNormal"><span lang="EN-US">Thus, at this
                    moment, tilt and skew are available to implement,
                    but for the slant, it seems that there is no such
                    way.<o:p></o:p></span></p>
              </div>
              <div>
                <p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
              </div>
              <div>
                <p class="MsoNormal"><span lang="EN-US">Please let me
                    know if there is any way to implement rotation about
                    one other axis.<o:p></o:p></span></p>
              </div>
              <div>
                <p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
              </div>
              <div>
                <p class="MsoNormal"><span lang="EN-US">(Image from </span><span
style="font-size:10.0pt;font-family:"Arial",sans-serif"
                    lang="EN-US">Wang, Zhao, et al. "Improvements in
                    micro-CT method for characterizing x-ray
                    monocapillary optics." <i>Optics Communications</i> 504
                    (2022): 127474.)</span><span lang="EN-US"><o:p></o:p></span></p>
              </div>
              <div>
                <p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
              </div>
              <div>
                <p class="MsoNormal"><span lang="EN-US"><img
                      style="width:3.9895in;height:2.0104in"
                      id="그림_x0020_1"
                      src="cid:part1.OdN0GHFQ.kfSiYGXz@xris.eu" class=""
                      width="383" height="193" border="0"></span><span
                    lang="EN-US"><o:p></o:p></span></p>
              </div>
            </div>
            <p class="MsoNormal"><span lang="EN-US">_______________________________________________<br>
                Rtk-users mailing list<br>
                <a href="mailto:Rtk-users@public.kitware.com"
                  target="_blank" moz-do-not-send="true"
                  class="moz-txt-link-freetext">Rtk-users@public.kitware.com</a><br>
                <a
                  href="https://public.kitware.com/cgi-bin/mailman/listinfo/rtk-users"
                  target="_blank" moz-do-not-send="true"
                  class="moz-txt-link-freetext">https://public.kitware.com/cgi-bin/mailman/listinfo/rtk-users</a><o:p></o:p></span></p>
          </blockquote>
        </div>
      </div>
      <br>
      <fieldset class="moz-mime-attachment-header"></fieldset>
      <pre class="moz-quote-pre" wrap="">_______________________________________________
Rtk-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Rtk-users@public.kitware.com">Rtk-users@public.kitware.com</a>
<a class="moz-txt-link-freetext" href="https://public.kitware.com/cgi-bin/mailman/listinfo/rtk-users">https://public.kitware.com/cgi-bin/mailman/listinfo/rtk-users</a>
</pre>
    </blockquote>
  </body>
</html>