Scientists have developed a way of ‘decoding’ someone’s brain activity to determine what they are looking at.