영상의 산술 연산

$dst(x, y) = saturate(src1(x, y) + src2(x, y))$

Mat src1 = imread("aero2.bmp", IMREAD_GRAYSCALE);
Mat src2 = imread("camera.bmp", IMREAD_GRAYSCALE);

Mat dst;
add(src1, src2, dst);
Mat src1 = imread("aero2.bmp", IMREAD_GRAYSCALE);
Mat src2 = imread("camera.bmp", IMREAD_GRAYSCALE);

Mat dst = src1 + src2;

$dst(x, y) = saturate(\alpha \cdot src1(x, y) + \beta \cdot src2(x, y))$

$dst(x, y) = saturate(\alpha \cdot src1(x, y) + \beta \cdot src2(x, y) + \gamma)$

Mat src1 = imread("aero2.bmp", IMREAD_GRAYSCALE);
Mat src2 = imread("camera.bmp", IMREAD_GRAYSCALE);

Mat dst;
addWeighted(src1, 0.5, src2, 0.5, 0, dst);

$dst(x, y) = saturate(src1(x, y) - src2(x, y))$

https://drive.google.com/uc?id=1ykz_XMxS8yR3_9wM-CIMNYXxg9YKl_ZF

$dst(x, y) = saturate(|src1(x, y) - src2(x, y)|)$