Physico-Mathematical Aspects of the Gestalt-Problem