employer cover photo
employer logo

Frage im Vorstellungsgespräch bei Oculus VR

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

Antwort im Vorstellungsgespräch

Anonym

18. Jan. 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.