Ask Your Question
1

bug in Mat::ones/zeros in 64-bit?

asked 2013-07-28 12:45:05 -0600

adipxs gravatar image

Hello

I've got an "Access Violation ... reading 0xffffffff" when I used Mat::zeros or Mat::ones with OpenCV 2.4.3/5/6 x64 under VC10 on Windows 7 x64 (from the pre-compiled binaries pack).

A program containing this:

int main()
{
   cv::Mat A = cv::Mat::ones(307200, 1, CV_8UC1);  
   return 0; 
}

caused this access violation. Replacing with:

cv::Mat A(307200, 1, CV_8UC1);
A.setTo( cv::Scalar(0) );

works.

Building it with the x86 versions, of course, worked as well. I made sure that I am linking to the right versions and using the right binaries.

Any ideas? Thanks

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
0

answered 2013-07-28 14:37:25 -0600

I recommend you to create issue on bug tracker.

edit flag offensive delete link more

Question Tools

Stats

Asked: 2013-07-28 12:45:05 -0600

Seen: 304 times

Last updated: Jul 28 '13