Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MedSAM2 is not setting up Spatial Information #47

Closed
morganrcu opened this issue Nov 7, 2024 · 1 comment
Closed

MedSAM2 is not setting up Spatial Information #47

morganrcu opened this issue Nov 7, 2024 · 1 comment

Comments

@morganrcu
Copy link

morganrcu commented Nov 7, 2024

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

@morganrcu morganrcu changed the title MedSAM2 MedSAM2 is not setting up Spatial Information Nov 7, 2024
@rasakereh
Copy link
Collaborator

Thank you for bringing this to my attention. It was an issue with index offsetting which is fixed now!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants