mirror of
https://github.com/opencv/opencv.git
synced 2024-11-29 05:29:54 +08:00
fix cv::MARKER_TRIANGLE_UP
This commit is contained in:
parent
8d79285d02
commit
2d1cb14e61
@ -1702,7 +1702,7 @@ void drawMarker(Mat& img, Point position, const Scalar& color, int markerType, i
|
||||
case MARKER_TRIANGLE_UP:
|
||||
line(img, Point(position.x-(markerSize/2), position.y+(markerSize/2)), Point(position.x+(markerSize/2), position.y+(markerSize/2)), color, thickness, line_type);
|
||||
line(img, Point(position.x+(markerSize/2), position.y+(markerSize/2)), Point(position.x, position.y-(markerSize/2)), color, thickness, line_type);
|
||||
line(img, Point(position.x, position.y-(markerSize/2)), Point(position.x-(markerSize/2), position.y-(markerSize/2)), color, thickness, line_type);
|
||||
line(img, Point(position.x, position.y-(markerSize/2)), Point(position.x-(markerSize/2), position.y+(markerSize/2)), color, thickness, line_type);
|
||||
break;
|
||||
|
||||
// The triangle down marker case
|
||||
|
Loading…
Reference in New Issue
Block a user