Because cv::Mat has somewhat inconsistent constructors: Mat(nrows, ncols) but Mat(Size(ncols,nrows)), the image data was reversibly mangled when passing from Python to C++ (and back): https://imgur.com/a/vJwzN
This at least affected internal imshows in various bgs_package algorithms, probably their results too.
I also added checks for image dimensions in process wrapper.
Because
cv::Mat
has somewhat inconsistent constructors:Mat(nrows, ncols)
butMat(Size(ncols,nrows))
, the image data was reversibly mangled when passing from Python to C++ (and back): https://imgur.com/a/vJwzN This at least affected internalimshow
s in various bgs_package algorithms, probably their results too.I also added checks for image dimensions in
process
wrapper.