Color adjustment method, color adjustment device, electronic device and computer-readable storage medium
AssigneeZhejiang Uniview Technologies Co., Ltd.
InventorYuguang Yuan
Life of this patent
Estimating the term…
Abstract
Provided are a color adjustment method, a color adjustment device, an electronic device, and a computer-readable storage medium. The method includes: determining an adjustment area corresponding to an edge pixel, where the adjustment area includes multiple pixels; acquiring color information of the edge pixel and color information of each similar pixel in the adjustment area, where a pixel type of the similar pixel is consistent with a pixel type of the edge pixel; and adjusting a parameter value of the edge pixel according to the color information of the each similar pixel, the color information of the edge pixel, and a brightness parameter of the edge pixel.
Claims20
A color adjustment method, comprising:
- determining an adjustment area corresponding to an edge pixel, wherein the adjustment area comprises a plurality of similar pixels;
- acquiring color information of the edge pixel and acquiring color information of each of the plurality of similar pixels in the adjustment area, wherein each of the plurality of similar pixels and the edge pixel have a same pixel display color;
- and
- adjusting a parameter value of the edge pixel according to the color information of each of the plurality of similar pixels, the color information of the edge pixel, and a brightness parameter of the edge pixel;
- wherein acquiring the color information of each of the plurality of similar pixels in the adjustment area comprises:
- selecting the plurality of similar pixels based on the plurality of similar pixels having the same pixel display color as the edge pixel;
- determining whether a parameter value of each of the plurality of similar pixels is greater than a saturation parameter value;
- and
- for each of the plurality of similar pixels in which it is determined that the parameter value of the similar pixel is not greater than the saturation parameter value, performing a calculation according to the parameter value of the similar pixel, a brightness parameter of the similar pixel, and a black level parameter of an image to which the similar pixel belongs, to obtain the color information of the similar pixel.
An electronic device, comprising:
- at least one processor;
- and
- a memory, which is configured to store at least one program,
- wherein when executed by the at least one processor, the at least one program enables the at least one processor to perform the following:
- determining an adjustment area corresponding to an edge pixel, wherein the adjustment area comprises a plurality of similar pixels;
- acquiring color information of the edge pixel and acquiring color information of each of the plurality of similar pixels in the adjustment area, wherein each of the plurality of similar pixels and the edge pixel have a same pixel display color;
- and
- adjusting a parameter value of the edge pixel according to the color information of each of the plurality of similar pixels, the color information of the edge pixel, and a brightness parameter of the edge pixel;
- wherein acquiring the color information of each of the plurality of similar pixels in the adjustment area comprises:
- selecting the plurality of similar pixels based on the plurality of similar pixels having the same pixel display color as the edge pixel;
- determining whether a parameter value of each of the plurality of similar pixels is greater than a saturation parameter value;
- and
- for each of the plurality of similar pixels in which it is determined that the parameter value of the similar pixel is not greater than the saturation parameter value, performing a calculation according to the parameter value of the similar pixel, a brightness parameter of the similar pixel, and a black level parameter of an image to which the similar pixel belongs, to obtain the color information of the similar pixel.
A non-transitory computer-readable storage medium, which is configured to store computer instructions that, when executed by a processor, perform the following:
- determining an adjustment area corresponding to an edge pixel, wherein the adjustment area comprises a plurality of similar pixels;
- acquiring color information of the edge pixel and acquiring color information of each of the plurality of similar pixels in the adjustment area, wherein each of the plurality of similar pixels and the edge pixel have a same pixel display color;
- and
- adjusting a parameter value of the edge pixel according to the color information of each of the plurality of similar pixels, the color information of the edge pixel, and a brightness parameter of the edge pixel;
- wherein acquiring the color information of each of the plurality of similar pixels in the adjustment area comprises:
- selecting the plurality of similar pixels based on the plurality of similar pixels having the same pixel display color as the edge pixel;
- determining whether a parameter value of each of the plurality of similar pixels is greater than a saturation parameter value;
- and
- for each of the plurality of similar pixels in which it is determined that the parameter value of the similar pixel is not greater than the saturation parameter value, performing a calculation according to the parameter value of the similar pixel, a brightness parameter of the similar pixel, and a black level parameter of an image to which the similar pixel belongs, to obtain the color information of the similar pixel.
Dependencies are inferred from the claim text.