Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Access violation reading location - when I am trying to do a clone(). The exception is in opencv_world300.dll

When I am trying to make a clone on a matrix an exception is thrown randomly for clone and for flip too. These exceptions are from opencv_world300.dll.image description

cv::Mat matrixDecoded = imdecode(cv::Mat(vectorImageDecoded), cv::IMREAD_UNCHANGED); imageMatrix = matrixDecoded.clone();
cv::flip(imageMatrix, imageMatrix, 0);

Somebody knows why is happening? Thank you.