Skip to content

Commit f78bb2c

Browse files
authored
fixed shape() function (#1177)
1 parent 4b1834a commit f78bb2c

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

modules/dnn/include/opencv2/dnn/shape_utils.hpp

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -130,14 +130,9 @@ static inline MatShape shape(const int* dims, const int n = 4)
130130
return shape;
131131
}
132132

133-
static inline MatShape shape(const MatSize& size)
134-
{
135-
return shape((const int*)size, size.dims());
136-
}
137-
138133
static inline MatShape shape(const Mat& mat)
139134
{
140-
return shape(mat.size);
135+
return shape(mat.size.p, mat.dims);
141136
}
142137

143138
namespace {inline bool is_neg(int i) { return i < 0; }}

0 commit comments

Comments
 (0)