Processing of optical data by organisms and by machines