Mathematical morphology module developing