processing image detect color and shape object

2 visualizaciones (últimos 30 días)
ngo tung
ngo tung el 4 de Abr. de 2020
Comentada: Image Analyst el 13 de Abr. de 2020
hi guy
how can i detect color object in image (red green blue) in hsv space and write color name in object. thankyou

Respuestas (1)

Image Analyst
Image Analyst el 4 de Abr. de 2020
See demos in my File Exchange.
  5 comentarios
ngo tung
ngo tung el 13 de Abr. de 2020
@Image Analyst
Can you answer this question.
Image Analyst
Image Analyst el 13 de Abr. de 2020
Get a mask with true or false that says where your pixels are or are not. Then you can mask them out (blacken them):
% Mask the image using bsxfun() function to multiply the mask by each channel individually. Works for gray scale as well as RGB Color images.
maskedRgbImage = bsxfun(@times, rgbImage, cast(mask, 'like', rgbImage));
Also, try the Color Thresholder app on the Apps tab of the tool ribbon.
Also, see my File Exchange.

Iniciar sesión para comentar.

Categorías

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

Community Treasure Hunt

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

Start Hunting!

Translated by