File Exchange

image thumbnail

Meanthresh local image thresholding

version 1.0 (4.31 KB) by

Meanthresh performs a simple local image thresholding.

4 Downloads

Updated

View License

The algorithm calculates the mean value in a window and if the pixel's intensity is above the mean the pixel is set to white colour, otherwise the pixel is set to black colour. To increase the resistance to noise the threshold value can be shifted by a constant c. The pseudocode:

 if (pixel >= mean-c)
   pixel = 1;
 else
   pixel = 0;
 end

Comments and Ratings (2)

sara

sara (view profile)

ashkan abbasi

MATLAB Release
MATLAB 6.5 (R13)

Download apps, toolboxes, and other File Exchange content using Add-On Explorer in MATLAB.

» Watch video