No BSD License  

Highlights from
Automatic Thresholding

4.28571

4.3 | 14 ratings Rate this file 47 Downloads (last 30 days) File Size: 2.43 KB File ID: #3195

Automatic Thresholding

by zephyr

 

26 Mar 2003 (Updated 31 Mar 2003)

Provides automatic thresholding based on the ISODATA method.

| Watch this File

File Information
Description

This iterative technique for choosing a threshold was developed by Ridler and Calvard .The histogram is initially segmented into two parts using a starting threshold value such as 0 = 2B-1, half the maximum dynamic range.

The sample mean (mf,0) of the gray values associated with the foreground pixels and the sample mean (mb,0) of the gray values associated with the background pixels are computed. A new threshold value 1 is now computed as the average of these two sample means. The process is repeated, based upon the new threshold, until the threshold value does not change any more.

Reference :T.W. Ridler, S. Calvard, Picture thresholding using an iterative selection method, IEEE Trans. System, Man and Cybernetics, SMC-8 (1978) 630-632.

Acknowledgements
This submission has inspired the following:
Automatic Thresholding, Automatic Thresholding
Required Products Image Processing Toolbox
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.
Comments and Ratings (16)
01 Apr 2003 george cranberry

fast implementation, faster than graythresh but yiled comparable results. works like a charm!

25 Jun 2003 rojas julio

good

12 Jun 2004 Toni Amengual

I need information about ISODATA for studies

15 Sep 2004 Raghavan Gopalakrishnan

better than graythresh

13 Jan 2005 Senes Yin

It's what I need!

09 Feb 2005 sagar jambhorkar

 it is useful

02 Mar 2005 FABIAN ROMERO

it´s true, is better than graythresh

21 Nov 2005 fan zhang

It has a bug!
When the program run to "while abs(T(i)-T(i-1))>=1" for the first time: if T(i)-T(i-1)=0,then the Var "Threshold" can't get a value!
we should set a default value for Var "Threshold" before 56#"while...."

22 Feb 2006 Vikas Humbe

It is nice

03 Mar 2006 mahendran mariappan  
13 May 2006 Ali Tavallaei

Thank you . God bless u

22 Jun 2006 JINGFU JIN  
15 Jan 2008 lee lang chua

Hi,ur code is useful to me.but, I also need the PCA source code to extract the bright region from the blood vessel in the retinal image. can anyone send it to me if found? thank you.

27 May 2008 Usman Ahmad  
07 Mar 2010 Upasna

Hi!
The code has been useful so far,but when i use certain rgb images I get the following error:
??? Undefined function or variable "Threshold".

Error in ==> isodata at 68
level = (Threshold - 1) / (N(end) - 1);

do you know of a way i can resolve this? Many thanks.

09 Mar 2012 shan

Thanks for your code its really very good

Please login to add a comment or rating.
Tag Activity for this File
Tag Applied By Date/Time
morphology zephyr 22 Oct 2008 06:58:57
segmentation zephyr 22 Oct 2008 06:58:57
automatic thresholding zephyr 22 Oct 2008 06:58:57
global thresholding zephyr 22 Oct 2008 06:58:57
histogra zephyr 22 Oct 2008 06:58:57
calvard zephyr 22 Oct 2008 06:58:57
ridler zephyr 22 Oct 2008 06:58:57
automatic thresholding Anikta Pati 04 Jan 2012 10:37:59

Contact us at files@mathworks.com