- Manual Lesion Selection: Each time you use drawfreehand, you manually outline a lesion in the image.
- Binary Mask Creation: The binary mask for the lesion is created with createMask.
- Saving Individual Lesions: Each lesion is saved as a separate binary image.
- Combining Masks: The current lesion mask is added to a final combined mask using a logical OR (|), allowing for multiple lesion regions to be merged.
- Stopping Condition: After drawing a lesion, you are prompted whether to continue or stop. If you enter 'n', the loop breaks, and the process stops.
- drawfreehand: https://www.mathworks.com/help/images/ref/drawfreehand.html
- createMask: https://www.mathworks.com/help/images/ref/imroi.createmask.html