Adaptive morphology structural element construction algorithm based on local pixel density and symmetry