Click here to Skip to main content
15,887,135 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have a project to track objects based on their color. I need to know how to get the color map or color code. What is the definition for the color blue or green? Thank you. :)
Posted
Updated 28-Mar-20 3:52am
v2

I find this page's table of color values quite useful. It has both the RGB numbers and the Hex codes, and categorizes them by color range (i.e., pastels, greys, etc.). (Ignore the "Made with a..." at the bottom of the page.)

tayloredmktg.com/rgb
 
Share this answer
 
clc
clear

image=imread('unnamed.jpg')
imshow(image)

r=image(:,:,1);

g=image(:,:,2);
b=image(:,:,3);


imshow(r);
figure,imshow(g);
figure,imshow(b);
imshow(image);

figure
figure,imshow(image);
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900