The implementation of some functions developed by the SCOPIA research group for image processing are available here.
SOFT COLOR MORPHOLOGY
The Soft Color Morphology is an extension of fuzzy mathematical morphology to multivariate images. We process CIELab-encoded natural images with operators that provide good visual results. The soft color erosion and dilation maintain, respectively, the notions of shrinking and enlarging objects.
The code can be downloaded HERE.