In AI the process of perception is studied as a set operations. A visual scene may be encoded by sensors and represented as matrix of intensity values. These are processed by detectors that search for primitive picture components like line segments simple curves corners etc. These in turn are processed to infer information regarding the objects in the scene. The ultimate aim is to represent the scene by suitable model. This model may be a high level description of the scene like a hill with a tree on top.