mirror of
https://github.com/opencv/opencv.git
synced 2026-07-31 08:13:04 +04:00
Partially backport C API removal in imgproc module to reduce conflicts with 5.x
This commit is contained in:
@@ -1359,7 +1359,7 @@ FillEdgeCollection( Mat& img, std::vector<PolyEdge>& edges, const void* color, i
|
||||
int pix_size = (int)img.elemSize();
|
||||
int delta;
|
||||
|
||||
if (line_type < CV_AA)
|
||||
if (line_type < cv::LINE_AA)
|
||||
delta = 0;
|
||||
else
|
||||
delta = XY_ONE - 1;
|
||||
@@ -2310,7 +2310,7 @@ void putText( InputOutputArray _img, const String& text, Point org,
|
||||
int base_line = -(ascii[0] & 15);
|
||||
int hscale = cvRound(fontScale*XY_ONE), vscale = hscale;
|
||||
|
||||
if( line_type == CV_AA && img.depth() != CV_8U )
|
||||
if( line_type == cv::LINE_AA && img.depth() != CV_8U )
|
||||
line_type = 8;
|
||||
|
||||
if( bottomLeftOrigin )
|
||||
|
||||
Reference in New Issue
Block a user