employer cover photo
employer logo

Domanda di colloquio di Oculus VR

How would you send an encoded message in an image. First encode it, then write code to decode it.

Risposta di colloquio

Anonimo

18 gen 2016

I would always start with the simplest and fairly obvious answer; I would put the message to least significant bit layer of the image. The receiving end would only read the least significant bit layer of the image accordingly to decode the message. The least significant bit is invisible to the human eye. Test yourself by painting a rectangle with two reds next to each other of values (255,0,0) and (254,0,0). See if you can tell the difference.