You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There is an error in the reference implementation of the backprojection
algorithm in the source files "LolaBunny.cpp" and "LolaOpenMp.cpp". This error
also affects the reference volumes provided in the data set files
"rabbitct_512.rctd" and "rabbitct_1024.rctd".
In the function "inline double p_hat_n(double x, double y)",
which performs a bilinear interpolation at position (x, y),
input values in the interval ]-1, 0[ are treated incorrectly:
inline double p_hat_n(double x, double y)
{
int i = (int)x;
int j = (int)y;
double alpha = x - (int)x;
double beta = y - (int)y;
...
}
The integer cast truncates the floating point numbers towards zero,
while the desired functionality is to truncate towards minus infinity.
current: y = -0.5 => j = 0, beta = -0.5, (1 - beta) = 1.5
desired: y = -0.5 => j = -1, beta = 0.5, (1 - beta) = 0.5
In this example, the input coordinates used for interpolation
are 0 and 1, and the weights are -0.5 and 1.5, respectively.
Therefore, the fact that the border of the input images
is set to zero does not prevent the error.
In the geometric configuration of the RabbitCT data set,
the affected voxels lie at large values of the z coordinate.
A correct, but slower version, of the function p_hat_n
could use the function floor() as follows:
inline double p_hat_n(double x, double y)
{
int i = static_cast<int>(floor(x));
int j = static_cast<int>(floor(y));
double alpha = x - i;
double beta = y - j;
...
}
What version of the product are you using? On what operating system?
Version: RabbitCT-1.0.3-src.zip
The reported error is independent of the operating system.
Best regards,
Timo
Original issue reported on code.google.com by zinsser...@gmail.com on 22 Sep 2012 at 7:51
The text was updated successfully, but these errors were encountered:
Hey Timo,
thanks for the bug report. We fixed it in our implementation and are creating
new reference datasets which will be uploaded to the website later this week.
Best,
Benni & Hannes
Original comment by hannes.h...@informatik.uni-erlangen.de on 16 Oct 2012 at 6:54
Original issue reported on code.google.com by
zinsser...@gmail.com
on 22 Sep 2012 at 7:51The text was updated successfully, but these errors were encountered: