https://github.com/bowang-lab/medsamslicer

3D Slicer Plugin for Segment anything in medical images

https://github.com/bowang-lab/medsamslicer

Science Score: 26.0%

This score indicates how likely this project is to be science-related based on various indicators:

  • CITATION.cff file
  • codemeta.json file
    Found codemeta.json file
  • .zenodo.json file
    Found .zenodo.json file
  • DOI references
  • Academic publication links
  • Committers with academic emails
  • Institutional organization owner
  • JOSS paper metadata
  • Scientific vocabulary similarity
    Low similarity (12.7%) to scientific vocabulary

Keywords

3d-slicer-extension
Last synced: 11 months ago · JSON representation

Repository

3D Slicer Plugin for Segment anything in medical images

Basic Info
Statistics
  • Stars: 231
  • Watchers: 5
  • Forks: 26
  • Open Issues: 7
  • Releases: 11
Topics
3d-slicer-extension
Created over 2 years ago · Last pushed over 1 year ago
Metadata Files
Readme License

README.md

MedSAM-Lite 3D Slicer Plugin

This is the official repository for 3D Slicer Plugin for MedSAM: Segment Anything in Medical Images.

https://github.com/bowang-lab/MedSAMSlicer/assets/19947331/c7ef20f1-7e23-4e6c-8be1-e39931eeb841

Installation

You can watch a video tutorial of installation steps here.

  1. Install 3D Slicer from its official website. The compatibility of our plugin has been tested with 3D Slicer >= 5.4.0
  2. Download the specific version of the plugin from releases page and extract to your desired location.
  3. In the Slicer App, press Ctrl+4 to open Extension Manager.
  4. In Install Extension tab lookup PyTorch​ and install the extension. Our plugin currently relies on this. Restart 3D Slicer afterward.
  5. Select the Welcome to Slicer drop-down menu in the toolbar at the top and navigate to Developer Tools > Extension Wizard.
  6. Click on select Extension and locate the MedSAM folder among the extracted files and directories at step 2. Accept if asked to add the new modules.
  7. Now, from the Welcome to Slicer drop-down menu, under the Segmentation sub-menu, MedSAMLite option is added. By choosing it, you get to the final steps.
  8. Choose a folder to install module dependencies and click on Install dependencies. It can take several minutes.
  9. Restart 3D Slicer.

Upgrade

Remove all pre-existing files from step#2 and install the new version as instructed before.

Usage

You can watch a video guide for usage here.

  1. From the Welcome to Slicer drop-down menu, under the Segmentation sub-menu, MedSAMLite option is added. By choosing it, you get to the final steps.
  2. Load your image file.
  3. From Prepare Data accordion menu you can choose from preset preprocessing methods (optional, but extremely helpful)
  4. From Select the Region of Interest accordion menu, you can click on Attach ROI to select the region for segmentation. It is possible to use Set Current Frame As Selection's Start and Set Current Frame As Selection's End to set ROI boundaries on the L-R slice.
  5. In Start Segmentation accordion menu, you have two different ways to infer the segmentation:
    • If you want to segment multiple regions or a single large one, it is advised to preprocess the whole image first. To do so:
      1. click on Send Image button. It will prepare the whole 3D image for the module to process. It will take several minutes. You will need to do this step only once for each image. As long as the image is not changed (new preprocessing / cropping / etc.) you do not have to redo this step.
      2. Click on Segmentation button to get the segmentation results. You can replace your ROI or delete and re-attach it (step 4) as many times as you need and repeat step 5.b without going over step 5.a again.
    • If you need to segment a single smaller region, you can bypass preprocessing and only click on Single Segmentation. After confirming, the segmentation would be inferred.
  6. In the same section, from the Segmentation and Source volume drop-down menus you can choose the right segmentation group and manually refine the segmentation results. You can also assign different color to each segmentation mask.

Owner

  • Name: WangLab @ U of T
  • Login: bowang-lab
  • Kind: organization
  • Location: 190 Elizabeth St, Toronto, ON M5G 2C4 Canada

BoWang's Lab at University of Toronto

GitHub Events

Total
  • Issues event: 21
  • Watch event: 86
  • Issue comment event: 33
  • Push event: 13
  • Pull request event: 2
  • Fork event: 7
  • Create event: 1
Last Year
  • Issues event: 21
  • Watch event: 86
  • Issue comment event: 33
  • Push event: 13
  • Pull request event: 2
  • Fork event: 7
  • Create event: 1

Committers

Last synced: about 1 year ago

All Time
  • Total Commits: 43
  • Total Committers: 2
  • Avg Commits per committer: 21.5
  • Development Distribution Score (DDS): 0.047
Past Year
  • Commits: 17
  • Committers: 1
  • Avg Commits per committer: 17.0
  • Development Distribution Score (DDS): 0.0
Top Committers
Name Email Commits
Reza Asakereh r****e@u****a 41
Jun 1****4@q****m 2
Committer Domains (Top 20 + Academic)
qq.com: 1 uwo.ca: 1

Issues and Pull Requests

Last synced: 11 months ago

All Time
  • Total issues: 53
  • Total pull requests: 6
  • Average time to close issues: about 1 month
  • Average time to close pull requests: less than a minute
  • Total issue authors: 46
  • Total pull request authors: 3
  • Average comments per issue: 3.26
  • Average comments per pull request: 0.0
  • Merged pull requests: 3
  • Bot issues: 0
  • Bot pull requests: 0
Past Year
  • Issues: 19
  • Pull requests: 5
  • Average time to close issues: 30 days
  • Average time to close pull requests: less than a minute
  • Issue authors: 18
  • Pull request authors: 3
  • Average comments per issue: 1.32
  • Average comments per pull request: 0.0
  • Merged pull requests: 2
  • Bot issues: 0
  • Bot pull requests: 0
Top Authors
Issue Authors
  • dzenanz (4)
  • 111678900 (3)
  • lucky-asia (2)
  • Tiam66 (2)
  • stefhec (1)
  • calm0602 (1)
  • aclouthier (1)
  • liyihao76 (1)
  • warmmilk-sudo (1)
  • mehrnia (1)
  • Alilalily (1)
  • DevPixel1988 (1)
  • Guojfeng (1)
  • morganrcu (1)
  • sagan114 (1)
Pull Request Authors
  • rasakereh (6)
  • whitewatercn (2)
  • lassoan (2)
Top Labels
Issue Labels
bug (6) enhancement (2) question (1)
Pull Request Labels

Dependencies

MedSAM/MedSAMLite/Resources/server_essentials/setup.py pypi
  • monai *