Chroma adjustment method, electronic device and readable storage medium
AssigneeGuangdong Oppo Mobile Telecommunications Corp., Ltd.
InventorRai Shu
Life of this patent
Estimating the term…
Abstract
A chroma adjustment method, an electronic device and a non-transitory computer-readable storage medium are provided. The input color data is converted into preset color data in a preset color space. The preset color data is processed to determine a maximum chroma value among multiple chroma values for each of which the number of corresponding pixels is a peak in a chroma statistical graph, and a maximum luminance value of pixels corresponding to the maximum chroma value is determined. A chroma adjustment coefficient is obtained, according to the maximum chroma value, the maximum luminance value and a chroma mapping curve. The input color data is adjusted based on the chroma adjustment coefficient, to obtain output color data.
Claims19
A chroma adjustment method, comprising:
- converting input color data into preset color data in a preset color space;
- processing the preset color data to determine a maximum chroma value among a plurality of chroma values for each of which a number of corresponding pixels is a peak in a chroma statistical graph, and determining a maximum luminance value of pixels corresponding to the maximum chroma value;
- obtaining a chroma adjustment coefficient, according to the maximum chroma value, the maximum luminance value and a chroma mapping curve;
- and
- adjusting, based on the chroma adjustment coefficient, the input color data to obtain output color data;
- wherein the method further comprises:
- determining, as a peak, the number of corresponding pixels of a chroma value, in response to the number of corresponding pixels of the chroma value being greater than both numbers of corresponding pixels of two chroma values adjacent to the chroma value, thereby determining the plurality of chroma values for each of which the number of corresponding pixels is the peak in the chroma statistical graph.
An electronic device, comprising one or more processors, wherein the one or more processors are configured to:
- convert input color data into preset color data in a preset color space;
- process the preset color data to determine a maximum chroma value among a plurality of chroma values for each of which a number of corresponding pixels is a peak in a chroma statistical graph, and determine a maximum luminance value of pixels corresponding to the maximum chroma value;
- obtain a chroma adjustment coefficient, according to the maximum chroma value, the maximum luminance value and a chroma mapping curve;
- and
- adjust, based on the chroma adjustment coefficient, the input color data to obtain output color data;
- wherein the one or more processors are further configured to:
- determine, as a peak, the number of corresponding pixels of a chroma value, in response to the number of corresponding pixels of the chroma value being greater than both numbers of corresponding pixels of two chroma values adjacent to the chroma value, thereby determining the plurality of chroma values for each of which the number of corresponding pixels is the peak in the chroma statistical graph.
A non-transitory computer-readable storage medium storing a computer program thereon, wherein the computer program, when being executed by one or more processors, causes operations of a chroma adjustment method be implemented, and the method comprises:
- converting input color data into preset color data in a preset color space processing the preset color data to determine a maximum chroma value among a plurality of chroma values for each of which a number of corresponding pixels is a peak in a chroma statistical graph, and determining a maximum luminance value of pixels corresponding to the maximum chroma value;
- obtaining a chroma adjustment coefficient, based on the maximum chroma value, the maximum luminance value and a chroma mapping curve;
- and
- adjusting, based on the chroma adjustment coefficient, the input color data to obtain output color data;
- wherein the method further comprises:
- determining, as a peak, the number of corresponding pixels of a chroma value, in response to the number of corresponding pixels of the chroma value being greater than both numbers of corresponding pixels of two chroma values adjacent to the chroma value, thereby determining the plurality of chroma values for each of which the number of corresponding pixels is the peak in the chroma statistical graph.
Dependencies are inferred from the claim text.