This MATLAB script can be used for annotating 3D medical images. The accompanying config file can be edited to vary the number of regions of interests being annotated as well as their colors.
- MATLAB 2019 or later versions
- Data is available as a .mat file with the 3D imaging data within variable 'img'
- Run generic_segmentation_gui.m in a MATLAB window
- Select an input mat file containing 3D imaging data.
- The image will load in the center panel. The slider on the top can be used to view different slices in a volume.
- The ROI annotation panel on the left can be used to toggle between different labels.
- Draw button: Draw the mask for the region of interest on the current image.
- Edit button: Draw exlusion mask to edit the roi on the current image.
- Delete button: Delete the roi on the current image.
- Save button: Save all rois.
- The viewer option panels on the right can be used to zoom, adjust window level, and control opacity of the underlying labels.
MIT