Ask Your Question
1

Mat::resize() hangs in 64bit

asked May 1 '13

daktor gravatar image

updated May 4 '13

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!

Preview: (hide)

1 answer

Sort by » oldest newest most voted
0

answered May 3 '13

daktor gravatar image

This worked, not sure why:

Mat frame;
...
Size_<int> s(1024, 1024);
resize(frame, frame, s, 0, 0, INTER_NEAREST);
Preview: (hide)

Question Tools

Stats

Asked: May 1 '13

Seen: 447 times

Last updated: May 03 '13