Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Hi - well this should be very easy: Just get the x,y coodinates of the mindpoints and compute the diff. ie top mid (x1,y1) and bottom mid (x2,y2) -> ydiff: y2-y1; xdiff: x2-x1

In General If you want to compute the distance between two point you can use the euclidenean distance function. If you want to know what is the vector (in wich directions you must go to reach from start to end, representing the diff in pixels) just substract component wise(as done above)