MATLAB: Color contour

contoursignature verification

Best Answer

Looks like about 3 or 4 imdilate() operations. Original image, dilate to get image2, construct mask2 from the list of pixels set in image2 that were not set originally. Dilate image2 to get image3, construct mask3 from the list of pixels set in image3 that were not set in image 2. Repeat as needed.
At the end, create color matrix with the original pixels in one color, the pixels in mask2 in a different color, the pixels in mask3 in a third color, and so on.