From laser physics to synergetics and pattern recognition