Hello.I'm newbie here.I want to ask opinion about my coding.My project is to detect color changes in fish body segment with different level concentration of water impurities.Color changes are defined through mean value of RGB .Below are the codes
RGB1=imread('C:\Users\user\Documents\MATLAB\C330min1crop.jpg');A=RGB1;R=A(:,:,1);I2=histeq(R);Pixel_Values_Imred=single(I2);mean_I2= mean(Pixel_Values_Imred(:))G=A(:,:,2);I3=histeq(G);Pixel_Values_Imgreen=single(I3);mean_I3= mean(Pixel_Values_Imgreen(:))B=A(:,:,3);I4=histeq(B);Pixel_Values_Imblue=single(I4);mean_I4= mean(Pixel_Values_Imblue(:))figure, subplot(3,1,1),imhist(R),title('Red Color Histogram');subplot(3,1,2),imhist(G),title('Green Color Histogram');subplot(3,1,3),imhist(B),title('Blue Color Histogram');
After running the codes,results show just a little changes in mean value for rgb histogram which only changes in point value.I expect the results will show significant changes since even just looking at the images with naked eyes, the color differences between images are in contrary.For example RED histogram,mean value of (concentration 1)Image1=127.6574 and (concentration 2)image 2=127.4563.Changes are insignificant.My question is is it normal for the value to only change in point or there are errors in my coding?Please correct me if I'm wrong :)Thank you
Best Answer