View License

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

» Watch video

Highlights from
Meanthresh local image thresholding

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

Meanthresh local image thresholding


Jan Motl (view profile)


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

sara (view profile)

05 Aug 2013 ashkan abbasi

Contact us