<div dir="ltr"><div>Be careful with your type conversions:<br></div>Unary minus on an unsigned integer:<br><div>
<pre style="margin:0px;text-indent:0px"><span style="color:rgb(192,192,192)"></span><span style="color:rgb(128,128,0)">const</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(128,128,0)">float</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(9,46,100)">angle</span><span style="color:rgb(192,192,192)"> </span>=<span style="color:rgb(192,192,192)"> </span>-<span style="color:rgb(9,46,100)">i</span>;</pre>
Integer division:<br>
<pre style="margin:0px;text-indent:0px"><span style="color:rgb(192,192,192)"></span>-<span style="color:rgb(9,46,100)">detPitchU</span><span style="color:rgb(192,192,192)"> </span>*<span style="color:rgb(192,192,192)"> </span><span style="color:rgb(9,46,100)">detSizeU</span><span style="color:rgb(192,192,192)"> </span>/<span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,0,128)">2</span></pre>
Are you sure the results of these calculations are correct?<br></div><div><div><div><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><p style="margin-bottom:0.0001pt"><span style="color:rgb(31,73,125)" lang="EN-US"><span style="font-size:11pt;line-height:16.8667px;font-family:Calibri,sans-serif" lang="EN-US">__________________________________</span></span></p><p style="margin-bottom:0.0001pt"><span style="color:rgb(31,73,125)" lang="EN-US"><span style="font-size:11pt;line-height:16.8667px;font-family:Calibri,sans-serif" lang="EN-US">Andreas Gravgaard Andersen</span></span></p><p style="margin:0cm 0cm 0.0001pt;font-size:12pt;font-family:"Times New Roman",serif;color:black"><span style="font-size:11pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)" lang="DA">8000, Aarhus C<br></span></p><div><p style="margin:0cm 0cm 0.0001pt;font-size:12pt;font-family:"Times New Roman",serif;color:black"><span style="font-size:11pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)" lang="DA">Mail: <a href="mailto:andreasga22@gmail.com" target="_blank">andreasga22@gmail.com</a></span></p><p style="margin:0cm 0cm 0.0001pt;font-size:12pt;font-family:"Times New Roman",serif;color:black"><span style="color:rgb(31,73,125);font-family:Calibri,sans-serif;font-size:11pt">Cell: </span><span style="color:rgb(31,73,125);font-family:Calibri,sans-serif;font-size:11pt"> </span><a value="+4523382411" style="font-family:Calibri,sans-serif;font-size:11pt;color:rgb(17,85,204)">+45 3165 8140</a></p><p style="margin:0cm 0cm 0.0001pt;font-size:12pt;font-family:"Times New Roman",serif;color:black"><a value="+4523382411" style="font-family:Calibri,sans-serif;font-size:11pt;color:rgb(17,85,204)">https://calendly.com/agravgaard<br></a></p></div></div></div></div></div></div></div></div></div></div><br></div></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, 16 May 2022 at 17:04, Fernando Hueso González <<a href="mailto:fernando.hueso@uv.es">fernando.hueso@uv.es</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Hi Simon, thanks for the swift reply.<br>
<br>
> No, there is no way to transpose your projections. It should be fairly <br>
> easy to add (in the ProjectionsReader) or to do it before hand with <br>
> itk. Any contribution to RTK is welcomed.<br>
Sounds good, I will take a look and see if I can provide a PR.<br>
> Now, I'm not sure I follow the long explanation. Is the reconstruction <br>
> transposed or the projections? If it's the former, so what you really <br>
> want is to transpose the reconstructed volume. You can do this by <br>
> setting a rotation matrix to the reconstructed volume with the <br>
> --direction option of rtkfdk.<br>
<br>
Well, the reconstructed volume looks transposed, but it also looks <br>
completely messed up (everything appears double, etc.), so rotating the <br>
output wouldn't solve it. Because the reconstruction in MATLAB works <br>
well, and I know the geometry parameters accurately, I concluded that <br>
the problem is with the projections themself (also inspired by the fact <br>
that in MATLAB, I need to use the second coordinate, not the first one). <br>
It is not completely clear to me a priori what orientation files-columns <br>
should have based on <a href="http://www.openrtk.org/Doxygen/DocGeo3D.html" rel="noreferrer" target="_blank">http://www.openrtk.org/Doxygen/DocGeo3D.html</a>, so I <br>
made this hypothesis based on the final reconstructed results.<br>
<br>
<br>
Thanks and best regards,<br>
Fernando.<br>
<br>
_______________________________________________<br>
Rtk-users mailing list<br>
<a href="mailto:Rtk-users@public.kitware.com" target="_blank">Rtk-users@public.kitware.com</a><br>
<a href="https://public.kitware.com/cgi-bin/mailman/listinfo/rtk-users" rel="noreferrer" target="_blank">https://public.kitware.com/cgi-bin/mailman/listinfo/rtk-users</a><br>
</blockquote></div>