Code covered by the BSD License  

Highlights from
Meanthresh local image thresholding

5.0

5.0 | 1 rating Rate this file 37 Downloads (last 30 days) File Size: 4.31 KB File ID: #41787
image thumbnail

Meanthresh local image thresholding

by

 

Meanthresh performs a simple local image thresholding.

| Watch this File

File Information
Description

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

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 (1)
05 Aug 2013 ashkan abbasi  

Contact us