Medialness-Based Shape Invariant Feature Transformation