Home
last modified time | relevance | path

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

/external/opencv/cv/src/
Dcvgeometry.cpp295 double dx, dy, dx1, dy1, dx2, dy2, dist_num, dist_denom = 1; in cvPointPolygonTest() local
313 dist_num = dx1*dx1 + dy1*dy1; in cvPointPolygonTest()
315 dist_num = dx2*dx2 + dy2*dy2; in cvPointPolygonTest()
318 dist_num = (dy1*dx - dx1*dy); in cvPointPolygonTest()
319 dist_num *= dist_num; in cvPointPolygonTest()
323 if( dist_num*min_dist_denom < min_dist_num*dist_denom ) in cvPointPolygonTest()
325 min_dist_num = dist_num; in cvPointPolygonTest()
336 dist_num = dy1*dx - dx1*dy; in cvPointPolygonTest()
338 dist_num = -dist_num; in cvPointPolygonTest()
339 counter += dist_num > 0; in cvPointPolygonTest()
/external/opencv3/modules/imgproc/src/
Dgeometry.cpp193 double dx, dy, dx1, dy1, dx2, dy2, dist_num, dist_denom = 1; in pointPolygonTest() local
206 dist_num = dx1*dx1 + dy1*dy1; in pointPolygonTest()
208 dist_num = dx2*dx2 + dy2*dy2; in pointPolygonTest()
211 dist_num = (dy1*dx - dx1*dy); in pointPolygonTest()
212 dist_num *= dist_num; in pointPolygonTest()
216 if( dist_num*min_dist_denom < min_dist_num*dist_denom ) in pointPolygonTest()
218 min_dist_num = dist_num; in pointPolygonTest()
229 dist_num = dy1*dx - dx1*dy; in pointPolygonTest()
231 dist_num = -dist_num; in pointPolygonTest()
232 counter += dist_num > 0; in pointPolygonTest()
/external/opencv3/modules/imgproc/test/
Dtest_convhull.cpp107 double dx, dy, dx1, dy1, dx2, dy2, dist_num, dist_denom = 1; in cvTsPointPolygonTest() local
116 dist_num = dx2*dx2 + dy2*dy2; in cvTsPointPolygonTest()
119 dist_num = dx1*dx1 + dy1*dy1; in cvTsPointPolygonTest()
125 dist_num = (dy1*dx - dx1*dy); in cvTsPointPolygonTest()
126 dist_num *= dist_num; in cvTsPointPolygonTest()
131 if( dist_num*min_dist_denom < min_dist_num*dist_denom ) in cvTsPointPolygonTest()
133 min_dist_num = dist_num; in cvTsPointPolygonTest()
146 dist_num = dy1*dx - dx1*dy; in cvTsPointPolygonTest()
148 dist_num = -dist_num; in cvTsPointPolygonTest()
149 counter += dist_num > 0; in cvTsPointPolygonTest()