DRR grayvalue Incorrect

image

I used rtk:: CudaForwardProjectionImageFilter to generate DRR, and I shifted the volume to the left. The grayscale value on the right side of the generated DRR is closer to the part that passes through the volume, but shouldn’t its grayscale value be closer to the air?

I want to use this class to generate DRR images and complete 2D 3D image registration, but how should the transformer be set? Directly applying the transformation to volume is very slow. Is it correct for me to apply the transformation to geometry?

RTK forward projector just computes the line integrals of your volume. If you have a CT in HU, air is at -1000 and so you’ll have negative value in air. What you observe on the right of your DRR are for pixels corresponding to x-rays not crossing the volume, then the value is at 0. You might want to rescale your volume to have air at 0 before computing DRRs.

I have never used this class to do 2D 3D registration, sorry.

1 Like

thank you very much :smile: