1 | initial version |
saturate_cast is needed:
dst.at<uchar>(i,j) = saturate_cast<uchar>(scalarColor.val[0]*coeffs0[2] + scalarColor.val[1]*coeffs0[1] + scalarColor.val[2]*coeffs0[0]);
2 | No.2 Revision |
saturate_cast is needed:
dst.at<uchar>(i,j) = saturate_cast<uchar>(scalarColor.val[0]*coeffs0[2] + scalarColor.val[1]*coeffs0[1] + scalarColor.val[2]*coeffs0[0]);