Coder Social home page Coder Social logo

medlabelme's Introduction

Medical Labelme

Segmentation annotation tool for 3D medical images

中文使用说明

Introduction

Medical Labelme is a annotation tool for 3D medical image. It is a 3D version of Labelme, but introducing target editing function to voxel segmentation label map.

Current version of this tool supports:

  • CT/CTA image reading (only nii.gz format)
  • Existing segmentation map reading (also nii.gz format)
  • Common CT image control functions (zoom in/out, window level and width...)
  • Voxel-wise segmentation map annotation brush
  • Target list display, navigation and remove function

UI

Run

The project is written in python using SimpleITK and PyQt5. It has not been uploaded to pypi. You can use this tool by running:

git clone https://github.com/MeteorsHub/MedicalLabelMe.git
cd src
python app.py

If you need to build executable programs on Windows or Mac, you can use pyinstaller.

Usage

Medical Image Reading and Writing

File-Open: open a nii.gz format CT image or corresponding segmentation map when there has been an image loaded. File-Save: save the current segmentation map. FIle-Close: close current image.

Image Information Display

The upper part of the left sidebar will show the image information. From top to bottom: file path to the image, file path to the segmentation map, image size, voxel value under cursor.

image information

Image Display Window

The center part of the software shows the image in three perspective: Axial (top left), Sagittal (top right) and Coronal (bottom left). There is no graphics rendering at the bottom right currently.

3D Annotation

The right sidebar includes functions about annotation.

An annotation target list is shown at the top. When reading a new image or hit the Refresh button to the top, the target list will be refreshed. Click an item in the list, and the cursor will navigate to the center of this target. Click the Delete Selected Target button, and the selected target will be removed from the segmentation map (set to background).

The labeling tools is shown at the bottom. Cursor tab: voxel selection mode. Brush tab: annotation mode. You can use rect brush or circle brush, both of which support size adjustment. You can also preview the brush in the image display window.

Control

The software use the same controlling way used in ITK-Snap. The mouse control on image display window:

Voxel selection mode:

  • Left button: cursor navigation
  • Middle button: drag the image
  • Right button: zoom in/out when moving up/down

Annotation mode:

  • Left button: draw labels
  • Middle button: drag the image
  • Right button: delete labels (eraser)

Notion: After changing the annotation map, you must click the Refresh button to refresh the target list.

medlabelme's People

Contributors

meteorshub avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.