MCPcopy Create free account
hub / github.com/creatale/node-dv / clipLine

Function clipLine

deps/opencv/modules/core/src/drawing.cpp:78–88  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

76\****************************************************************************************/
77
78bool clipLine( Size img_size, Point& pt1, Point& pt2 )
79{
80 Point2l p1(pt1.x, pt1.y);
81 Point2l p2(pt2.x, pt2.y);
82 bool inside = clipLine(Size2l(img_size.width, img_size.height), p1, p2);
83 pt1.x = (int)p1.x;
84 pt1.y = (int)p1.y;
85 pt2.x = (int)p2.x;
86 pt2.y = (int)p2.y;
87 return inside;
88}
89
90bool clipLine( Size2l img_size, Point2l& pt1, Point2l& pt2 )
91{

Callers 5

LineIteratorMethod · 0.85
LineAAFunction · 0.85
Line2Function · 0.85
cvClipLineFunction · 0.85
growMethod · 0.85

Calls 2

tlMethod · 0.80
sizeMethod · 0.45

Tested by

no test coverage detected