@@ -262,17 +262,19 @@ int visualizeOrientation(
262
262
// Draw an arrow in our orientation..
263
263
unsigned int rad = height/2 ;
264
264
265
+ int lineStyle = 0 ; // https://github.com/FORTH-ModelBasedTracker/MocapNET/issues/30 has problems with CV_AA
266
+
265
267
cv::Point arrowPointing;
266
268
arrowPointing.x = (int )(startPoint.x + (rad+10 ) * cos ((90.0 +orientationDegrees) * CV_PI / 180.0 ));
267
269
arrowPointing.y = (int )(startPoint.y + (rad+10 ) * sin ((90.0 +orientationDegrees) * CV_PI / 180.0 ));
268
- cv::line (img,startPoint,arrowPointing,cv::Scalar (0 ,255 ,255 ),4 ,CV_AA ,0 );
270
+ cv::line (img,startPoint,arrowPointing,cv::Scalar (0 ,255 ,255 ),4 ,lineStyle ,0 );
269
271
cv::Point arrowSide;
270
272
arrowSide.x = (int )(startPoint.x + (rad) * cos ((90.0 +orientationDegrees-5 ) * CV_PI / 180.0 ));
271
273
arrowSide.y = (int )(startPoint.y + (rad) * sin ((90.0 +orientationDegrees-5 ) * CV_PI / 180.0 ));
272
- cv::line (img,arrowSide,arrowPointing,cv::Scalar (0 ,255 ,255 ),4 ,CV_AA ,0 );
274
+ cv::line (img,arrowSide,arrowPointing,cv::Scalar (0 ,255 ,255 ),4 ,lineStyle ,0 );
273
275
arrowSide.x = (int )(startPoint.x + (rad) * cos ((90.0 +orientationDegrees+5 ) * CV_PI / 180.0 ));
274
276
arrowSide.y = (int )(startPoint.y + (rad) * sin ((90.0 +orientationDegrees+5 ) * CV_PI / 180.0 ));
275
- cv::line (img,arrowSide,arrowPointing,cv::Scalar (0 ,255 ,255 ),4 ,CV_AA ,0 );
277
+ cv::line (img,arrowSide,arrowPointing,cv::Scalar (0 ,255 ,255 ),4 ,lineStyle ,0 );
276
278
277
279
thickness=2 ;
278
280
startPoint.x -= width / 7 ;
0 commit comments