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

Function line

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

Source from the content-addressed store, hash-verified

1702\****************************************************************************************/
1703
1704void line( Mat& img, Point pt1, Point pt2, const Scalar& color,
1705 int thickness, int line_type, int shift )
1706{
1707 if( line_type == CV_AA && img.depth() != CV_8U )
1708 line_type = 8;
1709
1710 CV_Assert( 0 <= thickness && thickness <= 255 );
1711 CV_Assert( 0 <= shift && shift <= XY_SHIFT );
1712
1713 double buf[4];
1714 scalarToRawData( color, buf, img.type(), 0 );
1715 ThickLine( img, pt1, pt2, buf, thickness, line_type, 3, shift );
1716}
1717
1718void arrowedLine(Mat& img, Point pt1, Point pt2, const Scalar& color,
1719 int thickness, int line_type, int shift, double tipLength)

Callers 4

arrowedLineFunction · 0.85
drawMarkerFunction · 0.85
cvLineFunction · 0.85
drawLSegsMethod · 0.85

Calls 4

scalarToRawDataFunction · 0.85
ThickLineFunction · 0.85
depthMethod · 0.45
typeMethod · 0.45

Tested by

no test coverage detected