Self-adaptive algorithm of impulsive noise reduction in color images