Colour detection using Image processing
2 views (last 30 days)
Show older comments
HI I am new to Image processing, i want to make a programe in matlab where i can detect colour " red " , "green" & "blue " i will save image in workspace /current directory , and then by using if else statment i will detect whats the colour of image ,if image is green it should display "green", if it is red then it should display "red" similarly for blue if any one knows this , reply me back with coding thanks in advance.
umar
0 Comments
Answers (2)
Walter Roberson
on 6 Apr 2011
This is something that tends to be given as an assignment, so you could probably find some hints in past CSSM discussions
One of the first things you will need to define is what exactly you mean by "red", "green", and "blue". For example, dark purple has no green and has about half as much blue as red: does that mean that purple should be classified as red? If so, then look at the bottom row of that link and notice that those purples have as much blue as they have red: how do you classify those? Now take one of those and reduce the red setting by one increment: would the color not still be purple and yet the blue would be stronger than the red?
0 Comments
David Tarkowski
on 6 Apr 2011
Steve Eddins has some articles on his blog about color segmentation and identification. You can start with this entry and then look for other entries on his blog on the topic if you need more guidance.
0 Comments
See Also
Categories
Find more on Image Processing Toolbox in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!