Binary mask drawing GUI

GUI for drawing a binary mask on top of a 2D grayscale image.
425 Downloads
Updated 13 Feb 2016

View License

% Syntax:
>> make_mask_fcn_v2(); %no inputs, plots the 'peaks' image for example purposes
>> make_mask_fcn_v2( user_supplied_2D_image ); %user inputs their own 2D grayscale image
The GUI allows for drawing a binary mask on top of a 2D grayscale image. It is intended for image processing applications where manual mask-making is needed.

There is a demo video included in the attached zip file showing the basic operation of the GUI.

The GUI features undo/redo, manual drawing with selectable brush types (circle, square, rod, etc.), thresholding, imfreehand() drawing, morphological erosion/dialation, and selectable mask overlay colors and transparency.

When the user is finished drawing, the mask can be saved to the workspace using the lower left button in the GUI.

Most of the development was done using Matlab R2015a (linux), but it has been briefly tested on earlier versions.

Cite As

Michael Serafino (2024). Binary mask drawing GUI (https://www.mathworks.com/matlabcentral/fileexchange/55372-binary-mask-drawing-gui), MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2015a
Compatible with any release
Platform Compatibility
Windows macOS Linux

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

make_mask_fcn_v2_file_exchange/

make_mask_fcn_v2_file_exchange/@GENERIC_HANDLE_v0/

Version Published Release Notes
1.0.0.0

Added license file.
Edited description.