Difference between graythresh and multithresh for one value of threshold.

조회 수: 11 (최근 30일)
D_coder
D_coder 2018년 8월 30일
댓글: Amir Xz 2018년 9월 4일
graythresh(I) and multithresh(I,1) gives me different values even if both are based on otsu's method of thresholding Why?

답변 (1개)

Amir Xz
Amir Xz 2018년 8월 31일
t1 = multithresh(I,1);
t2 = graythresh(I);
t1 is a LEVEL, which means is a number between 0 to 255.
t2 is same LEVEL that mapped in [0 1].
In other word:
t1 == uint8(256*t2)
  댓글 수: 3
Amir Xz
Amir Xz 2018년 9월 4일
I gave you an example for an 8-bit digital image.
Example: Check it for 'coins.png' image.
What kind of image that you use?

댓글을 달려면 로그인하십시오.

Community Treasure Hunt

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

Start Hunting!

Translated by