OpenCV Mat crashes while push_back with Mat::zeros() or (Bug #3624)
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
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