1 | initial version |
I found that arithm_op was trying to access one InputArray that was a noArray() and, since the noArray function returns a static object, it may not be initialized.
My workaround was to change the definition of _none in modules/core/src/matrix.cpp:
//static _OutputArray _none;
static _OutputArray noneOutputArray()
{
static _OutputArray none;
return &none;
}
#define _none *noneOutputArray()
The define was used to avoid interferences with other code that may be using the _none object. (And to avoid the need to change that code)
I don't know if this can/will affect the behavior of other parts of OpenCV.