fixed shape() function (#1177)

pull/1050/merge
Vadim Pisarevsky 8 years ago committed by GitHub
parent 4b1834acea
commit f78bb2c4e7
  1. 7
      modules/dnn/include/opencv2/dnn/shape_utils.hpp

@ -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; }}

Loading…
Cancel
Save