CN106303154B - A kind of information processing method and electronic equipment - Google Patents
A kind of information processing method and electronic equipment Download PDFInfo
- Publication number
- CN106303154B CN106303154B CN201510325291.6A CN201510325291A CN106303154B CN 106303154 B CN106303154 B CN 106303154B CN 201510325291 A CN201510325291 A CN 201510325291A CN 106303154 B CN106303154 B CN 106303154B
- Authority
- CN
- China
- Prior art keywords
- data
- sub
- determining
- pixel point
- pixel
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
- 230000010365 information processing Effects 0.000 title abstract description 17
- 238000003672 processing method Methods 0.000 title abstract description 16
- 238000000034 method Methods 0.000 abstract description 39
- 238000012512 characterization method Methods 0.000 abstract 1
- 238000000605 extraction Methods 0.000 description 10
- 230000006870 function Effects 0.000 description 10
- 239000000284 extract Substances 0.000 description 6
- 238000010586 diagram Methods 0.000 description 5
- 238000005516 engineering process Methods 0.000 description 5
- 239000003086 colorant Substances 0.000 description 4
- 230000002708 enhancing effect Effects 0.000 description 4
- 230000008878 coupling Effects 0.000 description 3
- 238000010168 coupling process Methods 0.000 description 3
- 238000005859 coupling reaction Methods 0.000 description 3
- 230000000694 effects Effects 0.000 description 3
- 244000025254 Cannabis sativa Species 0.000 description 2
- 241000220317 Rosa Species 0.000 description 2
- 238000004891 communication Methods 0.000 description 2
- 238000010422 painting Methods 0.000 description 2
- 238000006467 substitution reaction Methods 0.000 description 2
- 230000003287 optical effect Effects 0.000 description 1
- 239000013074 reference sample Substances 0.000 description 1
- 238000012216 screening Methods 0.000 description 1
Landscapes
- Image Processing (AREA)
- Facsimile Image Signal Circuits (AREA)
Abstract
The embodiment of the invention discloses a kind of information processing method and electronic equipments, wherein the described method includes: extracting the pixel for meeting the first pre-defined rule in the first image when getting the first image, obtaining the first pixel;Determine corresponding first data of the first pixel, the first data characterization is the first attribute of pixel;Determine the First Eigenvalue of the first data;According to the First Eigenvalue, the first adjustment is carried out to the first data.It can simply and effectively realize adjustment of the image-signal processor ISP to image brightness, saturation degree, tone etc..
Description
Technical Field
The present invention relates to information processing technologies, and in particular, to an information processing method and an electronic device.
Background
In order to achieve a better image display effect, in the field of image processing, it is common to adjust a designated portion of an image in terms of brightness, saturation, hue, and the like. For example, the human face part in a human painting is subjected to color enhancement, namely, the human face becomes more ruddy; the grass in the landscape painting is subjected to saturation enhancement, so that the color of the grass becomes greener. At present, a commonly used adjustment method is mainly based on a mahalanobis distance method, that is, the color difference signals of the pixel points of the partial image are adjusted according to the distance between the color difference signals of the pixel points of the partial image and a reference sample, so as to achieve the purpose of adjustment. Among them, the mahalanobis distance formula is complicated, and the requirement for the operation of the image Signal processor isp (image Signal processor) is high. How to simply and effectively adjust brightness, saturation, hue and the like of an image is a technical problem to be solved urgently.
Disclosure of Invention
In order to solve the technical problems in the prior art, embodiments of the present invention provide an information processing method and an electronic device, which can simply and effectively implement adjustment of an ISP on brightness, saturation, hue, and the like of an image.
The technical scheme of the embodiment of the invention is realized as follows:
the embodiment of the invention provides an information processing method, which is applied to electronic equipment, and when a first image is acquired, the method comprises the following steps:
extracting pixel points meeting a first preset rule in the first image to obtain first pixel points;
determining first data corresponding to the first pixel point, wherein the first data is characterized as a first attribute of the pixel point;
determining a first characteristic value of the first data;
and performing first adjustment on the first data according to the first characteristic value.
In the foregoing solution, the extracting pixel points satisfying a first predetermined rule from the first image to obtain first pixel points includes:
determining first data corresponding to each pixel point in a first image;
extracting pixel points of the first data in a first preset range;
and determining pixel points of the extracted first data within a first preset range as the first pixel points.
In the above scheme, the first data is represented by a first predetermined number of bits,
correspondingly, the determining the first characteristic value of the first data includes:
changing the first data to obtain third data, wherein the third data is represented by a second predetermined digit, and the first predetermined digit is different from the second predetermined digit;
determining first information corresponding to the third data in a first predetermined relationship;
determining second information corresponding to the first information in a second predetermined relationship;
determining that the second information is characterized by the first feature value.
In the foregoing solution, the performing a first adjustment on the first data according to the first characteristic value includes:
the first data at least comprises first subdata and second subdata;
the first characteristic value at least comprises a first sub coefficient, a second sub coefficient, a third sub coefficient and a fourth sub coefficient;
performing first operation on the first subdata and the first sub-coefficient and the third sub-coefficient respectively to obtain a first sub-result and a third sub-result;
performing first operation on the second subdata, the second sub-coefficient and the fourth sub-coefficient respectively to obtain a second sub-result and a fourth sub-result;
determining the sum of the first sub-result and the second sub-result as an adjustment result of the first sub-data;
and determining the sum of the third sub-result and the fourth sub-result as the adjustment result of the second sub-data.
In the above scheme, the method further comprises:
determining second data corresponding to the first pixel point, wherein the second data is characterized by a second attribute of the pixel point; determining a first characteristic value of the second data; performing second adjustment on the second data according to the first characteristic value; or,
extracting pixel points meeting a second preset rule from the first pixel points to obtain second pixel points; acquiring second data corresponding to a second pixel point, wherein the second data is characterized by a second attribute of the pixel point; determining a first characteristic value of the second data; performing second adjustment on the second data according to the first characteristic value;
wherein, the first attribute is the color of the pixel point; the second attribute is the brightness of the pixel point.
In the foregoing solution, the extracting, from the first pixel points, pixel points that satisfy the second predetermined rule to obtain second pixel points includes:
extracting first pixel points of second data in a second preset range;
and determining the first pixel points of the extracted second data within the second preset range as second pixel points.
An embodiment of the present invention further provides an electronic device, where the electronic device includes:
the first extraction unit is used for extracting pixel points meeting a first preset rule in the first image to obtain first pixel points when the first image is obtained;
the first determining unit is used for determining first data corresponding to the first pixel point, and the first data is characterized by a first attribute of the pixel point;
a second determination unit configured to determine a first feature value of the first data;
the first adjusting unit is used for carrying out first adjustment on the first data according to the first characteristic value.
In the foregoing solution, the first extracting unit is configured to: determining first data corresponding to each pixel point in a first image;
extracting pixel points of the first data in a first preset range;
and determining pixel points of the extracted first data within a first preset range as the first pixel points.
In the foregoing solution, the second determining unit is configured to: the first data is represented by a first predetermined number of bits,
changing the first data to obtain third data, wherein the third data is represented by a second predetermined digit, and the first predetermined digit is different from the second predetermined digit;
determining first information corresponding to the third data in a first predetermined relationship;
determining second information corresponding to the first information in a second predetermined relationship;
determining that the second information is characterized by the first feature value.
In the foregoing solution, the first adjusting unit is further configured to:
the first data at least comprises first subdata and second subdata;
the first characteristic value at least comprises a first sub coefficient, a second sub coefficient, a third sub coefficient and a fourth sub coefficient;
performing first operation on the first subdata and the first sub-coefficient and the third sub-coefficient respectively to obtain a first sub-result and a third sub-result;
performing first operation on the second subdata, the second sub-coefficient and the fourth sub-coefficient respectively to obtain a second sub-result and a fourth sub-result;
determining the sum of the first sub-result and the second sub-result as an adjustment result of the first sub-data;
and determining the sum of the third sub-result and the fourth sub-result as the adjustment result of the second sub-data.
In the foregoing solution, the first adjusting unit is further configured to:
determining second data corresponding to the first pixel point, wherein the second data is characterized by a second attribute of the pixel point; determining a first characteristic value of the second data; performing second adjustment on the second data according to the first characteristic value; or,
extracting pixel points meeting a second preset rule from the first pixel points to obtain second pixel points; acquiring second data corresponding to a second pixel point, wherein the second data is characterized by a second attribute of the pixel point; determining a first characteristic value of the second data; performing second adjustment on the second data according to the first characteristic value;
wherein, the first attribute is the color of the pixel point; the second attribute is the brightness of the pixel point.
In the foregoing solution, the first adjusting unit is further configured to:
extracting first pixel points of second data in a second preset range;
and determining the first pixel points of the extracted second data within the second preset range as second pixel points.
The embodiment of the invention provides an information processing method and electronic equipment, wherein the method comprises the following steps: when a first image is obtained, extracting pixel points meeting a first preset rule in the first image to obtain first pixel points; determining first data corresponding to the first pixel point, wherein the first data is characterized as a first attribute of the pixel point; determining a first characteristic value of the first data; and performing first adjustment on the first data according to the first characteristic value. The adjustment of the ISP to the aspects of the brightness, the saturation, the hue and the like of the image can be simply and effectively realized.
Drawings
Fig. 1 is a schematic flow chart illustrating an implementation of a first embodiment of an information processing method according to the present invention;
FIG. 2 is a schematic flow chart illustrating an implementation of a second embodiment of the information processing method according to the present invention;
FIG. 3 is a schematic illustration of the UV color gamut provided by the present invention;
FIG. 4 is a schematic diagram of adjusting the hue of a pixel in a UV color gamut according to the present invention;
fig. 5 is a schematic structural diagram of a first embodiment of an electronic device provided in the present invention;
fig. 6 is a schematic structural diagram of an electronic device according to a second embodiment of the present invention.
Detailed Description
The preferred embodiments of the present invention will be described in detail below with reference to the accompanying drawings, and it should be understood that the preferred embodiments described below are only for the purpose of illustrating and explaining the present invention, and are not to be construed as limiting the present invention.
In the following embodiments of the information processing method and the electronic device provided by the present invention, the electronic device includes, but is not limited to: industrial control computers, personal computers, and the like, all types of computers, all-in-one computers, tablet computers, mobile phones, electronic readers, and the like. The preferred electronic device of the embodiment of the present invention is an industrial control computer or a personal computer.
Example one
The first embodiment of the information processing method provided by the invention is applied to an electronic device, and the electronic device has an ISP function or comprises an ISP. In ISP, Color Enhancement is an important component by which at least one aspect of image brightness, saturation, hue, etc. can be enhanced. Wherein, the saturation is adjusted to deepen the current color or fade the current color; the adjustment of the hue is to adjust the current color towards another color.
Fig. 1 is a schematic flow chart illustrating an implementation of a first embodiment of an information processing method according to the present invention; as shown in fig. 1, the method includes:
step 101: when a first image is obtained, extracting pixel points meeting a first preset rule in the first image to obtain first pixel points;
here, the first image may be an image acquired by an acquisition unit of the electronic device, such as a camera, an image received by the electronic device through a network, or an image pre-stored locally by the electronic device; of course, the method can also be achieved by other conceivable methods, and is not particularly limited herein. For an image, at least one of brightness, saturation, hue, etc. of a certain region in the image needs to be adjusted, such as enhanced, and other regions do not need to be adjusted. For example, for a human face image, it is necessary to perform saturation enhancement, i.e. deepening the face color, on a face region in the human face image, and make no adjustment on other regions in the image. In this step, the pixel points meeting the first predetermined rule are the pixel points needing to be adjusted in the first image, and the first pixel points are the pixel points needing to be adjusted. Of course, this embodiment also includes the case of adjusting all the pixel points of the whole image.
Step 102: determining first data corresponding to the first pixel point, wherein the first data is characterized as a first attribute of the pixel point;
in the ISP, the image may be encoded by YUV color coding, where the Y value represents the brightness, i.e. the gray level; and the U value and the V value represent the chromaticity, and the function of the U value and the V value is to describe the color and the saturation of the image and is used for representing the color of the pixel point. Here, when the first attribute is a color of the image, the first data is a U value and a V value corresponding to a pixel point of the image. When the first attribute is the brightness of the image, the first data is the Y value corresponding to the image pixel point. For a detailed description of YUV color coding, please refer to the related description, which is not repeated herein.
Step 103: determining a first characteristic value of the first data;
here, the first characteristic value is an adjusted amplitude value of the first data corresponding to the pixel point. Taking the first data as the U value and the V value corresponding to the image pixel as an example, the first feature value includes an amplitude value a adjusted for the U value and an amplitude value D adjusted for the V value, where a is 10 and D is 2.
Step 104: and performing first adjustment on the first data according to the first characteristic value.
Here, the first data is adjusted by the determined adjustment magnitude value. For example, U and V values corresponding to the pixels are U1 and V1, a is 10 and D is 2, and U is taken as an exampleE=A*U1=10U1,VE=D*V1=2V1;UEAdjusted U value, V, for the pixel pointEAnd adjusting the saturation of the pixel point by the adjusted V value of the pixel point. It should be understood by those skilled in the art that the present disclosure is only a specific example, and not intended to represent all aspects of the present disclosure.
In the foregoing scheme, a pixel point that needs to be adjusted in a first image is determined, then first data that can represent a first attribute of color and/or brightness of the pixel point is determined, an adjustment amplitude value of the first data is determined, and the first data is adjusted according to the amplitude value to obtain the pixel point that has been adjusted in color and/or brightness. Compared with the Mahalanobis distance method in the related technology, the method only needs to determine the adjustment amplitude value of the first data, and adjusts the color and/or brightness of the pixel point according to the amplitude value, complex operation is not needed, and the adjustment of the ISP on the aspects of image brightness, saturation, hue and the like can be simply and effectively realized.
Example two
The second embodiment of the information processing method provided by the invention is applied to an electronic device, and the electronic device has an ISP function or comprises an ISP. In ISP, Color Enhancement is an important component by which at least one aspect of image brightness, saturation, hue, etc. can be enhanced. Wherein, the current color is deepened or lightened by adjusting the saturation; the adjustment of the hue is to adjust the current color in the direction of another color.
FIG. 2 is a schematic flow chart illustrating an implementation of a second embodiment of the information processing method according to the present invention; as shown in fig. 2, the method includes:
step 201: when the first image is obtained, determining first data corresponding to each pixel point in the first image, extracting pixel points of the first data in a first preset range, and determining the pixel points of the extracted first data in the first preset range as the first pixel points.
In the step, the electronic equipment extracts the pixel points meeting the first preset rule in the first image to obtain further explanation of the first pixel points. The first image may be an image acquired by an acquisition unit of the electronic device, such as a camera, an image received by the electronic device through a network, or an image pre-stored locally by the electronic device; of course, the method can also be achieved by other conceivable methods, and is not particularly limited herein. For an image, at least one of brightness, saturation, hue, etc. of a certain region in the image needs to be adjusted, such as enhanced, and other regions do not need to be adjusted.
In the ISP field, since the enhancement of the saturation of the face area in the human image is performed to make the face area more ruddy, which is a common application scenario, the enhancement of the saturation of the face area in the human image is taken as an example in the step and the subsequent technical solutions. The image is coded in a YUV color coding mode, and the U, V value corresponding to each pixel point represents the color of the pixel point. Specifically, the electronic device first detects U, V values (first data) corresponding to each pixel point in the current image to obtain a color (first attribute) of each pixel point, taking the human face of the yellow race as an example, the human face color value of the yellow race is between 80 and 160 (a first predetermined range), and 80 to 130 are typical values, and a pixel point with a yellow color is extracted from all pixel points, that is, a pixel point with a U, V value capable of representing yellow is extracted and serves as the first pixel point.
Here, since U, V values of each pixel point are involved, in YUV encoding, U, V values are color difference signals, and it is necessary to introduce the lower UV color gamut. FIG. 3 is a schematic illustration of the UV color gamut provided by the present invention; such asAs shown in fig. 3, the outermost square represents the boundary of the UV color gamut, the inner side of the boundary includes different colors, such as red, orange, green, cyan, blue, purple, pink, rose, etc., which can be considered in practical applications, and the different gray areas represent different colors in the UV color gamut. In the UV color gamut, a UV coordinate system is established by taking the central point (the intersection point of two diagonal lines) of the rectangle as the origin of coordinates; in the coordinate system, a set of U, V (also (U, V)) values represents a color. The yellow human face color is located in the sector area in fig. 3, in the second quadrant of the UV coordinate system. Digital signals such as 0 and 1, or-1 and 1 are used in the ISP, so the U, V values in the color gamut each represent a color by a combination of the numbers 0 and 1, e.g., the set of values U-00001010 and V-00001001 represent the a color. In the related art, 8 bits are often used to represent U, V values, so that the color table entry in the UV color gamut is a full table entry and 28*28256 × 65536 entries. However, for ISP hardware implementation, the entries, i.e. U, V, all use 8 bits, which requires a large operation and storage space, and is a challenge for hardware resources. Therefore, in this embodiment, to reduce the occupation of the storage space and reduce the bits of the U, V values, each U, V value is represented by 6 bits according to the empirical value, which can not only represent the color represented by the value, but also save the hardware resources. In terms of ISP hardware implementation, U, V bit values corresponding to each pixel are detected, and since the face color is located in the second quadrant of the UV coordinate system, in each group U, V, U with the highest bit being 0 and V with the highest bit being 1 are extracted, and the pixel with the extracted U, V value is the pixel located in the first predetermined range, that is, the first pixel, and the foregoing process can also be regarded as a process of screening out the pixel to be adjusted from all the pixels of the current image. The first data is U, V values corresponding to the first pixel point, and the adjustment of the first data is actually an adjustment of U, V values. The first pixel point is the pixel point on the current image that needs to be adjusted for saturation, i.e., U, V.
Step 202: determining first data corresponding to the first pixel point, wherein the first data is characterized as a first attribute of the pixel point;
in the ISP, the image may be encoded by YUV color coding, where the Y value represents the brightness, i.e. the gray level; and the U value and the V value represent the chromaticity, and the function of the U value and the V value is to describe the color and the saturation of the image and is used for representing the color of the pixel point. Here, when the first attribute is a color of the image, it is determined that the first data is U values and V values corresponding to pixel points of the image. For a detailed description of YUV color coding, please refer to the related description, which is not repeated herein.
Step 203: changing the first data to obtain third data, wherein the third data is represented by a second predetermined digit, and the first predetermined digit is different from the second predetermined digit; determining first information corresponding to the third data in a first predetermined relationship; determining second information corresponding to the first information in a second predetermined relationship; determining that the second information is characterized by the first feature value.
Here, the first predetermined number of bits is 6 bits, and the second predetermined number of bits is 5 bits. The most significant bit of the 6-bit U, V (first data) is removed to yield U, V (third data) denoted by 5 bits, the change being the removal of the most significant bit of the set U, V. Specifically, after the pixel points needing to be adjusted are screened out, U, V corresponding to the pixel points needing to be adjusted are removed from the highest bit on the basis of the original 6 bits, so as to obtain U, V values expressed by 5 bits, a group of U, V values respectively expressed by 5 bits are used as indexes, and in a first predetermined relationship, the enhancement intensity information corresponding to the group of U, V values is searched, and the first predetermined relationship is provided with a corresponding relationship between each group of U, V values and the intensity information needing to be enhanced, for example, the enhancement intensity of the pixel points corresponding to a group of UV values of U-00010 and V-10011 should be the highest level one, and for example, the enhancement intensity of the pixel points corresponding to a group of UV values of U-00010 and V-10011 should be the lowest level N (N is a positive integer). After obtaining the enhancement intensity information of the pixel points corresponding to each group of U, V values, searching a first characteristic value corresponding to the enhancement intensity information by taking the enhancement intensity information as an index in a second predetermined relationship, wherein the second predetermined relationship is preset with the corresponding relationship between the enhancement intensity information and the first characteristic value, and the first characteristic value at least comprises an amplitude value A for adjusting the U value and an amplitude value D for adjusting the V value; for example, the pixel with the highest enhancement intensity has a value of 100 and D value of 200, and for example, the pixel with the lowest enhancement intensity has a value of 1 and D value of 2. Wherein the first information is the enhancement intensity information.
Step 204: and performing first adjustment on the first data according to the first characteristic value.
Here, the first data is adjusted by the determined adjustment magnitude value. For example, U and V values corresponding to the pixels are U1 and V1, a is 100 and D is 200, and U is taken as an exampleE=A*U1=100U1,VE=D*V1=200V1;UEAdjusted U value, V, for the pixel pointEAnd adjusting the saturation of the pixel point by the adjusted V value of the pixel point. It should be understood by those skilled in the art that the present disclosure is only a specific example, and not intended to represent all aspects of the present disclosure.
U, V is adjusted in a certain proportion, and the second predetermined relationship is preset with the corresponding relationship between the enhancement intensity information and the adjustment amplitude value D of the adjustment amplitude value A, V of U; in addition to this, the formula U can also be usedE=A*U1+B*V1、VEC U1+ D V1, in this case, when the first characteristic value at least includes a first sub-coefficient, a second sub-coefficient, a third sub-coefficient and a fourth sub-coefficient; performing first operation on the first subdata and the first sub-coefficient and the third sub-coefficient respectively to obtain a first sub-result and a third sub-result; performing first operation on the second subdata, the second sub-coefficient and the fourth sub-coefficient respectively to obtain a second sub-result and a fourth sub-result; determining the sum of the first sub-result and the second sub-result as an adjustment result of the first sub-data; and determining the sum of the third sub-result and the fourth sub-result as the adjustment result of the second sub-data. Wherein the first sub-coefficient is A, the second sub-coefficient is B, the third sub-coefficient is C, and the fourth sub-coefficient in the formulaThe coefficient is D. The first subdata is the U value of the pixel point before adjustment, namely U1, and the second subdata is the V value of the pixel point before adjustment, namely V1. The first operation is a multiplication operation. When the first characteristic value includes the aforementioned four sub-coefficients, the correspondence relationship between the enhancement intensity information and the adjustment amplitude values C and D of the adjustment amplitude values a and B, V of U is set in advance in the second predetermined relationship.
In a preferred embodiment of the present invention, when the saturation of some pixel points is adjusted, the brightness of the pixel points needs to be adjusted, which is implemented by the following method: determining second data corresponding to the first pixel point, wherein the second data is characterized by a second attribute of the pixel point; determining a first characteristic value of the second data; performing second adjustment on the second data according to the first characteristic value; the first attribute is the color of the pixel point; the second attribute is the brightness of the pixel point. In the YUV color coding scheme, the second data is a Y value indicating brightness, and in the first predetermined relationship, a correspondence relationship between each group of U, V values and intensity information that needs to be enhanced is set, and at the same time, intensity information that needs to be enhanced is set for the Y value corresponding to the group of U, V values, for example, the enhancement intensities of U, V, Y of pixels whose values are U ═ 00010, V ═ 10011, and Y ═ 00011 are all at the highest level and one level. In the second predetermined relationship, the corresponding relationship between the enhancement intensity information of the Y value and the first characteristic value E (the adjustment amplitude value of Y) thereof is also set correspondingly, and Y is usedEY1+ E Y1 carries out brightness enhancement on the Y1 value of the current pixel point, Y1 is the Y value of the pixel point before enhancement, and Y1 is the Y value of the pixel point before enhancementEAnd enhancing the Y value of the pixel point. The foregoing scheme can be regarded as a process of performing a second adjustment on the second data, that is, a process of adjusting brightness.
In another preferred embodiment of the present invention, while adjusting the saturation of some pixel points, the brightness of the pixel points with insufficient brightness among the pixel points can be adjusted, and the brightness of the pixel points with sufficient brightness among the pixel points is not adjusted by the following method: extracting pixel points meeting a second preset rule from the first pixel points to obtain second pixel points;acquiring second data corresponding to a second pixel point, wherein the second data is characterized by a second attribute of the pixel point; determining a first characteristic value of the second data; performing second adjustment on the second data according to the first characteristic value; the first attribute is the color of the pixel point; the second attribute is the brightness of the pixel point. Wherein, extract the pixel that satisfies the second predetermined rule in first pixel, obtain second pixel, include: extracting first pixel points of second data in a second preset range; and determining the first pixel points of the extracted second data within the second preset range as second pixel points. The second predetermined rule is: judging whether the brightness, namely the Y value, of each pixel point subjected to saturation adjustment is within a second preset range, if so, determining that the pixel points are not bright enough and needing brightness adjustment; if not, the image is considered to be bright enough, and the brightness is not required to be adjusted, so that a pixel point (second pixel point) of which the brightness is also required to be adjusted is obtained. After the Y value of the pixel point needing brightness adjustment is obtained, the enhancement intensity information of the Y value is determined in a first predetermined relation, the first characteristic value E of the Y value is determined according to the enhancement intensity information in a second predetermined relation, and the Y value is utilizedEAnd Y1+ E Y1 is used for enhancing the brightness of the Y1 value of the current pixel point. The second predetermined range may be 90-120, and other reasonable values may be adopted, which is not limited here.
In a further preferred embodiment of the present invention, while adjusting the saturation of the pixel points, the hues of the pixel points also need to be adjusted, as shown in fig. 4, in the UV coordinate system, when the original U, V values, i.e. U1 and V1, of the pixel point whose hue is to be adjusted are obtained, the original U, V value and the adjusted color (the coordinates of the pixel point in the UV color gamut are (U1, V1) also need to be obtainedE、VE) β) and after learning these data, using the formula UE=U1×cosβ+V1×(-sinβ)、VE=V1×cosβ+U1And obtaining the U, V value of the pixel point after the color tone enhancement by the xsin β.
It should be understood by those skilled in the art that the foregoing solution is described by taking saturation adjustment as a main content, and in addition, brightness adjustment or color tone adjustment may also be specifically described as a main content, and the implementation process is similar to the foregoing solution, which is not described herein again. In addition, the saturation, brightness and hue can be adjusted simultaneously, so that the image display effect is better.
In the foregoing solution, a pixel point that needs to be subjected to saturation adjustment in a first image is determined, an U, V value used for representing a color of the pixel point is obtained, enhancement intensity information corresponding to the U, V value is determined in a first predetermined relationship, an enhancement amplitude value of U and an enhancement amplitude value of V corresponding to the enhancement intensity information are determined in a second predetermined relationship, and the U, V value is correspondingly enhanced by using the determined enhancement amplitude value. Meanwhile, the enhancement intensity information corresponding to the Y value of the pixel point may also be determined by using the first predetermined relationship, and in the second predetermined relationship, the enhancement amplitude value corresponding to the enhancement intensity information is determined, so as to enhance the brightness of the pixel point. Furthermore, enhancement of the hue can also be achieved. Compared with the Mahalanobis distance method in the related technology, the method can simply and effectively realize the adjustment of the ISP on the aspects of the brightness saturation, the brightness, the hue and the like of the image, is simple and easy to implement, and can effectively save the storage and operation resources of hardware.
EXAMPLE III
The first embodiment of the information processing method provided by the invention is applied to an electronic device, and the electronic device has an ISP function or comprises an ISP. In ISP, Color Enhancement is an important component by which at least one aspect of image brightness, saturation, hue, etc. can be enhanced. Wherein, the saturation is adjusted to deepen the current color or fade the current color; the adjustment of the hue is to adjust the current color towards another color.
Fig. 5 is a schematic structural diagram of a first embodiment of an electronic device provided in the present invention; as shown in fig. 5, the electronic device further includes: a first extraction unit 501, a first determination unit 502, a second determination unit 503, and a first adjustment unit 504; wherein,
the first extraction unit 501 is configured to, when a first image is obtained, extract pixel points that meet a first predetermined rule in the first image to obtain first pixel points;
here, the first image may be an image acquired by the electronic device, specifically, the first extraction unit 501 through an acquisition unit of the electronic device, such as a camera, may also be an image received by the electronic device through a network, and may also be an image pre-stored locally by the electronic device; of course, the method can also be achieved by other conceivable methods, and is not particularly limited herein. For an image, at least one of brightness, saturation, hue, etc. of a certain region in the image needs to be adjusted, such as enhanced, and other regions do not need to be adjusted. For example, for a human face image, it is necessary to perform saturation enhancement, i.e. deepening the face color, on a face region in the human face image, and make no adjustment on other regions in the image. The electronic device, specifically the first extraction unit 501 determines that the pixel point meeting the first predetermined rule is the pixel point needing to be adjusted in the first image, and the first pixel point is the pixel point needing to be adjusted. Of course, this embodiment also includes the case of adjusting all the pixel points of the whole image.
A first determining unit 502, configured to determine first data corresponding to a first pixel point, where the first data is characterized as a first attribute of the pixel point;
in the ISP, the image may be encoded by YUV color coding, where the Y value represents the brightness, i.e. the gray level; and the U value and the V value represent the chromaticity, and the function of the U value and the V value is to describe the color and the saturation of the image and is used for representing the color of the pixel point. Here, when the first attribute is a color of an image, the electronic device, specifically, the first determining unit 502, first data is U values and V values corresponding to image pixels. When the first attribute is brightness of the image, the electronic device, specifically, the first data of the first determining unit 502 is a Y value corresponding to a pixel point of the image. For a detailed description of YUV color coding, please refer to the related description, which is not repeated herein.
A second determining unit 503, configured to determine a first feature value of the first data;
here, the first characteristic value is an adjusted amplitude value of the first data corresponding to the pixel point. Taking the first data as the U value and the V value corresponding to the image pixel as an example, the electronic device, specifically, the second determining unit 503 determines that the first feature value includes the amplitude value a adjusted to the U value and the amplitude value D adjusted to the V value, for example, a is 10, and D is 2.
The first adjusting unit 504 is configured to perform a first adjustment on the first data according to the first characteristic value.
Here, the electronic device, specifically the first adjusting unit 504, adjusts the first data by the adjustment amplitude value determined by the second determining unit 503. For example, U and V values corresponding to the pixels are U1 and V1, a is 10 and D is 2, and U is taken as an exampleE=A*U1=10U1,VE=D*V1=2V1;UEAdjusted U value, V, for the pixel pointEAnd adjusting the saturation of the pixel point by the adjusted V value of the pixel point. It should be understood by those skilled in the art that the present disclosure is only a specific example, and not intended to represent all aspects of the present disclosure.
In the foregoing scheme, a pixel point that needs to be adjusted in a first image is determined, then first data that can represent a first attribute of color and/or brightness of the pixel point is determined, an adjustment amplitude value of the first data is determined, and the first data is adjusted according to the amplitude value to obtain the pixel point that has been adjusted in color and/or brightness. Compared with the Mahalanobis distance method in the related technology, the method only needs to determine the adjustment amplitude value of the first data, and adjusts the color and/or brightness of the pixel point according to the amplitude value, complex operation is not needed, and the adjustment of the ISP on the aspects of image brightness, saturation, hue and the like can be simply and effectively realized.
Example four
The first embodiment of the information processing method provided by the invention is applied to an electronic device, and the electronic device has an ISP function or comprises an ISP. In ISP, Color Enhancement is an important component by which at least one aspect of image brightness, saturation, hue, etc. can be enhanced. Wherein, the saturation is adjusted to deepen the current color or fade the current color; the adjustment of the hue is to adjust the current color towards another color.
Fig. 6 is a schematic structural diagram of a second embodiment of an electronic device provided in the present invention; as shown in fig. 6, the electronic device further includes: a first extracting unit 601, a first determining unit 602, a second determining unit 603, and a first adjusting unit 604; wherein,
when the first image is acquired, the first extraction unit 601 determines first data corresponding to each pixel point in the first image, extracts a pixel point of the first data within a first predetermined range, and determines a pixel point of the extracted first data within the first predetermined range as the first pixel point.
The electronic device, specifically the aforementioned function of the first extraction unit 601, is used as a further explanation of the function that it can extract the pixel points satisfying the first predetermined rule in the first image, to obtain the first pixel points. The first image may be an image acquired by the first extraction unit 601 through an acquisition unit of the electronic device, such as a camera, an image received by the electronic device through a network, or an image pre-stored locally by the electronic device; of course, the method can also be achieved by other conceivable methods, and is not particularly limited herein. For an image, at least one of brightness, saturation, hue, etc. of a certain region in the image needs to be adjusted, such as enhanced, and other regions do not need to be adjusted.
In the ISP field, since the enhancement of the saturation of the face area in the human image is performed, so that the application scene that the face area becomes more ruddy is common, the enhancement of the saturation of the face area in the human image is taken as an example here and in the subsequent technical solutions. The image is coded in a YUV color coding mode, and the U, V value corresponding to each pixel point represents the color of the pixel point. Specifically, the electronic device, specifically, the first extraction unit 601 first detects U, V values (first data) corresponding to each pixel point in the current image to obtain a color (first attribute) of each pixel point, taking the human face of a yellow person as an example, the human face color value of the yellow person is between 80 and 160 (a first predetermined range), and 80 to 130 are typical values, and a pixel point whose color is yellow is extracted from all pixel points, that is, a pixel point whose color is U, V value can represent yellow is extracted, and the pixel point is used as the first pixel point.
Here, since U, V values of each pixel point are involved, in YUV encoding, U, V values are color difference signals, and it is necessary to introduce the lower UV color gamut. FIG. 3 is a schematic illustration of the UV color gamut provided by the present invention; as shown in fig. 3, the outermost square represents the boundary of the UV color gamut, the inner side of the boundary includes different colors, such as red, orange, green, cyan, blue, purple, pink, rose, etc., which can be considered in practical applications, and the different gray areas represent different colors in the UV color gamut. In the UV color gamut, a UV coordinate system is established by taking the central point (the intersection point of two diagonal lines) of the rectangle as the origin of coordinates; in the coordinate system, a set of U, V (also (U, V)) values represents a color. The yellow human face color is located in the sector area in fig. 3, in the second quadrant of the UV coordinate system. Digital signals such as 0 and 1, or-1 and 1 are used in the ISP, so the U, V values in the color gamut each represent a color by a combination of the numbers 0 and 1, e.g., the set of values U-00001010 and V-00001001 represent the a color. In the related art, 8 bits are often used to represent U, V values, so that the color table entry in the UV color gamut is a full table entry and 28*28256 × 65536 entries. However, for ISP hardware implementation, the entries, i.e. U, V, with 8 bits are all largeThe running and storage space is a challenge for hardware resources. Therefore, in this embodiment, to reduce the occupation of the storage space and reduce the bits of the U, V values, each U, V value is represented by 6 bits according to the empirical value, which can not only represent the color represented by the value, but also save the hardware resources. In terms of ISP hardware implementation, the electronic device, specifically, the first extraction unit 601 detects U, V bit values corresponding to each pixel point, and since the face color is located in the second quadrant of the UV coordinate system, in each group U, V, U with the highest bit being 0 and V with the highest bit being 1 are extracted, and a pixel point with the extracted U, V value is a pixel point located in the first predetermined range, that is, a first pixel point. The first data is U, V values corresponding to the first pixel point, and the adjustment of the first data is actually an adjustment of U, V values. The first pixel point is the pixel point on the current image that needs to be adjusted for saturation, i.e., U, V.
A first determining unit 602, configured to determine first data corresponding to a first pixel point, where the first data is characterized as a first attribute of the pixel point;
in the ISP, the image may be encoded by YUV color coding, where the Y value represents the brightness, i.e. the gray level; and the U value and the V value represent the chromaticity, and the function of the U value and the V value is to describe the color and the saturation of the image and is used for representing the color of the pixel point. Here, when the first attribute is a color of an image, the electronic device, specifically, the first determining unit 602, obtains first data, that is, U values and V values corresponding to pixel points of the image. For a detailed description of YUV color coding, please refer to the related description, which is not repeated herein.
The second determining unit 603 is configured to: the first data is represented by a first predetermined number of bits, the first data is changed to obtain third data, the third data is represented by a second predetermined number of bits, and the first predetermined number of bits is different from the second predetermined number of bits; determining first information corresponding to the third data in a first predetermined relationship; determining second information corresponding to the first information in a second predetermined relationship; determining that the second information is characterized by the first feature value.
Here, the first predetermined number of bits is 6 bits, and the second predetermined number of bits is 5 bits. The second determination unit 603 removes the highest bit of U, V (first data) of 6 bits to obtain U, V (third data) represented by 5 bits, and the change is to remove the highest bit of the group U, V. Specifically, after the first extracting unit 601 screens out the pixel points that need to be adjusted, U, V corresponding to the pixel points that need to be adjusted removes the highest bit on the basis of the original 6 bits, the second determining unit 603 obtains U, V values represented by 5 bits, a group of U, V values each represented by 5 bits is used as an index, and in a first predetermined relationship, the enhancement intensity information corresponding to the group of U, V values is searched for, and the first predetermined relationship is provided with a corresponding relationship between each group of U, V values and the intensity information that needs to be enhanced, for example, the enhancement intensity of the pixel points corresponding to a group of UV of U-10010 and V-10011 should be the highest level, and for example, the enhancement intensity of the pixel points corresponding to a group of UV of U-11110 and V-10011 should be the lowest level N (N is a positive integer). After obtaining the enhancement intensity information of the pixel points corresponding to each group of U, V values, searching a first characteristic value corresponding to the enhancement intensity information by taking the enhancement intensity information as an index in a second predetermined relationship, wherein the second predetermined relationship is preset with the corresponding relationship between the enhancement intensity information and the first characteristic value, and the first characteristic value at least comprises an amplitude value A for adjusting the U value and an amplitude value D for adjusting the V value; for example, the pixel with the highest enhancement intensity has a value of 100 and D value of 200, and for example, the pixel with the lowest enhancement intensity has a value of 1 and D value of 2. Wherein the first information is the enhancement intensity information.
The first adjusting unit 604 is configured to perform a first adjustment on the first data according to the first characteristic value.
Here, the first adjusting unit 604 adjusts the first data by the adjustment magnitude value determined by the first determining unit 603. For example, the U value and the V value corresponding to a pixel are U1 and V1, where a is 10For example, when D is 200, the first adjusting unit 604 uses UE=A*U1=100U1,VEAdjusting the U, V value by D × V1 — 200V 1; u shapeEAdjusted U value, V, for the pixel pointEAnd adjusting the saturation of the pixel point by the adjusted V value of the pixel point. It should be understood by those skilled in the art that the present disclosure is only a specific example, and not intended to represent all aspects of the present disclosure.
U, V is adjusted in a certain proportion, and the second predetermined relationship is preset with the corresponding relationship between the enhancement intensity information and the adjustment amplitude value D of the adjustment amplitude value A, V of U; besides, the first adjusting unit 604 can also utilize the formula UE=A*U1+B*V1、VEC U1+ D V1, in this case, when the first characteristic value at least includes a first sub-coefficient, a second sub-coefficient, a third sub-coefficient and a fourth sub-coefficient; the first adjusting unit 604 is configured to perform a first operation on the first sub-data and the first sub-coefficient and the third sub-coefficient respectively to obtain a first sub-result and a third sub-result; performing first operation on the second subdata, the second sub-coefficient and the fourth sub-coefficient respectively to obtain a second sub-result and a fourth sub-result; determining the sum of the first sub-result and the second sub-result as an adjustment result of the first sub-data; and determining the sum of the third sub-result and the fourth sub-result as the adjustment result of the second sub-data. The first sub-coefficient is a, the second sub-coefficient is B, the third sub-coefficient is C, and the fourth sub-coefficient is D in the formula. The first subdata is the U value of the pixel point before adjustment, namely U1, and the second subdata is the V value of the pixel point before adjustment, namely V1. The first operation is a multiplication operation. When the first characteristic value includes the aforementioned four sub-coefficients, the correspondence relationship between the enhancement intensity information and the adjustment amplitude values C and D of the adjustment amplitude values a and B, V of U is set in advance in the second predetermined relationship.
In a preferred embodiment of the present invention, the first adjusting unit 604 is further configured to adjust the saturation of some pixels and the brightness of the pixels, for example, by adjusting the saturation of some pixelsThe following method is realized: the first adjusting unit 604 determines second data corresponding to the first pixel point, where the second data is characterized by a second attribute of the pixel point; determining a first characteristic value of the second data; performing second adjustment on the second data according to the first characteristic value; the first attribute is the color of the pixel point; the second attribute is the brightness of the pixel point. In the YUV color coding scheme, the second data is a Y value indicating brightness, and in the first predetermined relationship, a correspondence relationship between each group of U, V values and intensity information that needs to be enhanced is set, and at the same time, intensity information that needs to be enhanced is set for the Y value corresponding to the group of U, V values, for example, the enhancement intensities of U, V, Y of pixels whose values are U ═ 00010, V ═ 10011, and Y ═ 00011 are all at the highest level and one level. In the second predetermined relationship, the corresponding relationship between the enhancement intensity information of the Y value and the first characteristic value E (the adjustment amplitude value of Y) thereof is also set correspondingly, and Y is usedEY1+ E Y1 carries out brightness enhancement on the Y1 value of the current pixel point, Y1 is the Y value of the pixel point before enhancement, and Y1 is the Y value of the pixel point before enhancementEAnd enhancing the Y value of the pixel point. The foregoing scheme can be regarded as a process of performing a second adjustment on the second data, that is, a process of adjusting brightness.
In another preferred embodiment of the present invention, the first adjusting unit 604 is further configured to adjust the saturation of some pixel points, and at the same time, adjust the brightness of pixels with insufficient brightness among the pixel points, and adjust the brightness of pixels with insufficient brightness among the pixel points without brightness, where the brightness is adjusted by the following method: extracting pixel points meeting a second preset rule from the first pixel points to obtain second pixel points; the first adjusting unit 604 is configured to obtain second data corresponding to a second pixel point, where the second data is represented by a second attribute of the pixel point; determining a first characteristic value of the second data; performing second adjustment on the second data according to the first characteristic value; the first attribute is the color of the pixel point; the second attribute is the brightness of the pixel point. Wherein, extract the pixel that satisfies the second predetermined rule in first pixel, obtain second pixel, include: extracting first pixels of second data within a second predetermined rangePoint; and determining the first pixel points of the extracted second data within the second preset range as second pixel points. The second predetermined rule is: the first adjusting unit 604 determines whether the brightness, i.e., the Y value, of each pixel point that has undergone saturation adjustment is within a second predetermined range, and if so, it is determined that the brightness is not high enough and brightness adjustment is required; if not, the image is considered to be bright enough, and the brightness is not required to be adjusted, so that a pixel point (second pixel point) of which the brightness is also required to be adjusted is obtained. After the Y value of the pixel point needing brightness adjustment is obtained, the enhancement intensity information of the Y value is determined in a first predetermined relationship, the first characteristic value E of the Y value is determined according to the enhancement intensity information in a second predetermined relationship, and the first adjustment unit 604 utilizes the Y valueEAnd Y1+ E Y1 is used for enhancing the brightness of the Y1 value of the current pixel point. The second predetermined range may be 90-120, and other reasonable values may be adopted, which is not limited here.
In a further preferred embodiment of the present invention, the first adjusting unit 604 is further configured to adjust the saturation of the pixel points and also need to adjust the hues of the pixel points, as shown in fig. 4, in the UV coordinate system, when the original U, V values, i.e. U1 and V1, of the pixel point whose hue is desired to be adjusted are obtained, the original U, V value and the adjusted color (the coordinates of the pixel point in the UV color gamut are (U1) and (V1) need to be obtainedE、VE) β) and after learning these data, using the formula UE=U1×cosβ+V1×(-sinβ)、VE=V1×cosβ+U1And obtaining the U, V value of the pixel point after the color tone enhancement by the xsin β.
It should be understood by those skilled in the art that the foregoing solution is described by taking saturation adjustment as a main content, and in addition, brightness adjustment or color tone adjustment may also be specifically described as a main content, and the implementation process is similar to the foregoing solution, which is not described herein again. In addition, the saturation, brightness and hue can be adjusted simultaneously, so that the image display effect is better.
In the foregoing solution, a pixel point that needs to be subjected to saturation adjustment in a first image is determined, an U, V value used for representing a color of the pixel point is obtained, enhancement intensity information corresponding to the U, V value is determined in a first predetermined relationship, an enhancement amplitude value of U and an enhancement amplitude value of V corresponding to the enhancement intensity information are determined in a second predetermined relationship, and the U, V value is correspondingly enhanced by using the determined enhancement amplitude value. Meanwhile, the enhancement intensity information corresponding to the Y value of the pixel point may also be determined by using the first predetermined relationship, and in the second predetermined relationship, the enhancement amplitude value corresponding to the enhancement intensity information is determined, so as to enhance the brightness of the pixel point. Furthermore, enhancement of the hue can also be achieved. Compared with the Mahalanobis distance method in the related technology, the method can simply and effectively realize the adjustment of the ISP on the aspects of the brightness saturation, the brightness, the hue and the like of the image, is simple and easy to implement, and can effectively save the storage and operation resources of hardware.
In the several embodiments provided in the present application, it should be understood that the disclosed apparatus and method may be implemented in other ways. The above-described device embodiments are merely illustrative, for example, the division of the unit is only a logical functional division, and there may be other division ways in actual implementation, such as: multiple units or components may be combined, or may be integrated into another system, or some features may be omitted, or not implemented. In addition, the coupling, direct coupling or communication connection between the components shown or discussed may be through some interfaces, and the indirect coupling or communication connection between the devices or units may be electrical, mechanical or other forms.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, that is, may be located in one place, or may be distributed on a plurality of network units; some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, all the functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may be separately regarded as one unit, or two or more units may be integrated into one unit; the integrated unit can be realized in a form of hardware, or in a form of hardware plus a software functional unit.
Those of ordinary skill in the art will understand that: all or part of the steps for implementing the method embodiments may be implemented by hardware related to program instructions, and the program may be stored in a computer readable storage medium, and when executed, the program performs the steps including the method embodiments; and the aforementioned storage medium includes: various media that can store program codes, such as a removable Memory device, a Read-Only Memory (ROM), a magnetic disk, or an optical disk.
The above description is only for the specific embodiments of the present invention, but the scope of the present invention is not limited thereto, and any person skilled in the art can easily conceive of the changes or substitutions within the technical scope of the present invention, and all the changes or substitutions should be covered within the scope of the present invention. Therefore, the protection scope of the present invention shall be subject to the protection scope of the appended claims.
Claims (12)
1. An information processing method is applied to an electronic device, and when a first image is acquired, the method comprises the following steps:
extracting pixel points meeting a first preset rule in the first image to obtain first pixel points;
determining first data corresponding to the first pixel point, wherein the first data is characterized as a first attribute of the pixel point;
determining a first characteristic value of the first data;
performing first adjustment on the first data according to the first characteristic value;
wherein the first data is represented by a first predetermined number of bits,
correspondingly, the determining the first characteristic value of the first data includes:
changing the first data to obtain third data, wherein the third data is represented by a second predetermined digit, and the first predetermined digit is different from the second predetermined digit; the third data represents an index of the first data;
and searching the first characteristic value according to the third data.
2. The method of claim 1, wherein the extracting the pixel points satisfying the first predetermined rule from the first image to obtain the first pixel points comprises:
determining first data corresponding to each pixel point in a first image;
extracting pixel points of the first data in a first preset range;
and determining pixel points of the extracted first data within a first preset range as the first pixel points.
3. The method of claim 1 or 2, wherein determining the first characteristic value of the first data further comprises:
determining first information corresponding to the third data in a first predetermined relationship;
determining second information corresponding to the first information in a second predetermined relationship;
determining that the second information is characterized by the first feature value.
4. The method of claim 1, wherein the first adjusting the first data according to the first characteristic value comprises:
the first data at least comprises first subdata and second subdata;
the first characteristic value at least comprises a first sub coefficient, a second sub coefficient, a third sub coefficient and a fourth sub coefficient;
performing first operation on the first subdata and the first sub-coefficient and the third sub-coefficient respectively to obtain a first sub-result and a third sub-result;
performing first operation on the second subdata, the second sub-coefficient and the fourth sub-coefficient respectively to obtain a second sub-result and a fourth sub-result;
determining the sum of the first sub-result and the second sub-result as an adjustment result of the first sub-data;
and determining the sum of the third sub-result and the fourth sub-result as the adjustment result of the second sub-data.
5. The method of claim 1, further comprising:
determining second data corresponding to the first pixel point, wherein the second data is characterized by a second attribute of the pixel point; determining a first characteristic value of the second data; performing second adjustment on the second data according to the first characteristic value; or,
extracting pixel points meeting a second preset rule from the first pixel points to obtain second pixel points; acquiring second data corresponding to a second pixel point, wherein the second data is characterized by a second attribute of the pixel point; determining a first characteristic value of the second data; performing second adjustment on the second data according to the first characteristic value;
wherein, the first attribute is the color of the pixel point; the second attribute is the brightness of the pixel point.
6. The method according to claim 5, wherein the extracting of the pixel satisfying the second predetermined rule from the first pixels to obtain the second pixel comprises:
extracting first pixel points of second data in a second preset range;
and determining the first pixel points of the extracted second data within the second preset range as second pixel points.
7. An electronic device, the electronic device comprising:
the first extraction unit is used for extracting pixel points meeting a first preset rule in the first image to obtain first pixel points when the first image is obtained;
the first determining unit is used for determining first data corresponding to the first pixel point, and the first data is characterized by a first attribute of the pixel point;
a second determination unit configured to determine a first feature value of the first data;
the first adjusting unit is used for carrying out first adjustment on the first data according to the first characteristic value;
wherein the first data is represented by a first predetermined number of bits,
the second determination unit is configured to: changing the first data to obtain third data, wherein the third data is represented by a second predetermined digit, and the first predetermined digit is different from the second predetermined digit; the third data represents an index of the first data;
the second determining unit is further configured to determine the first feature value according to the third data.
8. The electronic device of claim 7, wherein the first extraction unit is configured to: determining first data corresponding to each pixel point in a first image;
extracting pixel points of the first data in a first preset range;
and determining pixel points of the extracted first data within a first preset range as the first pixel points.
9. The electronic device according to claim 7 or 8, wherein the second determining unit is further configured to:
determining first information corresponding to the third data in a first predetermined relationship;
determining second information corresponding to the first information in a second predetermined relationship;
determining that the second information is characterized by the first feature value.
10. The electronic device of claim 7, wherein the first adjusting unit is further configured to:
the first data at least comprises first subdata and second subdata;
the first characteristic value at least comprises a first sub coefficient, a second sub coefficient, a third sub coefficient and a fourth sub coefficient;
performing first operation on the first subdata and the first sub-coefficient and the third sub-coefficient respectively to obtain a first sub-result and a third sub-result;
performing first operation on the second subdata, the second sub-coefficient and the fourth sub-coefficient respectively to obtain a second sub-result and a fourth sub-result;
determining the sum of the first sub-result and the second sub-result as an adjustment result of the first sub-data;
and determining the sum of the third sub-result and the fourth sub-result as the adjustment result of the second sub-data.
11. The electronic device of claim 7, wherein the first adjusting unit is further configured to:
determining second data corresponding to the first pixel point, wherein the second data is characterized by a second attribute of the pixel point; determining a first characteristic value of the second data; performing second adjustment on the second data according to the first characteristic value; or,
extracting pixel points meeting a second preset rule from the first pixel points to obtain second pixel points; acquiring second data corresponding to a second pixel point, wherein the second data is characterized by a second attribute of the pixel point; determining a first characteristic value of the second data; performing second adjustment on the second data according to the first characteristic value;
wherein, the first attribute is the color of the pixel point; the second attribute is the brightness of the pixel point.
12. The electronic device of claim 11, wherein the first adjusting unit is further configured to:
extracting first pixel points of second data in a second preset range;
and determining the first pixel points of the extracted second data within the second preset range as second pixel points.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510325291.6A CN106303154B (en) | 2015-06-12 | 2015-06-12 | A kind of information processing method and electronic equipment |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510325291.6A CN106303154B (en) | 2015-06-12 | 2015-06-12 | A kind of information processing method and electronic equipment |
Publications (2)
Publication Number | Publication Date |
---|---|
CN106303154A CN106303154A (en) | 2017-01-04 |
CN106303154B true CN106303154B (en) | 2019-08-27 |
Family
ID=57650795
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201510325291.6A Active CN106303154B (en) | 2015-06-12 | 2015-06-12 | A kind of information processing method and electronic equipment |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106303154B (en) |
Families Citing this family (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110968723B (en) * | 2018-09-29 | 2023-05-12 | 深圳云天励飞技术有限公司 | Image characteristic value searching method and device and electronic equipment |
CN113254690B (en) * | 2020-02-10 | 2025-01-24 | 华为技术有限公司 | Thumbnail display method and device |
CN113436126B (en) * | 2021-07-13 | 2022-06-10 | 上海艾为电子技术股份有限公司 | Image saturation enhancement method and system and electronic equipment |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1419781A (en) * | 2000-03-24 | 2003-05-21 | 亮屋科技有限公司 | Compression of selected data for digital image information |
CN1874526A (en) * | 2005-05-05 | 2006-12-06 | 创世纪微芯片公司 | Apparatus for detecting, correcting attenuation and processing in hue, saturation and luminance directions |
CN101964874A (en) * | 2009-07-23 | 2011-02-02 | 卡西欧计算机株式会社 | Image processing apparatus and image processing method |
-
2015
- 2015-06-12 CN CN201510325291.6A patent/CN106303154B/en active Active
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1419781A (en) * | 2000-03-24 | 2003-05-21 | 亮屋科技有限公司 | Compression of selected data for digital image information |
CN1874526A (en) * | 2005-05-05 | 2006-12-06 | 创世纪微芯片公司 | Apparatus for detecting, correcting attenuation and processing in hue, saturation and luminance directions |
CN101964874A (en) * | 2009-07-23 | 2011-02-02 | 卡西欧计算机株式会社 | Image processing apparatus and image processing method |
Also Published As
Publication number | Publication date |
---|---|
CN106303154A (en) | 2017-01-04 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
JP6851546B2 (en) | Image processing methods and devices, electronic devices, computer storage media | |
CN111429370B (en) | Underground coal mine image enhancement method, system and computer storage medium | |
US20110305386A1 (en) | Color Indication Tool for Colorblindness | |
CN104636045B (en) | Display methods, device and electronic equipment | |
CN103176761A (en) | Screen background setting method and movable terminal | |
US10554803B2 (en) | Method and apparatus for generating unlocking interface, and electronic device | |
CN107204034A (en) | A kind of image processing method and terminal | |
KR101985880B1 (en) | Display device and control method thereof | |
JP6779688B2 (en) | Image processing equipment, image processing method, computer program | |
CN106303154B (en) | A kind of information processing method and electronic equipment | |
Ortiz et al. | Vectorial morphological reconstruction for brightness elimination in colour images | |
Zangana et al. | A new algorithm for human face detection using skin color tone | |
CN105451094B (en) | Subtitle color adjustment method and device | |
CN102567969B (en) | Color image edge detection method | |
CN114626967A (en) | Digital watermark embedding and extracting method, device, equipment and storage medium | |
KR20140022801A (en) | Color conversion based on an hvs model | |
CN112070096B (en) | Color recognition method, device, terminal equipment and storage medium | |
US10638131B2 (en) | Content providing apparatus, display apparatus, and control method therefor | |
CN110880164B (en) | Image processing method, device, equipment and computer storage medium | |
Meng et al. | Proposal of minimization problem based lightness modification for protanopia and deuteranopia | |
CN113870100A (en) | Image processing method and electronic device | |
CN104021579A (en) | Method and device for changing colors of image | |
JP5279085B2 (en) | Color arrangement conversion apparatus and program | |
Buchyk et al. | Improvement of steganographic methods based on the analysis of image color models | |
CN111382600A (en) | Security video monochromatic shelter detection device and method |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |