how otsu multithresh works?

10 次查看(过去 30 天)
mo ma
mo ma 2013-8-20
hello can anyone explain me how otsu multithresh works?

回答(2 个)

Amith Kamath
Amith Kamath 2013-8-22
From http://en.wikipedia.org/wiki/Otsu%27s_method, the algorithm assumes that the image to be thresholded contains two classes of pixels or bi-modal histogram (e.g. foreground and background) then calculates the optimum threshold separating those two classes so that their combined spread (intra-class variance) is minimal.
MULTITHRESH can accept another argument that decides how many such classes of pixels are needed, so that you can segment the image over multiple levels.
http://www.mathworks.com/help/images/ref/multithresh.html#btksdqr-1 shows some examples using MULTITHRESH and IMQUANTIZE which may be instructive.

Anand
Anand 2013-8-22
Look at the paper referenced in the documentation page for multithresh. The link is below:
Specifically, look at section III.B for an explanation.
The basic idea is to find the two thresholds that maximize between class variance over the gray levels in the image. A search-based optimization is used (fminsearch) to determine the two thresholds. The best way to understand is by looking at lines 141-155 in multithresh.
>>edit multithresh

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by