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

Cleaned parser denylist

This commit is contained in:
Abhishek Gola
2025-07-31 15:05:43 +05:30
parent a127abbbbd
commit ffa32e2b4c
4 changed files with 121 additions and 118 deletions
+4 -1
View File
@@ -45,6 +45,9 @@ public:
int start_ = start < 0 ? start + outDims : start;
int end_ = end >= outDims ? outDims : end < 0 ? end + outDims : end;
start_ = std::max(0, std::min(start_, outDims));
end_ = std::max(0, std::min(end_, outDims));
CV_Assert(0 <= start_);
CV_Assert(start_ <= end_);
CV_Assert(end_ <= outDims);
@@ -108,7 +111,7 @@ public:
shape_type_t shapeData[CV_MAX_DIM];
for (int i = r.start; i < r.end; i++)
shapeData[i] = (shape_type_t)inpShape[i];
shapeData[i - r.start] = (shape_type_t)inpShape[i];
Mat shape({r.end - r.start}, shapeType, shapeData);