bowang-lab / MedSAM

Segment Anything in Medical Images
https://www.nature.com/articles/s41467-024-44824-z
Apache License 2.0
3.03k stars 419 forks source link

Reading .nrrd files #326

Closed shawnkchan closed 1 week ago

shawnkchan commented 1 month ago

Hey there, wanted to ask if MEDSAM can read .nrrd files? I've tried to do so but it's not working and I'm not sure if I'm doing something wrong. Thanks!

JunMa11 commented 1 month ago

Hi @shawnkchan ,

The input of medsam is a numpy array. You can use SimpleITK to read nrrd and get the image array.