I gang

Analyze 2 points on an image to determine which one is brighter and debugging code

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));

Færdigheder: C programmering, C++ Programmering, Matlab and Mathematica

Se mere: someone one, points, determine, brighter, summing, compare image code, can determine, summing box, data matrix code, image selected, point points, image matrix, opencv determine sharpness image, determine type image smarty, compare image, show image selected

Om arbejdsgiveren:
( 2 bedømmelser ) Boston, United States

Projekt-ID: #6001345