Skip to content

Latest commit

 

History

History
89 lines (67 loc) · 3 KB

File metadata and controls

89 lines (67 loc) · 3 KB

Masking

  1. Masking is an image processing method in which we define a small 'image piece' and use it to modify a larger image.
  2. 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.
  3. Masking an area of an image protects that area from being altered by changes made to the rest of the image.
  4. Masking is the process that is underneath many types of image processing, including edge detection, motion detection, and noise reduction
  5. Usually binary masks are used (BLACK and WHITE)
  6. Generally, BLACK portions are those which are undesired and want to be removed/ masked off
  7. Generally, WHITE portions are those which are desired and want to be retained in the original image

Illustrations

Input Images

Bitwise AND

Bitwise OR

Bitwise XOR

Bitwise NOT

  1. Image1 - Bitwise NOT/inversion of Input Image 1
  2. Image2 - Bitwise NOT/inversion of Input Image 2


Expected Results

MASKING
Image1 Image2
Image1 Image1
ROI Gray
Image1 Image1
Mask Mask_Inv
Image1 Image1
BG FG
Image1 Image1
dst
Image1