Set (binary image) operations
Basic operations from set theory: AND, OR, XOR, SUB (complement), NOT:
Input images - first, second:

AND:

OR:

XOR:

SUB:

NOT first

Basic operations from set theory: AND, OR, XOR, SUB (complement), NOT:
Input images - first, second:

AND:

OR:

XOR:

SUB:

NOT first
