0
$\begingroup$

What's the difference between cv::subtract and operator - in OpenCV?

Mat original = imread...;
Mat smoothed, difference, result;

smoothed - original image processed with Convolution with Gaussian kernel;

1)

difference = original - smoothed;

2)

cv::subtract(smoothed, original, difference);
$\endgroup$
1
$\begingroup$

Check this link, both are same.

subtract operation

$\endgroup$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.