Skip to content

Commit

Permalink
fixed shape() function (opencv#1177)
Browse files Browse the repository at this point in the history
  • Loading branch information
vpisarev authored May 23, 2017
1 parent 4b1834a commit f78bb2c
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions modules/dnn/include/opencv2/dnn/shape_utils.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -130,14 +130,9 @@ static inline MatShape shape(const int* dims, const int n = 4)
return shape;
}

static inline MatShape shape(const MatSize& size)
{
return shape((const int*)size, size.dims());
}

static inline MatShape shape(const Mat& mat)
{
return shape(mat.size);
return shape(mat.size.p, mat.dims);
}

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

0 comments on commit f78bb2c

Please sign in to comment.