Open Sun-ZhenXing opened 2 years ago
I have test ncnn::Mat.to_pixels() with inimage, but outimage report error when converting:
ncnn::Mat.to_pixels()
inimage
// (main.cpp 376 line) ncnn::Mat out = v.outimage; cv::Mat res(out.h, out.w, CV_8UC3); out.to_pixels(res.data, ncnn::Mat::PIXEL_BGR2RGB); // ERROR here cv::imshow("res", res); cv::waitKey(); cv::destroyAllWindows();
With OpenCV 4.6.0 Windows 10x, always get this:
Exception has occurred: W32/0xC0000005 Unhandled exception thrown: read access violation. ptr1 was 0x1ACAC042000.
/src/ncnn/src/mat_pixel.cpp 734 line, is the problem with out.data or other ?
/src/ncnn/src/mat_pixel.cpp
out.data
I have test
ncnn::Mat.to_pixels()
withinimage
, but outimage report error when converting:With OpenCV 4.6.0 Windows 10x, always get this:
/src/ncnn/src/mat_pixel.cpp
734 line, is the problem without.data
or other ?