bowang-lab / MedSAMSlicer

3D Slicer Plugin for Segment anything in medical images
https://www.nature.com/articles/s41467-024-44824-z
173 stars 20 forks source link

MedSAM2 is not setting up Spatial Information #47

Open morganrcu opened 2 weeks ago

morganrcu commented 2 weeks ago

Hi, I'm testing MedSAM2 version on the segmentation of a brain tumor and I suspect there is some issue with how MedSAM2 processes origin and spacing information. I want to segment this bright structure:

schwannoma

I mark first and last slides and draw a ROI: roi

After segmenting middle slice, the result I obtain is on a different slice, shifted and is bigger than expected: output

However, it has a nice shape. My feeling is that the origin and spacing information is not being properly setup on SAM2 output. These are the properties of the MRI volume:

imagen

Here is the sample data:

https://drive.google.com/file/d/1DUV5wg5fPr8Hkj6MHNnSjsyrCD5TfWXn/view?usp=sharing

Do you think is an spatial metadata issue? Kind regards, Rodrigo