Vision as a three-stage process: encoding, selection, and decoding