<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/1999/REC-html401-19991224/strict.dtd">

Exported from Notepad++
clc; close all; clear all; im=imread('cameraman.tif'); figure,imshow(im); impixelinfo; r=[53 55 101 99]; c=[125 170 172 117]; bw=roipoly(im,c,r); figure,imshow(bw); im2=im.*uint8(bw); figure,imshow(im2); im3=im-im2; figure,imshow(im3); im4=im3+im2; figure,imshow(im4); imhist(im); histeq(im);