This is my code:
%%In this part we just find the coordinates of the required coloursim = imread('Lighthouse.jpg');n = 4;figure, imshow(im)[x,y] = ginput(n);x = floor(x);y = floor(y);%colour(length(x),3);for i=1:length(x)for j=1:3colour(i,j) = im(y(i),x(i),j);endendimage(colour)
when I run it, and slect a point on the image it doesn't show me the colour I selected!! it figures a red colour!! why is that? the variable colour is [195,213,223]
how can I visualize that RGB colour?