Masking Images
Learn to mask images in OpenCV.
We'll cover the following...
Masking is another essential tool used to edit images in OpenCV. Masking is an image editing technique used to highlight a specific part of an image. It’s used to combine different images, as well as highlight the required portion in the combined images.
We can use bitwise operators to mask images. This lesson will explain how the process is carried out.
To start off, we create a blank image using the Mat::zeros()
function of the OpenCV library. We’ll create the mask in a ...