1
0
mirror of https://github.com/opencv/opencv.git synced 2026-07-30 07:43:03 +04:00

python: properly handle step for multichannel case

This commit is contained in:
Alexander Alekhin
2021-10-29 16:08:57 +00:00
parent 6a2077cbd8
commit 40c748a2ae
3 changed files with 7 additions and 1 deletions
+1 -1
View File
@@ -463,7 +463,7 @@ Mat::Mat(Size _sz, int _type, void* _data, size_t _step)
}
else
{
CV_Assert(_step >= minstep);
CV_CheckGE(_step, minstep, "");
if (_step % esz1 != 0)
{