Skip to content

Commit 53f457f

Browse files
authored
fix(grid_map_cv): use the cv::COLOR_* constants (#558)
1 parent 9a27227 commit 53f457f

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

‎grid_map_cv/include/grid_map_cv/GridMapCvConverter.hpp‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -87,9 +87,9 @@ class GridMapCvConverter
8787

8888
cv::Mat imageMono;
8989
if (isColor && !hasAlpha) {
90-
cv::cvtColor(image, imageMono, CV_BGR2GRAY);
90+
cv::cvtColor(image, imageMono, cv::COLOR_BGR2GRAY);
9191
} else if (isColor && hasAlpha) {
92-
cv::cvtColor(image, imageMono, CV_BGRA2GRAY);
92+
cv::cvtColor(image, imageMono, cv::COLOR_BGRA2GRAY);
9393
} else if (!isColor && !hasAlpha) {
9494
imageMono = image;
9595
} else {
@@ -156,7 +156,7 @@ class GridMapCvConverter
156156

157157
cv::Mat imageRGB;
158158
if (hasAlpha) {
159-
cv::cvtColor(image, imageRGB, CV_BGRA2RGB);
159+
cv::cvtColor(image, imageRGB, cv::COLOR_BGRA2RGB);
160160
} else {
161161
imageRGB = image;
162162
}

0 commit comments

Comments
 (0)