Ask Your Question

Revision history [back]

Usually mask is used to limit area of image for some operation. Like copying fragment of original image, or applying some math operation.

In this case bitwise operation is used to not alter image itself, but to extract only part of it (mask) and copy to res variable.