From 2d1cb14e6125245e681c8cc49686985135cd0a83 Mon Sep 17 00:00:00 2001 From: berak Date: Fri, 1 Jan 2016 10:10:01 +0100 Subject: [PATCH] fix cv::MARKER_TRIANGLE_UP --- modules/imgproc/src/drawing.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/imgproc/src/drawing.cpp b/modules/imgproc/src/drawing.cpp index 8c052d1643..4396e0a5ab 100644 --- a/modules/imgproc/src/drawing.cpp +++ b/modules/imgproc/src/drawing.cpp @@ -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