No BSD License  

Highlights from
Automatic Thresholding

Be the first to rate this file! 18 Downloads (last 30 days) File Size: 2.13 KB File ID: #10462

Automatic Thresholding

by Kanchi

 

21 Mar 2006 (Updated 21 Mar 2006)

Compute an optimal threshold for seperating the data into two classes.

| Watch this File

File Information
Description

Compute an optimal threshold for seperating the data into two classes [1].

This algorithm can be summarized as follows. The histogram is initially segmented into two
parts using a a randonly-select starting threshold value (denoted as T(1)). Then, the data are classified into two classes (denoted as c1 and c2). Then, a new threshold value is computed as the average of the above two sample means. This process is repeated untill the threshold value
does not change any more.

The algorithm was implemented by Dhanesh Ramachandram [2]. However, the input data of her/his algorithm should lie in the range [0,255]. My code doesn't have this requirement.

Example
-------
     t = func_threshold(T);

Reference: [1]. T. W. Ridler, S. Calvard, Picture thresholding using an iterative selection method,
           IEEE Trans. System, Man and Cybernetics, SMC-8, pp. 630-632, 1978.
           [2]. Dhanesh Ramachandram, Automatic Thresholding. Available online at: http://www.mathworks.com/matlabcentral/fileexchange/loadFile.do?objectId=3195&objectType=file

Jing Tian
Contact me : scuteejtian@hotmail.com
This program is written in Mar. 2006 during my postgraduate studying in Singapore.

Acknowledgements

The author wishes to acknowledge the following in the creation of this submission:
Automatic Thresholding

MATLAB release MATLAB 6.5 (R13)
Tags for This File  
Everyone's Tags
Tags I've Applied
Add New Tags Please login to tag files.
Please login to add a comment or rating.
Tag Activity for this File
Tag Applied By Date/Time
image analysis Kanchi 22 Oct 2008 08:19:27
optimal threshold Kanchi 22 Oct 2008 08:19:27
classes Kanchi 22 Oct 2008 08:19:27
data Kanchi 22 Oct 2008 08:19:27
image pr Kanchi 22 Oct 2008 08:19:27
algorithm Kanchi 22 Oct 2008 08:19:27
algorithm Sandhya 19 Apr 2011 15:24:10
classes Sandhya 19 Apr 2011 15:24:29
data Sandhya 19 Apr 2011 15:24:32

Contact us at files@mathworks.com