Spatially adaptive morphological image filtering using intrinsic structuring elements