No BSD License  

Highlights from
Local Adaptive Thresholding

image thumbnail

Local Adaptive Thresholding

by

 

05 Oct 2005 (Updated )

Threshold with local statistics, such as mean or median.

testadaptivethreshold.m
clear;close all;
im1=imread('page.png');
im2=imread('tshape.png');
bwim1=adaptivethreshold(im1,11,0.03,0);
bwim2=adaptivethreshold(im2,15,0.02,0);
subplot(2,2,1);
imshow(im1);
subplot(2,2,2);
imshow(bwim1);
subplot(2,2,3);
imshow(im2);
subplot(2,2,4);
imshow(bwim2);

Contact us