how to identify the threshold of an image?

1 visualización (últimos 30 días)
BA
BA el 7 de Ag. de 2023
Editada: BA el 8 de Ag. de 2023
I need to quantify the threshold of the green color in the attached image to remove everything around it.
I started with something like this:
imshow(img(:,:,1))
[x1, y1] = ginput(1)
buffer = 1.5
img = buffer * (round(x1), round(y1) )

Respuestas (1)

Cris LaPierre
Cris LaPierre el 7 de Ag. de 2023
Editada: Cris LaPierre el 7 de Ag. de 2023
If you have the Image Processing toolbox installed, I would use the Color Thresholder app in MATLAB. I would then export the results to the workspace, and import that into the image viewer app to make measurements.

Categorías

Más información sobre Image Processing Toolbox en Help Center y File Exchange.

Productos


Versión

R2022a

Community Treasure Hunt

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

Start Hunting!

Translated by