Browse Source

fix simplecv Mat templated ptr (#5241)

tags/20240102
nihui GitHub 2 years ago
parent
commit
d30af29ee2
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      src/simpleocv.h

+ 2
- 2
src/simpleocv.h View File

@@ -398,13 +398,13 @@ struct NCNN_EXPORT Mat
template<typename _Tp>
const _Tp* ptr(int y) const
{
return (const _Tp*)data + y * cols * c;
return (const _Tp*)(data + y * cols * c);
}

template<typename _Tp>
_Tp* ptr(int y)
{
return (_Tp*)data + y * cols * c;
return (_Tp*)(data + y * cols * c);
}

// roi


Loading…
Cancel
Save