bowang-lab / MedSAM

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

Preprocess Grey and RGB images for the new version #132

Closed matcovic closed 1 year ago

matcovic commented 1 year ago

Hi, the new version only includes preprocessing for CT/MR. What preprocessing steps did you use in the new version for Gray/RGB images (such as Fundus)? Is it the same as the v0.1's pre_grey_rgb2D.py, but only discarding the pre-computed image embeddings? Apologies if my questions are not clear.

JunMa11 commented 1 year ago

Hi @matcovic ,

There is no pre-processing for RGB images.

For grey images, we just converted them to three-channel images.