I am creating a patch on the top of an image displayed in an axes. I would like to be able to generate a matrix the size of the image, with ones inside and zeros outside the patch area.
MATLAB: How to generate a binary mask for a patch object super imposed on a surface in MATLAB 7.4 (R2007a)
Image Processing Toolbox
Best Answer