Provided that we could find the faces in the image, we may construct a mask to show only the faces in the image.Īnother image masking application you’ll encounter is alpha blending and transparency (e.g., in this guide on Creating GIFs with OpenCV). The only part of the image we are interested in finding and describing is the parts of the image that contain faces - we simply don’t care about the rest of the image’s content. Put simply a mask allows us to focus only on the portions of the image that interests us.įor example, let’s say that we were building a computer vision system to recognize faces. This allows us to extract regions from images that are of completely arbitrary shape. My previous guide discussed bitwise operations, a very common set of techniques used heavily in image processing.Īnd as I hinted previously, we can use both bitwise operations and masks to construct ROIs that are non-rectangular.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |