Some problems arising in realization of a Gestalt-approach to procession of pictures by a computer are dealt with. An algorythm is described based on the main principle of the Gestalt-approach to one- and two-dimensional pictures: non-local nature of objects' detection. Generalization of principles underlying the algorythm makes it possible to analyze in a constructive way some traditional problems of Gestalt-psychology (perception of point sets, cluster analysis, etc.) and specify links between Gestalt-psychology and the theory of systems.