processing image detect color and shape object
Ältere Kommentare anzeigen
hi guy
how can i detect color object in image (red green blue) in hsv space and write color name in object. thankyou
Antworten (1)
Image Analyst
am 4 Apr. 2020
1 Stimme
5 Kommentare
ngo tung
am 4 Apr. 2020
Image Analyst
am 5 Apr. 2020
imcrop():
croppedImage = imcrop(rgbImage, [xLeftColumn, yTopRow, widthInColumns, heightInRows]);
ngo tung
am 5 Apr. 2020
ngo tung
am 13 Apr. 2020
Image Analyst
am 13 Apr. 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.
Kategorien
Mehr zu Display and Exploration finden Sie in Hilfe-Center und File Exchange
Produkte
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!