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 0x0000022D867F94E0, 16 bytes long.
Data: < :X > C8 3A 58 F5 FD 7F 00 00 01 00 00 00 CD CD CD CD
{706395} normal block at 0x0000022D867F7AA0, 16 bytes long.
Data: < :X > A0 3A 58 F5 FD 7F 00 00 00 00 00 00 CD CD CD CD
{706392} normal block at 0x0000022D867F7A50, 8 bytes long.
Data: < N > 18 0D 4E F5 FD 7F 00 00
Thanx!
