Ask Your Question
1

Mat::resize() hangs in 64bit

asked 2013-04-30 23:38:17 -0600

daktor gravatar image

updated 2013-05-03 19:57:36 -0600

EDIT: This was caused by code outside of OpenCV. Still haven't tracked down exactly what's going on, but it is not the fault of OpenCV.

Mat frame;
if (Cap.read(frame))
{
   Size_<int> s(1024, 1024);
   Mat test;
   resize(frame, test, s);
}

Running x86 this works perfectly in 2.4.3. Running x64 execution hits resize() but never returns. Any ideas what I've done wrong? Or a different way to resize Mats?

Thanks!

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
0

answered 2013-05-03 13:38:43 -0600

daktor gravatar image

This worked, not sure why:

Mat frame;
...
Size_<int> s(1024, 1024);
resize(frame, frame, s, 0, 0, INTER_NEAREST);
edit flag offensive delete link more

Question Tools

Stats

Asked: 2013-04-30 23:38:17 -0600

Seen: 431 times

Last updated: May 03 '13