Selecting Threshold from multithresh

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;

 Respuesta aceptada

Raunak Gupta
Raunak Gupta el 2 de Mayo de 2020

1 voto

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.

Más respuestas (0)

Productos

Versión

R2020a

Preguntada:

el 28 de Abr. de 2020

Editada:

el 2 de Mayo de 2020

Community Treasure Hunt

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

Start Hunting!

Translated by