Figure 1 Boolean truth table for binary images

a  b  a AND b  a OR b  a XOR b  a NAND b  a NOR b  NOT a
0  0     0        0       0         1        1       1
0  1     0        1       1         1        0       1
1  0     0        1       1         1        0       0
1  1     1        1       0         0        0       0