I get exception when I do a flip
First-chance exception at 0x0F5880DD (igdrcl32.dll) in ImageUtils.exe: 0xC0000005: Access violation reading location 0x000008E0. Unhandled exception at 0x0F5880DD (igdrcl32.dll) in ImageUtils.exe: 0xC0000005: Access violation reading location 0x000008E0.
std::vector<uchar> vectorImageDecoded(imageDecodedLength);
memcpy(&vectorImageDecoded[0], imageDecoded, imageDecodedLength);
cv::Mat matrixDecoded = cv::imdecode(cv::Mat(vectorImageDecoded), cv::IMREAD_UNCHANGED);
cv::Mat res;
cv::flip(matrixDecoded, res, 0);
imageMatrix = res;
Why I get this from that dll? How should I avoid this the image is a .png format
how do you get imageDecoded and imageDecodedLength ?
did you check, if matrixDecoded is valid (! empty()) ?
any chance, you're using debug dll's with a release build (or vice versa) ?
I get a base64 string and I decode it with an alg from internet.
BYTE* imageDecoded; long imageDecodedLength;
yes I verify for valid data. and I am using release dll for release build
and when I use bmp images I don't have this exception.
does the error go away, if you disable opencl ? (
ocl::setUseOpenCL(false);
)(igdrcl32.dll seems to be opencl related)
I will try. I attached an image with my matrix which i want to flip.
Now I have that exception on this line cv::ocl::setUseOpenCL(false); when i am trying to disable it. First-chance exception at 0x03DE80DD (igdrcl32.dll) in ImageUtils.exe: 0xC0000005: Access violation reading location 0x000008E0. Unhandled exception at 0x03DE80DD (igdrcl32.dll) in ImageUtils.exe: 0xC0000005: Access violation reading location 0x000008E0.