1
0
mirror of https://github.com/opencv/opencv.git synced 2026-07-29 15:23:05 +04:00

Allow applyColorMap for 1d arrays

This commit is contained in:
Vincent Rabaud
2026-04-20 13:38:40 +02:00
parent 924a10069c
commit 69020c6517
2 changed files with 14 additions and 1 deletions
+1 -1
View File
@@ -735,7 +735,7 @@ namespace colormap
if(src.type() != CV_8UC1 && src.type() != CV_8UC3)
CV_Error(Error::StsBadArg, "cv::ColorMap only supports source images of type CV_8UC1 or CV_8UC3");
CV_CheckEQ(src.dims, 2, "Not supported");
CV_CheckLE(src.dims, 2, "Not supported");
CV_Assert(_lut.isContinuous());
const int lut_type = _lut.type();