A semiotic model of visual perception