processing image detect color and shape object
2 次查看(过去 30 天)
显示 更早的评论
hi guy
how can i detect color object in image (red green blue) in hsv space and write color name in object. thankyou
0 个评论
回答(1 个)
Image Analyst
2020-4-4
5 个评论
Image Analyst
2020-4-13
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.
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Image Processing Toolbox 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!