Types of Logic Gates as portrayed by Trick Or Treat Signs! : r/coolguides

AndTakes 2 binary inputs and acts as an AND logic gate.
And MultiTakes any number of binary inputs and acts as an AND logic gate.
OrTakes 2 binary inputs and acts as an OR logic gate.
Or MultiTakes any number of binary inputs and acts as an OR logic gate.
XorTakes 2 binary inputs and acts as an XOR logic gate.
Xor MultiTakes any number of binary inputs and acts as an XOR logic gate.
SubtractSubtracts layer B from layer A. Can be constructed from other logic gates by A AND B = C and then A XOR C.
EquivalenceActs as an XNOR gate for 2 binary inputs.
A yellow and black backgroundDescription automatically generatedA yellow background with red spotsDescription automatically generated
HavingKeeps only objects having both input layers.
A yellow and green spots on a black backgroundDescription automatically generatedA red and yellow lightDescription automatically generated with medium confidence
.Not HavingKeeps only objects that do not touch the other binary layer.
A yellow and green spots on a black backgroundDescription automatically generatedA yellow and red lightDescription automatically generated with medium confidence
First Not EmptyTakes 2 binary layers and returns A if it is not empty, or B if A is empty. Useful if A is used as an ROI and may or may not be empty.
InvertInverts the input binary layer. Same as Complement from binary processing.
Detection ClassifierTakes 2 binary inputs: ground truth (light blue here, made using a more sensitive segmentation) and predicted (yellow here). Classifies predicted layer into true positives (green), false positives (blue), and false negatives (red).
A yellow and blue spots on a black backgroundDescription automatically generatedA close up of a plantDescription automatically generated
And (3D)Applies an AND logical gate to 2 3D binary layers.
Or (3D)Applies an OR logical gate to 2 3D binary layers.
Xor (3D)Applies an XOR logical gate to 2 3D binary layers.
Subtract (3D)Subtracts 3D binary layer B from 3D binary layer A.
Equivalence (3D)Applies an XNOR logical gate to 2 3D binary layers.
Having (3D)Removes objects in 3D layer A that are not touching 3D layer B.
.Not Having (3D)Removes objects in 3D layer A that are touching 3D layer B.
Invert (3D)Inverts a 3D binary layer.