filter a specific color from image

11 次查看(过去 30 天)
Hello everybody
i have a problem and it would be great if someone helps i am trying to cut a color from an image where the result image is BW .and the color specified i want to chose is black and the rest is white .the main problem is since there was more light of the left side of the image the pixel value pattern changes for the same color over the same image,for example blue of the left has value of RGB= 106 156 183 where on the right side RGB=106 126 133 ,is there a way where i can make the brightness the same all over the image ?I mean a way of making the values of the color i see to have the same values all over the image or a same pattern?

采纳的回答

Image Analyst
Image Analyst 2016-12-3
See color segmentation demos in my File Exchange. http://www.mathworks.com/matlabcentral/fileexchange/?term=authorid%3A31862
Or use the ColorThresholder App on the Apps tab of the tool ribbon.
  7 个评论
Ah
Ah 2016-12-21
so i have been reading about x-rite ColorChecker chart,and tested the Method you recommended regarding the the white spot,is there a way to calibrate a camera using information already exsisted on the image? for example i can easly detect red color on my image feed and can i use a saved value to calibrate the camera ?multiplaying by a factor doesnot seems to help me a lot since i picked a point and multiplyed the whole image by factors one for each RGB .
Image Analyst
Image Analyst 2016-12-21
If you don't want to do calibrated color analysis then you can filter on whatever you have. I do that in several different ways (different color spaces) in my File Exchange: http://www.mathworks.com/matlabcentral/fileexchange/?term=authorid%3A31862.
Or you can try the Color Thresholder on the Apps tab of the MATLAB tool ribbon.

请先登录,再进行评论。

更多回答(1 个)

Ah
Ah 2016-12-12
very intresting way i will try it in the next weeks,i will read about x-rite ColorChecker chart and report back.thank you again for help

类别

Help CenterFile Exchange 中查找有关 Image Processing Toolbox 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by