Grammatical Methods In Computer Vision