1 | initial version |
there are 3 cases, where you'd get non-continouos Mat's.
since you have to reorder the memory in all those cases, checking for continuity and a clone() acll will solve it.
if ( ! mat.isContinuous() )
{
mat = mat.clone();
}
2 | No.2 Revision |
there are 3 cases, where you'd get non-continouos non-continuous Mat's.
since you have to reorder the memory in all those cases, checking for continuity and a clone() acll will solve it.
if ( ! mat.isContinuous() )
{
mat = mat.clone();
}