- Masking is an image processing method in which we define a small 'image piece' and use it to modify a larger image.
- When talking about editing and processing images the term 'masking' refers to the practice of using a mask to protect a specific area of an image, just as you would use masking tape when painting your house.
- Masking an area of an image protects that area from being altered by changes made to the rest of the image.
- Masking is the process that is underneath many types of image processing, including edge detection, motion detection, and noise reduction
- Usually binary masks are used (BLACK and WHITE)
- Generally, BLACK portions are those which are undesired and want to be removed/ masked off
- Generally, WHITE portions are those which are desired and want to be retained in the original image
- Image1 - Bitwise NOT/inversion of Input Image 1
- Image2 - Bitwise NOT/inversion of Input Image 2
MASKING | |
---|---|
Image1 | Image2 |
ROI | Gray |
Mask | Mask_Inv |
BG | FG |
dst | |