Skip to content

Commit 08784a7

Browse files
committed
Fix compilation using OpenCV 2.4.9.1
1 parent 886eae9 commit 08784a7

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/util/draw.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,8 @@ namespace dest {
4040
cv::applyColorMap(values, colors, colormap);
4141

4242
for (core::Shape::Index i = 0; i < s.cols(); ++i) {
43-
cv::Scalar color = colors.at<cv::Vec3b>(0, static_cast<int>(i));
43+
cv::Vec3b temp = colors.at<cv::Vec3b>(0, static_cast<int>(i));
44+
cv::Scalar color(temp[0], temp[1], temp[2]);
4445
cv::circle(img, cv::Point2f(s(0, i), s(1 ,i)), 1.f, color, -1, CV_AA);
4546
}
4647
}

0 commit comments

Comments
 (0)