Code covered by the BSD License  

Highlights from
Meanthresh local image thresholding

5.0 | 2 ratings Rate this file 23 Downloads (last 30 days) File Size: 4.31 KB File ID: #41787
image thumbnail

Meanthresh local image thresholding


Jan Motl


Meanthresh performs a simple local image thresholding.

| Watch this File

File Information

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;
   pixel = 0;

MATLAB release MATLAB 6.5 (R13)
Tags for This File   Please login to tag files.
Please login to add a comment or rating.
Comments and Ratings (2)
15 Jan 2015 sara


05 Aug 2013 ashkan abbasi

ashkan abbasi


Contact us