سلام.
می خواستم 2 تا Mat با 2 نوع متفاوت را با هم جمع کنم ولی error میده چطور باید اینکارو انجام بدم؟
const Mat A( 100, 200, CV_32FC1, Scalar::all(50) );
const Mat B( A.size(), CV_8UC1, Scalar::all(100) );
Mat C( A.size(), A.type() );
C = A + B;
خطایی که میده.
OpenCV Error: Bad argument (When the input arrays in add/subtract/multiply/divide
functions have different types, the output array type must be explicitly specified)