Try this:
A=imread('your image');
imshow(A);
impixelinfo;
[c, r, vals] = impixel;
c and r are arrays of all the columns and rows of the part of the image that user clicked on and vals are the RGB values of each point.
2
solved how to extract data from image by user [closed]