Is it Possible to Create a Continuous Image?
Is it possible to create a cv::Mat
of arbitrary size for which isContinuous()
will return true
, i.e. no row padding, without using externally allocated data?
It seems that only the constructor for using externally allocated data supports setting the step/stride variable.
any Mat created (without an external data pointer) will be continuous
Are you sure about this? Where is this written? Most MMX/SSE operations work much faster on aligned and padded data (rows). I had assumed OpenCV automatically adds padding for 4 or 8 byte multiples (as e.g. IPL and IPP did/does).