摘要 |
A method is provided for gamut clipping with preprocessing enabled as software instructions stored in a computer-readable medium and executable by a processor. The instructions provide a color in a color space defined by at least three attributes. If the color lies outside a gamut boundary in the first color space, a distance is measured from the color to the gamut boundary. In response to the measured distance, a weight is calculated for an attribute of the color. Then, it is determined if the attribute of the color is to be shifted. If so, an attribute shift amount is derived. The attribute shift amount of the color is modified by applying the weighting. The attribute of the first color is shifted by the weighted attribute shift amount, creating a post-processed color. The post-processed color is then clipped. |