Density estimation for color images