lancelevine / SlicerDRRGenerator

A 3D Slicer extension that generates Digitally Reconstructed Radiographs
12 stars 5 forks source link

Some questions using DRRGenerator... #2

Open hwy1992129 opened 3 years ago

hwy1992129 commented 3 years ago

I appreciate your work. Could you add some instructions on the parameters.......? I tried to generate both front and lateral DRR. I made it finally, but I don't know the meaning of parameters..... For example, are the translation parameters the ones of the CT volume, the ray source, or the camera....? Negative values are not allowed... Do the positive values include all the common cases.....? Besides, I create a 3D model from CT and I found the model is hard to match the DRR image... Is the problem caused by the camera? Thanks.

lancelevine commented 3 years ago

Most parameters move the camera. You are right, negative values should be allowed. Sorry about that, I just updated the UI to include negative values. Can you elaborate on your last question? Try starting with the default values and changing the 'direction' parameter to get close to the angle you want, and then fine tune the other values from there.

hwy1992129 commented 3 years ago

I create the 3D scoliosis models from Slicer and import the models into Blender. The model is hard to match the image in both views, as shown in the image set below. Besides, can the extension export the x-ray images? I export the image using the scene capture from Slicer. The image resolution is not the original one from the extension. QQ图片20210202110928 QQ图片20210202110933 QQ图片20210202110937 QQ图片20210202110940

lancelevine commented 3 years ago

Try adjusting the focal point to get the output to match your blender model.

I will add functionality to allow for export of the X ray images to png or jpeg.