jacg / petalo

PET scanner image reconstruction
1 stars 4 forks source link

Incorrect voxel width in vislor #2

Closed jacg closed 3 years ago

jacg commented 3 years ago

Run this example

cargo run --bin vislor -- --vbox-size 100,100,100 --nvoxels 10,20,3 --lor '0 0   -100 -100 -100    100 100 100'

and rotate the view so that the blue axis lies across your field of vision. You will observe that the LOR (yellow) passes through gaps between the active voxels (boxes in various shades of red). This is wrong: (within the voxel box: the grey cube) the LOR activates any region of space that it passes through, so it should be completely encased by red boxes.

To get some insight into what is going wrong, play around with changing the values of the --nvoxels option: I think that there's a pretty obvious conclusion, and suspect that the fix could be very easy