Generalized Gamut Mapping using Image Derivative Structures for Color Constancy