Minor cleanup of image measure and Gauss morphology functions