BAAI-DCAI / SegVol

The official code for "SegVol: Universal and Interactive Volumetric Medical Image Segmentation".
MIT License
236 stars 21 forks source link

About the coordinate system (“RAS”) #9

Closed jianjun0407 closed 10 months ago

jianjun0407 commented 10 months ago

If the ct_voxel_ndarray is np.ndarray type and is assigned to item['image'], execute the command: Orientationd(keys=["image", "label"], axcodes="RAS"), can't pass in the original coordinate system information of the test image. Is there any problem here?

1 2

Yuxin-Du-Lab commented 10 months ago

I think it would be meaningless to apply RAS orientation on numpy image. If you want to keep the RAS orientation transform, I think you can compose the monai.transforms.LoadImage with the following transform operations.

jianjun0407 commented 10 months ago

Thank you for your quick reply. Referring to the demonstration video you give, intuitively from the image, the final image of the incoming algorithm, cross-sectional view, is the bed board on the top; In the coronal view, the lungs are below and the abdomen is above. In other words, the image that the network is going to input is going to look like this. Am I right? 3

Yuxin-Du-Lab commented 10 months ago

hhh, I have to admit it looks strange. Actually you can input images with any orientation. We performed flip augmentation in training phase.😊

jianjun0407 commented 10 months ago

That would be great!