<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body>
Hi Andreas, thank you for the reply and suggestions.<br>
<blockquote type="cite"
cite="mid:CAE0aawHkSPVO7N-i3tFiEcZJb0xjWpEzrQ3eg_zRiJBK6vV60g@mail.gmail.com">
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<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>
</div>
</div>
</blockquote>
Yes, I 'simplified' the code a bit, in reality I am doing angle =
angles[i] which is the exact value of the angle as float, the
array<float> 'angles' being something like -1.01, -2.03, ...
so I simplified a bit just for the posting, but it is correct when I
run the full code.<br>
<blockquote type="cite"
cite="mid:CAE0aawHkSPVO7N-i3tFiEcZJb0xjWpEzrQ3eg_zRiJBK6vV60g@mail.gmail.com">
<div dir="ltr">
<div>
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?</div>
</div>
</blockquote>
<p>detSizeU is even, so dividing by two should be no problem. And
then detPitchU is float.</p>
<p><br>
</p>
<p>So I still think that the issue will be rather that the RawImage
is stored in a format transposed wrt what RTK::ProjectionsReader
expects.</p>
<p><br>
</p>
<p>Best regards,</p>
<p>Fernando.<br>
</p>
</body>
</html>