A mathematical model of a typical problem of pattern recognition is described. Its characteristic property is that it pays special attention to a priori information concerning the local structure of the object under investigation. Algorithmic backgrounds (using convex analytic tools) of the suggested approach are presented.