- Convolve the image i.e. the mean or median. imageCon=imfilter(imageOri) or medfilter()
- Subtract the original from the convolved image. imageDif= imageOri-imageCon;
- Threshold the difference image with C(constant). imageThr=imageDif-C;
- Invert the thresholded image. imageEnd=imcomplement(imageThr);
Matlab code:"http://www.mathworks.com/matlabcentral/fileexchange/loadFile.do?objectId=8647"
No comments:
Post a Comment