adaptive morphology operations