Colour detection using Image processing

2 ビュー (過去 30 日間)
paf  CEO
paf CEO 2011 年 4 月 6 日
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

回答 (2 件)

Walter Roberson
Walter Roberson 2011 年 4 月 6 日
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?

David Tarkowski
David Tarkowski 2011 年 4 月 6 日
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.

カテゴリ

Help Center および File ExchangeImage Processing Toolbox についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by