MATLAB: Dermoscopy skin lesion image

image analysisimage processingImage Processing Toolboxremove corner

i want to remove the dark regions in the four corners of the images ?

Best Answer

Use imclearborder():
binaryImage = imclearborder(~binaryImage);