It is a sample code to draw and erase mask on an image by GUI. It gives you hints to develop the GUI image processing applications.
[LOAD]: Load an image from file.
[SAVE]: Save image&mask and mask images in the same folder as the image file.
Press left mouse button: Draw mask
Press right mouse button: Erase mouse