Closed linquanxu closed 1 week ago
Hi @linquanxu, a few things I would try:
Hope that helps, let me know if you have further questions!
Hi, @eigenvivek, Thank you for your quick response.
The real X-ray image has a PixelSpacing of 0.139 and a DistanceSourceToDetector of 2000.
In the CT DICOM, the PixelSpacing is 0.373, the DistanceSourceToDetector is 1085.6, the DistanceSourceToPatient is 595, and the SliceThickness is 1.0.
How should I set the parameters to make the generated DRR image as close as possible to the real X-ray image? Should I fully follow the parameters of the real X-ray equipment in this case?
Yes, follow the parameters of the real X-ray for your DRR.
diffdrr.data.read
should exactly extract the parameters from the CT DICOM.
Real X-rays are very large, and rendering a DRR that big will likely use more memory than you have on your GPU. To overcome this, you can downsample the detector (diffdrr.DRR.rescale_detector_
) or use the patch_size argument
.
Thank you for your help, I'll try again.
Dear author, I used this code to generate DRR images, but I found that the generated DRR image is very different from the real X-ray image. The generated DRR image is very blurry, while the real X-ray image is much clearer. Could you please help me understand what might be causing this issue? Below are the generated images and the code.
Additionally, in the DRR image, the area I marked in red appears abnormal. What could be causing this issue?
Lastly, I have attached the real X-ray image below: