MATLAB: Find a White area in image (face)

image processingImage Processing Toolboximage segmentation

Hi, I need to draw a rectangle on my face using white pixels.

Best Answer

To draw a rectangle, you can use rectangle(), plot(), line(), rbbox(), or imrect() depending on what you mean by "draw a rectangle".
You might also be interested in bwareafilt() to extract blobs of certain areas (like only the largest blob), and imfill() to fill in black islands in the white blobs.