Home
last modified time | relevance | path

Searched refs:hypotenuse (Results 1 – 3 of 3) sorted by relevance

/external/opencv3/samples/cpp/tutorial_code/ml/introduction_to_pca/
Dintroduction_to_pca.cpp24 double hypotenuse; in drawAxis() local
26 hypotenuse = sqrt( (double) (p.y - q.y) * (p.y - q.y) + (p.x - q.x) * (p.x - q.x)); in drawAxis()
31 q.x = (int) (p.x - scale * hypotenuse * cos(angle)); in drawAxis()
32 q.y = (int) (p.y - scale * hypotenuse * sin(angle)); in drawAxis()
/external/opencv3/samples/gpu/
Dpyrlk_optical_flow.cpp43 … double hypotenuse = sqrt( (double)(p.y - q.y)*(p.y - q.y) + (double)(p.x - q.x)*(p.x - q.x) ); in drawArrows() local
45 if (hypotenuse < 1.0) in drawArrows()
49 q.x = (int) (p.x - 3 * hypotenuse * cos(angle)); in drawArrows()
50 q.y = (int) (p.y - 3 * hypotenuse * sin(angle)); in drawArrows()
/external/opencv3/samples/tapi/
Dpyrlk_optical_flow.cpp48 … double hypotenuse = sqrt( (double)(p.y - q.y)*(p.y - q.y) + (double)(p.x - q.x)*(p.x - q.x) ); in drawArrows() local
50 if (hypotenuse < 1.0) in drawArrows()
54 q.x = (int) (p.x - 3 * hypotenuse * cos(angle)); in drawArrows()
55 q.y = (int) (p.y - 3 * hypotenuse * sin(angle)); in drawArrows()