This experiment illustrates the combination of two images by selecting pixels of either image following a chessboard pattern rule.
--
Image A -------------------- Image B
--
Image C (chessbord pattern) -------- Zoomed portion
To see how to build the chessboard pattern press here.
The Gating operator combines A and B using C as a selector.
The output image has pixels from image A when the pixel value of the gating image C is 1, and has pixels from image B otherwise.