Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Result from Euc Distance Calculation

Hello, I'm calculating the euc line and the degree for 2 points. Most of the results are OK but sometimes there are results showed like this.

-1.#IND,-1.#IND

May I know what does this means?

The formula for the ecludian distance and the degree (atan) as below.

Point2f a = mc[0]; Point2f b = mc[1]; double res = cv::norm(a-b);

double deg = atan((b.y-a.y)/(b.x-a.x)) * 180 / PI;

thanks