OpenCV Mat crashes while push_back with Mat::zeros() or (Bug #3624)


Added by Yuchen Zhong almost 11 years ago. Updated almost 11 years ago.


Status:Cancelled Start date:2014-03-28
Priority:Normal Due date:
Assignee:- % Done:

0%

Category:-
Target version:-
Affected version:2.4.8 (latest release) Operating System:Windows
Difficulty: HW Platform:x64
Pull request:

Description

I am not sure whether it is a bug or not. The following code results in crashes.

Mat matrix( 0, 3, CV_32F ); 
matrix.push_back( Mat::zeros( 2, 3, CV_32F ) );
matrix.push_back( Mat::ones( 2, 3, CV_32F ) );

According to the documentation, Mat::zeros() and ones() return a MatExpr, which shoulbe be easily assignable to Mat. Something may be wrong there.


Associated revisions

Revision 52d3afd7
Added by Vadim Pisarevsky about 10 years ago

Merge pull request #3624 from jet47:fix-arm-linux-toolchain

History

Updated by Nikita Manovich almost 11 years ago

Thank you for your bug report. Could you please ask the question here: http://answers.opencv.org/questions/? What are you trying to do in this code? Why are you trying to create a matrix with zero of rows? Also without a stack for the crash or full code example nobody will provide a good advice.

  • Status changed from New to Cancelled

Also available in: Atom PDF