Equalize histogram for colored image