help with colour identification

3 views (last 30 days)
Chloe Hind
Chloe Hind on 15 Aug 2017
Commented: Image Analyst on 23 Aug 2017
Hi, I am looking for some help please. I need to automatically identify the colour brown in an image and also in a video. I have successfully identified brown using 'Colour segmentation by Delta E colour difference' but I need to write a code which automatically identifies the colour with no imput. The same with a video.
I understand that 'brown' is not just one colour therefore I am guessing a colour scale will be needed.
Thank you

Answers (1)

Image Analyst
Image Analyst on 15 Aug 2017
Use the Color Thresholder app on the Apps tab of the tool ribbon.
Or just skip the part where I let you hand draw the region and just hard code what the value for the reference brown color is. You can hand draw it one time and then figure out what the mean L, A, and B are, then comment out the hand-drawing part and hard-code in those values.
Attach your image if you need more help.
  3 Comments
Image Analyst
Image Analyst on 17 Aug 2017
You need to put the filename in single quotes when you pass it to imread().
Image Analyst
Image Analyst on 23 Aug 2017
Note: original question was (in case she deletes like she did with her comments):
Hi, I am looking for some help please. I need to automatically identify the colour brown in an image and also in a video. I have successfully identified brown using 'Colour segmentation by Delta E colour difference' but I need to write a code which automatically identifies the colour with no imput. The same with a video.
I understand that 'brown' is not just one colour therefore I am guessing a colour scale will be needed.
Thank you

Sign in to comment.

Community Treasure Hunt

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

Start Hunting!