I have a script that creates a box around selected points of an image once a point is selected. Now I can't figure out what to do with the data.
I need to come up with a way to comparatively analyze both of those points to show that they are different (i.e. one box is lighter and one box is brighter or some other way to distinguish two points).
I thought about summing the matrix it creates but I don't think this is the best way.
Someone also suggested using this to compare the two points:
row1 = hem_ul(2); % y
row2 = hem_ll(2);
col1 = hem_ul(1); % x
col2 = hem_ur(1);
meanValue = mean2(yourImage(row1:row2, col1:col2));