| 1702 | \****************************************************************************************/ |
| 1703 | |
| 1704 | void 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 | |
| 1718 | void arrowedLine(Mat& img, Point pt1, Point pt2, const Scalar& color, |
| 1719 | int thickness, int line_type, int shift, double tipLength) |
no test coverage detected