필터 지우기
필터 지우기

Selecting Threshold from multithresh

조회 수: 4 (최근 30일)
Pranaya Kansakar
Pranaya Kansakar 2020년 4월 28일
편집: Pranaya Kansakar 2020년 5월 2일
I have got a image with multiple thresholds (attachment).
Is it possible to negate all but one of the thresholds - e.g. have only the purple layer - such that the rest of the threshold labels are not visible and only the purple one remains?
thresh = multithresh(I,4);
sI = imquantize(app.image,thresh);
RGB = label2rgb(sI);
figure;

채택된 답변

Raunak Gupta
Raunak Gupta 2020년 5월 2일
Hi,
The multithresh will return multiple threshold value in a vector to be used. Since you want to use only a single threshold for displaying you can select that threshold value from the vector thresh and pass only that value to imquantize in the ‘thresh’ field. This will create only single label in the resulting image.
  댓글 수: 1
Pranaya Kansakar
Pranaya Kansakar 2020년 5월 2일
편집: Pranaya Kansakar 2020년 5월 2일
Thanks for the reply!

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

추가 답변 (0개)

제품


릴리스

R2020a

Community Treasure Hunt

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

Start Hunting!

Translated by