1. A computer implemented method for adaptive spatial gamut mapping of a color image in an image processing system, the method comprising: receiving, from a memory, an input color image having a plurality of pixels; applying a color gamut-mapping algorithm to the input color image to produce a gamut-mapped color image; computing a difference between a selected channel of the input color image and the gamut-mapped color image to produce a difference image; computing a local measure of complexity for a current pixel in the difference image; using the computed local measure of complexity to obtain at least one parameter value used by a spatial bilateral filter; applying the spatial bilateral filter, using the obtained parameter value, to the current pixel of the difference image to produce a modified pixel in a modified difference image; and calculating a modified gamut-mapped color image from the modified difference image and the gamut-mapped color image.