1
0
mirror of https://github.com/opencv/opencv.git synced 2026-07-31 08:13:04 +04:00

core(MatExpr): fix .type() bug

This commit is contained in:
Alexander Alekhin
2020-02-23 17:05:05 +00:00
parent 150c29356a
commit d54d01ca46
3 changed files with 16 additions and 2 deletions
+1 -1
View File
@@ -1257,7 +1257,7 @@ int MatExpr::type() const
if( isInitializer(*this) )
return a.type();
if( isCmp(*this) )
return CV_8U;
return CV_MAKETYPE(CV_8U, a.channels());
return op ? op->type(*this) : -1;
}