Make highgui.hpp independent from C API
This commit is contained in:
@@ -82,12 +82,12 @@ void processImage(int /*h*/, void*)
|
||||
continue;
|
||||
drawContours(cimage, contours, (int)i, Scalar::all(255), 1, 8);
|
||||
|
||||
ellipse(cimage, box, Scalar(0,0,255), 1, CV_AA);
|
||||
ellipse(cimage, box.center, box.size*0.5f, box.angle, 0, 360, Scalar(0,255,255), 1, CV_AA);
|
||||
ellipse(cimage, box, Scalar(0,0,255), 1, LINE_AA);
|
||||
ellipse(cimage, box.center, box.size*0.5f, box.angle, 0, 360, Scalar(0,255,255), 1, LINE_AA);
|
||||
Point2f vtx[4];
|
||||
box.points(vtx);
|
||||
for( int j = 0; j < 4; j++ )
|
||||
line(cimage, vtx[j], vtx[(j+1)%4], Scalar(0,255,0), 1, CV_AA);
|
||||
line(cimage, vtx[j], vtx[(j+1)%4], Scalar(0,255,0), 1, LINE_AA);
|
||||
}
|
||||
|
||||
imshow("result", cimage);
|
||||
|
Reference in New Issue
Block a user