Add two images
img = add(img1, img2[, mask[, dtype]])
Image (Mat).
Optional mask image (Mat).
Optional depth of the output image.
Output image (Mat).
add computes the sum of two images pixel per pixel.
add
scicv_Init(); img1 = imread(getSampleImage("lena.jpg")); img2 = new_Mat(size(img1, 'c'), size(img1, 'r'), CV_8UC3, 40); img_out = add(img1, img2); matplot(img_out); delete_Mat(img1); delete_Mat(img2); delete_Mat(img_out);