processing image detect color and shape object

hi guy
how can i detect color object in image (red green blue) in hsv space and write color name in object. thankyou

답변 (1개)

Image Analyst
Image Analyst 2020년 4월 4일

1 개 추천

See demos in my File Exchange.

댓글 수: 5

ngo tung
ngo tung 2020년 4월 4일
What function can I use to cut an object out of the image after defining the bounding box? Thankyou very much.
imcrop():
croppedImage = imcrop(rgbImage, [xLeftColumn, yTopRow, widthInColumns, heightInRows]);
ngo tung
ngo tung 2020년 4월 5일
thank sir.
Can you help me answer the last question?
what function can i filter out pixels color that have values ​​within my selection, same as the inRange() function in Opencv.
Thanks for the help!!
ngo tung
ngo tung 2020년 4월 13일
@Image Analyst
Can you answer this question.
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.

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

카테고리

도움말 센터File Exchange에서 Image Processing Toolbox에 대해 자세히 알아보기

질문:

2020년 4월 4일

댓글:

2020년 4월 13일

Community Treasure Hunt

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

Start Hunting!

Translated by