"RGB" extracts red, green and blue colors from the pixel with bit operation.
Encode a pixel to a vector of intergers.