XIO

xWire

Posts from every feed QUEST has found across the web — blogs, news, podcasts, channels and more.

OpenCV - Latest posts

Latest posts

Heap error from cvtColor

Thank you for answering! I can confirm the the heap error is the same without wx dependency: cv::Mat src = cv::imread("C:/circleTest.jpg"); cv::Mat srcGray; cvtColor(src, srcGray, cv::COLOR_BGR2GRAY); Unfortunatly, I do not know enough to be able to get rid of loading the image data from a file.

Heap error from cvtColor

Hi everyone! Why does this simple code result in a heap error? auto img = std::make_unique<wxImage>(); bool success = img->LoadFile(wxGetUserHome() + wxT("\\Desktop\\circleTest.jpg")); cv::Mat src(img->GetHeight(), img->GetWidth(), CV_8UC3, img->GetData()); cv::Mat srcGray; cvtColor(src, srcGray, cv::COLOR_BGR2GRAY); using this image: The error: {707700} normal block at 0x0000022D8679D860, 2616 bytes long. Data: < > F8 09 00 00 00 00 00 00 F4 09 00 00 00 00 00 00 {706911} normal block at…