摘要 |
The present disclosure generally relates a method and device for processing color image data. The method comprises a color gamut mapping in the course of which a color image data (CID), represented by a first 2D point (A) belonging to a representation of the original color gamut in a chromaticity diagram, is mapped to a mapped color image data (MCID) of a target color gamut (TCG), the mapped color image data of the target color gamut (TCG) being represented by a second 2D point (B) belonging to a representation of the target color gamut (TCG) in the chromaticity diagram, wherein the color gamut mapping comprises: - obtaining (100) a representation of a preserved color gamut (PCG) in the chromaticity diagram by applying an homothety either to the original color gamut or to the target color gamut; - checking (110) if said first 2D point is located outside the representation of the preserved color gamut (PCG); and - when said first 2D point is located outside the representation of the preserved color gamut (PCG), moving (300) said first 2D point so that it belongs to the representation of the target color gamut (TCG), the second 2D point being then equal to the moved first 2D point. The disclosure relates also to a method and device for encoding/decoding color image data. |