Morphology

ApplyMorphology function added, related test script added