Hey, So My Samples are in the image attached. How do I compare their colors ?
What I have come up with is finding this:
x1=imread('b1.jpg');
y1=imresize(x1,1/200);
r1=y1(:,:,1);
g1=y1(:,:,2);
b1=y1(:,:,3);
l1=r1(2,2,1);
m1=g1(2,2,1);
n1=b1(2,2,1);
x2=imread('b2.jpg');
y2=imresize(x2,1/200);
r2=y2(:,:,1);
g2=y2(:,:,2);
b2=y2(:,:,3);
l2=r2(2,2,1);
m2=g2(2,2,1);
n2=b2(2,2,1);
dr=l1-l2
dg=m1-m2
db=n1-n2