Showing posts with label blending image. Show all posts
Showing posts with label blending image. Show all posts

Thursday, November 14, 2019

[OpenCV Tutorial] $3 - Adding (blending) two images using OpenCV

Goal

In this tutorial you will learn:
  • what is linear blending and why it is useful;
  • how to add two images using cv::addWeighted

Theory

Note
From our previous tutorial, we know already a bit of Pixel operators. An interesting dyadic (two-input) operator is the linear blend operator:
g(x)=(1−α)f0(x)+αf1(x)

By varying α from 0→1 this operator can be used to perform a temporal cross-dissolve between two images or videos, as seen in slide shows and film productions (cool, eh?)

Back to Top