STY: Minor cleanup.
Merge pull request #452 from stefanv/jni-morphology-functions

STY: Minor cleanup on small object removal.