Discover MakerZone

MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi

Learn more

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today

Color Differentiation

Asked by DAD on 27 May 2012

Dears, I have an image with four different colors as Black,Blue, Green and yellow. How can I represent these colors as 1, 2, 3 and 4 respectively. Please help me earlier.. Urgent


Walter Roberson on 27 May 2012

Walter Roberson on 27 May 2012

Why is this matter urgent when I had already answered your question before you posted this?



1 Answer

Answer by Image Analyst on 27 May 2012

I can't help you earlier than right now. The best I can do is now. You might try either the rgb2ind() function (like Walter suggested in your duplicate question), if you want to have MATLAB take a stab at doing color classification for you automatically, or else have more control over it by using my color classification programs:


Image Analyst

Contact us