WO2021088639A1 - 图像亮度处理方法及装置、图像处理方法及装置 - Google Patents
图像亮度处理方法及装置、图像处理方法及装置 Download PDFInfo
- Publication number
- WO2021088639A1 WO2021088639A1 PCT/CN2020/122231 CN2020122231W WO2021088639A1 WO 2021088639 A1 WO2021088639 A1 WO 2021088639A1 CN 2020122231 W CN2020122231 W CN 2020122231W WO 2021088639 A1 WO2021088639 A1 WO 2021088639A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- brightness
- sub
- information
- region
- image
- Prior art date
Links
- 238000003672 processing method Methods 0.000 title claims abstract description 36
- 238000000034 method Methods 0.000 claims abstract description 57
- 238000009826 distribution Methods 0.000 claims description 64
- 230000008859 change Effects 0.000 claims description 28
- 230000001186 cumulative effect Effects 0.000 claims description 24
- 238000004590 computer program Methods 0.000 claims description 22
- 230000010354 integration Effects 0.000 claims description 5
- 238000009827 uniform distribution Methods 0.000 claims description 4
- 238000005315 distribution function Methods 0.000 claims description 3
- 230000008569 process Effects 0.000 abstract description 15
- 238000003384 imaging method Methods 0.000 abstract description 10
- 230000000694 effects Effects 0.000 abstract description 6
- 238000010586 diagram Methods 0.000 description 13
- 230000006870 function Effects 0.000 description 9
- 238000013507 mapping Methods 0.000 description 5
- 230000005540 biological transmission Effects 0.000 description 4
- 238000005516 engineering process Methods 0.000 description 4
- 230000003287 optical effect Effects 0.000 description 4
- 238000009825 accumulation Methods 0.000 description 3
- 238000004364 calculation method Methods 0.000 description 2
- 230000006872 improvement Effects 0.000 description 2
- 238000012986 modification Methods 0.000 description 2
- 230000004048 modification Effects 0.000 description 2
- 238000004458 analytical method Methods 0.000 description 1
- 238000006243 chemical reaction Methods 0.000 description 1
- 230000007547 defect Effects 0.000 description 1
- 230000007774 longterm Effects 0.000 description 1
- 238000006467 substitution reaction Methods 0.000 description 1
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N23/00—Cameras or camera modules comprising electronic image sensors; Control thereof
- H04N23/60—Control of cameras or camera modules
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N23/00—Cameras or camera modules comprising electronic image sensors; Control thereof
- H04N23/70—Circuitry for compensating brightness variation in the scene
- H04N23/76—Circuitry for compensating brightness variation in the scene by influencing the image signals
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N23/00—Cameras or camera modules comprising electronic image sensors; Control thereof
- H04N23/80—Camera processing pipelines; Components thereof
Definitions
- the embodiments of the present invention relate to the field of image processing, in particular, to an image brightness processing method and device, and an image processing method and device
- the terminal may actually take pictures due to the low performance of the terminal hardware or the wear and tear of the camera lens during the long-term use of the terminal. There are defects in the imaging quality in the process, which seriously affects the user's shooting experience.
- Embodiments of the present invention provide an image brightness processing method and device, and an image processing method and device, so as to at least solve the problem of poor imaging quality due to limited hardware performance or loss in the terminal shooting process in the related art.
- the embodiment of the present invention provides an image brightness processing method, including:
- the first sub-region is the sub-region where the pixel is located
- the second sub-region is one or more of the sub-regions adjacent to the first sub-region.
- An embodiment of the present invention also provides an image processing method, including the image brightness processing method described in the foregoing embodiment, and the image processing method includes:
- the embodiment of the present invention also provides an image brightness processing device, including:
- a dividing module configured to divide the image to be processed into multiple sub-regions, and obtain brightness adjustment information of each of the sub-regions
- a parameter determination module configured to determine the brightness adjustment parameter of each of the sub-regions according to the brightness adjustment information
- the brightness adjustment module is configured to adjust the brightness of each pixel in the image to perform image brightness processing according to at least one of the following objects: the first brightness adjustment parameter of the first subregion, and the first brightness adjustment parameter of the second subregion. 2. Brightness adjustment parameters;
- the first sub-region is the sub-region where the pixel is located
- the second sub-region is one or more of the sub-regions adjacent to the first sub-region.
- An embodiment of the present invention also provides an image processing device, including the image brightness processing device described in the foregoing embodiment, and the image processing device includes:
- the information determining module is configured to determine the first brightness information and the second brightness information of the image, wherein the first brightness information is the original brightness information before the image brightness processing of the image, and the second brightness information is Brightness information of the image after image brightness processing;
- a comparison module configured to determine color adjustment parameters according to the first brightness information and the relationship between the first brightness information and the second brightness information
- the color adjustment module is configured to perform color adjustment on the image according to the color adjustment parameter for image processing.
- the embodiment of the present invention also provides a computer-readable storage medium, and a computer program is stored in the computer-readable storage medium, wherein the computer program is configured to execute any one of the foregoing method embodiments when running A step of.
- An embodiment of the present invention also provides an electronic device, including a memory and a processor, the memory is stored with a computer program, and the processor is configured to run the computer program to execute any of the foregoing method embodiments. step.
- the embodiments of the present invention can solve the problem of poor imaging quality caused by hardware performance or loss in the shooting process of the terminal in the related art, so as to achieve the problem of improving the imaging effect of the terminal.
- Fig. 1 is a flowchart of an image brightness processing method according to an embodiment of the present invention
- Fig. 2 is a schematic diagram of image division according to an embodiment of the present invention.
- FIG. 3 is a schematic diagram of statistics of the number of pixels according to an embodiment of the present invention.
- FIG. 4 is a statistical schematic diagram of the number of pixels in the brightness sub-interval according to an embodiment of the present invention.
- Fig. 5 is a schematic diagram of pixel positions provided according to an embodiment of the present invention.
- Fig. 6 is a flowchart of an image processing method according to an embodiment of the present invention.
- Fig. 7 is a structural block diagram of an image brightness processing method according to an embodiment of the present invention.
- Fig. 8 is a structural block diagram of an image processing device according to an embodiment of the present invention.
- FIG. 1 is a flowchart of an image brightness processing method according to an embodiment of the present invention. As shown in FIG. 1, the image brightness processing method in this embodiment includes :
- S102 Divide the image to be processed into multiple sub-regions, and obtain brightness adjustment information of each sub-region.
- Fig. 2 is a schematic diagram of image division according to an embodiment of the present invention.
- the image after the image to be processed is divided into multiple sub-regions is shown in Fig. 2; as shown in Fig.
- the image to be processed is divided Divided into X*Y sub-intervals, in order to facilitate the distinction of the sub-intervals, the sub-intervals can be represented by N(i,j), where i is any value in the interval from 1 to X, and j is from 1 to Any value in the interval of Y.
- the brightness adjustment information of each sub-region is obtained, that is, it is instructed to perform statistics or analysis processing on the brightness signal of the sub-region to obtain the corresponding brightness adjustment information.
- the format of each sub-region should be an image format in which the luminance signal and the color signal are separated, for example, HSV format, YUV format, etc.
- step S102 when the image to be processed is the HSV format or the YUV format, there is no need to perform format processing.
- the image to be processed does not meet the above format requirements, in step S102 Before the image to be processed is divided into sub-areas, the image to be processed can be formatted to obtain the corresponding HSV format or YUV format image, or after sub-areas are divided, each sub-region can be formatted Processing to obtain the corresponding HSV format or YUV format sub-region; the present invention does not limit this.
- the method of converting the image to be processed to obtain the corresponding HSV format or YUV format image before the execution of step S102 is adopted.
- the above-mentioned format conversion processing of the image can be performed in a conventional manner in the art, and the present invention will not be repeated here.
- the brightness adjustment information includes at least one of the following: brightness distribution information and brightness uniformity information; wherein the brightness distribution information is used to indicate the distribution information of the number of pixels corresponding to the multiple brightness values in the sub-region; The brightness average degree information is used to indicate the average degree information of the brightness values corresponding to multiple pixels in the sub-region.
- the above-mentioned brightness adjustment information may use brightness distribution information or brightness uniformity information, or both brightness distribution information and brightness uniformity information.
- the above-mentioned brightness distribution information is the distribution information indicating the number of pixels corresponding to different pixel values in a sub-region. For example, there are 300,000 pixels in a sub-region, and the brightness value corresponding to the 300,000 pixels is 0 to 255, then for each brightness In terms of value, the number of pixels corresponding to the brightness value can be determined through statistics or calculation, and the distribution of the number of pixels corresponding to different brightness values can be further determined.
- the aforementioned brightness average information indicates the distribution average of brightness values between different pixels in a sub-region, specifically, the magnitude of the brightness difference between different pixels.
- the above distribution of the number of pixels corresponding to different brightness values can be determined by the number of pixels corresponding to the different brightness values, such as the statistical value of the number of pixels corresponding to the brightness value less than 100, or by the number of pixels corresponding to different brightness values.
- the distribution probability is embodied, which is not limited in the present invention.
- acquiring the brightness adjustment information of each sub-region includes:
- the cumulative distribution information is used to indicate the distribution of the number of pixels
- the brightness distribution information of the sub-region is obtained according to the cumulative distribution information.
- this optional embodiment uses the cumulative distribution information of the number of pixels corresponding to each brightness value as the brightness distribution information; specifically, the cumulative distribution information indicates the number of pixels corresponding to a certain brightness value. Accumulation, for example, the accumulation of the number of pixels corresponding to the brightness value of 100 is the superposition of the number of pixels corresponding to the brightness values from 0 to 100. According to the above cumulative distribution information, the distribution of the number of pixels in the sub-region can be intuitively determined.
- the foregoing acquiring the number of pixels corresponding to each brightness value in the sub-region includes:
- a histogram between a plurality of brightness values in the subregion and the number of pixels corresponding to the brightness value is established to obtain the number of pixels corresponding to each brightness value in the subregion.
- FIG. 3 is a schematic diagram of the number of pixels statistics provided according to an embodiment of the present invention, as shown in FIG. 3 and FIG. 3
- the histogram curve in represents the statistics of the number of pixels corresponding to different brightness values; specifically, the abscissa of the histogram is the brightness value from 0 to 255, and the ordinate is the number of pixels, that is, the statistics of each brightness value The number of pixels.
- the establishment of the above-mentioned histogram can be established by the processor of the terminal according to a preset program or instruction to count the brightness values and the corresponding number of pixels in the sub-regions, which will not be repeated in the present invention.
- the method further includes:
- the histogram is cropped.
- the histogram amplitude extreme value is used to indicate the variation range between the maximum value and the minimum value of the number of pixels in the histogram, according to the preset histogram amplitude extreme value .
- the histogram can be cropped, which can effectively prevent the histogram from being too dark (more shadows) and too bright (overexposure).
- determining the cumulative distribution information of the number of pixels corresponding to each brightness value in the sub-region according to the number of pixels corresponding to each brightness value includes:
- CDF cumulative distribution function
- the cumulative distribution information corresponding to each brightness value in the sub-region is determined.
- the above-mentioned CDF image specifically indicates the cumulative statistics of the number of pixels corresponding to the brightness value in the histogram corresponding to the aforementioned sub-region to determine the cumulative distribution information of the number of pixels corresponding to the brightness value in the sub-region .
- the CDF image curve in Figure 3 indicates the cumulative distribution information of the number of pixels corresponding to the brightness value.
- each brightness value in the abscissa such as the CDF value corresponding to the brightness value X, indicates Calculates the accumulation of the number of pixels corresponding to the brightness values from 0 to X.
- the establishment of the above-mentioned CDF image can perform integration processing on the histogram, and the integration processing can be completed by the processor of the terminal according to a preset program or instruction pair, which is not repeated here in the present invention.
- acquiring the brightness adjustment information of each sub-region includes:
- the brightness variance information can be obtained by calculating the variance of the brightness values corresponding to multiple pixels in the sub-region, and then the brightness variance information is used as the brightness average information; the foregoing brightness variance information In the calculation, it is possible to determine the average value of the brightness values corresponding to the multiple pixels in the sub-region, and then determine the brightness variance information according to the average value and the brightness values corresponding to the multiple pixels.
- S104 Determine the brightness adjustment parameter of each sub-region according to the brightness adjustment information.
- determining the brightness adjustment parameter of each sub-region according to the brightness adjustment information includes:
- the ratio information is used to indicate the ratio of the number of pixels corresponding to the preset brightness sub-interval to the number of pixels corresponding to the preset brightness interval;
- the brightness sub-interval is used to indicate the sub-interval of the brightness interval;
- the brightness adjustment parameter corresponding to the sub-region is determined.
- the above-mentioned ratio information is determined according to the preset brightness interval and brightness sub-interval, and the brightness sub-interval can indicate the corresponding brightness settings (such as dark light, medium light, and high light) in the sub-region.
- the sub-intervals of the brightness value, the brightness interval is the set of the above-mentioned multiple brightness sub-intervals.
- the brightness interval is a continuous interval, or the brightness interval is a discontinuous interval.
- the above-mentioned brightness interval is a continuous interval, that is, it indicates that the corresponding multiple brightness sub-intervals in the brightness interval are continuous; the above-mentioned brightness interval is a non-continuous interval, that is, it indicates that two adjacent brightness sub-intervals corresponding to the brightness interval are continuous.
- the intervals are not continuous and may have other brightness values.
- determining the brightness adjustment parameter corresponding to the sub-region according to the relationship between the ratio information and the preset ratio threshold value further includes:
- the luminance sub-interval includes: a first luminance sub-interval, a second luminance sub-interval, and a third luminance sub-interval;
- the first brightness sub-interval is used to indicate a low brightness value interval
- the second brightness sub-interval is used to indicate a medium brightness value interval
- the second brightness sub-interval is used to indicate a high brightness value interval.
- the first brightness sub-interval, the second brightness sub-interval, and the third brightness sub-interval respectively indicate the brightness value intervals corresponding to low brightness, medium brightness, and high brightness; according to the foregoing ,
- the first luminance sub-interval, the second luminance sub-interval, and the third luminance sub-interval may be continuous intervals or discontinuous intervals.
- the foregoing determining one or more proportion information corresponding to the sub-region according to the brightness distribution information includes:
- the brightness distribution information determine the first proportion information, the second proportion information, and the third proportion information corresponding to the sub-region;
- the first ratio information is the ratio of the number of pixels corresponding to the first brightness sub-interval to the number of pixels corresponding to the brightness interval;
- the second ratio information is the number of pixels corresponding to the second brightness sub-interval compared to the pixels corresponding to the brightness interval The ratio of the number;
- the third ratio information is the ratio of the number of pixels corresponding to the third brightness sub-interval to the number of pixels corresponding to the brightness interval;
- the brightness adjustment parameters corresponding to the sub-regions are determined, including:
- the relationship between the first ratio information and the preset first ratio threshold, the relationship between the second ratio information and the preset second ratio threshold, and the third ratio information The relationship with the preset third ratio threshold, the relationship between the brightness variance information and the preset first variance threshold, the relationship between the brightness variance information and the preset second variance threshold, the brightness variance information with The relationship between the preset third-party difference thresholds.
- the proportion information is respectively set for the first luminance sub-interval, the second luminance sub-interval, and the third luminance sub-interval representing low luminance, medium luminance, and high luminance, that is, the first ratio.
- Information, the second ratio information, and the third ratio information to make corresponding judgments.
- the process of determining the brightness adjustment parameters corresponding to the sub-region can compare the corresponding ratio information with the corresponding ratio threshold, and compare the brightness variance information with the corresponding variance threshold, so as to compare The corresponding relationship determined by the result determines the brightness adjustment parameter.
- the foregoing determining the brightness adjustment parameters corresponding to the sub-regions according to the following objects includes:
- the first ratio information is less than or equal to the first ratio threshold, at least determine that the first brightness adjustment parameter is the brightness adjustment parameter corresponding to the sub-region; or,
- the first ratio information is greater than the first ratio threshold, and the brightness variance information is less than the first variance threshold, at least the first brightness adjustment parameter or the fourth brightness adjustment parameter is determined to be the brightness adjustment parameter corresponding to the sub-region; or,
- the second brightness adjustment parameter is determined to be the brightness adjustment parameter corresponding to the sub-region;
- the second ratio information is less than or equal to the second ratio threshold, at least determine that the second brightness adjustment parameter is the brightness adjustment parameter corresponding to the sub-region; or,
- the second ratio information is greater than the second ratio threshold, and the brightness variance information is less than the second variance threshold, at least determine that the first brightness adjustment parameter or the fourth brightness adjustment parameter is the brightness adjustment parameter corresponding to the sub-region; or,
- the brightness variance information is greater than or equal to the second variance threshold, at least determine that the first brightness adjustment parameter or the second brightness adjustment parameter is the brightness adjustment parameter corresponding to the sub-region; or,
- the third ratio information is less than or equal to the third ratio threshold
- at least the first brightness adjustment parameter is determined to be the brightness adjustment parameter corresponding to the sub-region
- the third ratio information is greater than the third ratio threshold, and the brightness variance information is less than the third-party difference threshold, at least determine that the first brightness adjustment parameter or the fourth brightness adjustment parameter is the brightness adjustment parameter corresponding to the sub-region; or,
- the third ratio information is greater than the third ratio threshold, and the brightness variance information is greater than or equal to the third-party difference threshold, at least the third brightness adjustment parameter is determined to be the brightness adjustment parameter corresponding to the sub-region.
- the ratio of the total number of pixels corresponding to the three luminance sub-intervals to the total number of pixels in the luminance interval can be determined.
- FIG. 4 is a statistical schematic diagram of the number of pixels in the brightness sub-interval according to an embodiment of the present invention.
- the CDF map shown in Figure 3 is in the above-mentioned brightness sub-interval.
- the distribution is shown in Figure 4, specifically:
- the third ratio information is the third ratio information
- the brightness adjustment parameter can be further combined with the brightness variance information; in this exemplary embodiment, the brightness adjustment parameter adopts a mapping function , That is, map (i, j) for representation; brightness variance information is represented by ⁇ (i, j) ; the first ratio threshold is represented by rth 1 ; the second ratio threshold is represented by rth 2 ; the third ratio threshold is represented by rth 3 for representation; the first variance threshold is represented by ⁇ th 1 , the second variance threshold is represented by ⁇ th 2 , and the first variance threshold is represented by ⁇ th 3 ; where i, j are used to indicate that the sub-region is in the image The coordinate position.
- map (i, j) for representation
- brightness variance information is represented by ⁇ (i, j)
- the first ratio threshold is represented by rth 1
- the second ratio threshold is represented by rth 2
- the third ratio threshold is represented by rth 3 for representation
- the first variance threshold is represented by ⁇ th 1
- the second variance threshold is represented by
- the first brightness adjustment parameter indicates that the type 1 type is used as map (i, j) ; the second brightness adjustment parameter indicates that the type 2 type is used as map (i, j) ; and the second brightness adjustment parameter indicates that the type The type3 type is used as map (i, j) ; the fourth brightness adjustment parameter indicates that the brightness adjustment of the sub-region is not performed, that is, no processing is performed.
- type1 when determining the brightness adjustment parameters corresponding to the sub-regions, in addition to the above judgment methods, usually type1 can be used as map (i,j) for processing by default, or in complex scenes. Next, use the combination of type1 and type2 or type3 for corresponding processing.
- the map (i,j) corresponding to the above type1 is specifically,
- the map (i,j) corresponding to the above type2 is specifically,
- the map (i,j) corresponding to the above type3 is specifically,
- the brightness adjustment parameter corresponding to the sub-region can be determined.
- S106 Perform brightness adjustment on each pixel in the image to perform image brightness processing according to at least one of the following objects: a first brightness adjustment parameter of the first sub-region, and a second brightness adjustment parameter of the second sub-region;
- the first sub-region is a sub-region where the pixel is located
- the second sub-region is one or more sub-regions adjacent to the first sub-region.
- adjusting the brightness of each pixel in the image to perform image brightness processing according to at least one of the following objects includes:
- the brightness of the pixel is adjusted.
- the first sub-region and the second sub-region corresponding to the pixel can be determined according to the spatial position relationship between the pixel and the corresponding sub-region, so as to complete the pixel Brightness adjustment.
- FIG. 5 is a schematic diagram of pixel positions according to an embodiment of the present invention.
- the pixels to be adjusted for brightness in the image include pixels A, B, and C located in the same sub-region, and their positions in the image As shown in Figure 5.
- the sub-region where they are located can be further divided into four quadrants with the center point of the sub-region as the origin. Among them, the pixel A is located in the first quadrant, and the pixel B is located in the second quadrant. Quadrant, pixel C is located in the third quadrant. The selection of the second sub-region corresponding to the pixel A, the pixel B, and the pixel C will be described below.
- pixel A For pixel A, the pixel is close to the vertex position of the image in the sub-region, and the remaining sub-regions in the image are far away from pixel A. Therefore, pixel A can only select the first sub-region as the object of brightness adjustment, without Or the second sub-area cannot be selected.
- the pixel B For pixel B, the pixel is close to the boundary of the image in the sub-region, and only the sub-region adjacent to the second quadrant in the image is close to the pixel B. Therefore, the pixel B can select the first sub-region as the brightness While adjusting the object, select the sub-region located on the right side of the first sub-region as the second sub-region of pixel B. It should be further explained that the pixel located in the fourth quadrant can also refer to the processing of pixel B. Similarly, the sub-region located on the lower side of the first sub-region can be selected as the second sub-region of the corresponding pixel.
- the pixel C For the pixel C, the pixel is close to the inner position of the image in the sub-region, and the distance between the sub-region (right side, lower side, and diagonally below) adjacent to the sub-region where the pixel C is located in the image is similar to the pixel C. Therefore, the pixel C may select the first sub-region as the object of brightness adjustment, and at the same time select three sub-regions located on the right, lower side, and diagonally below the first sub-region as the second sub-region.
- the second sub-region corresponding to the pixel can be selected by referring to the above method; for the sub-regions at the four vertices of the image, the corresponding determination can be made with reference to the above-mentioned sub-regions.
- the sub-region at the boundary position between any two adjacent vertices in, the sub-region can be divided into a part close to the image boundary and a part close to the inside of the image.
- the former can refer to the processing of pixel B above, and the latter can refer to the above
- adjusting the brightness of each pixel in the image to perform image brightness processing according to at least one of the following objects includes:
- the brightness of the pixel is adjusted.
- the first sub-region and the second sub-region corresponding to the pixel can be determined directly according to the distance relationship between the pixel and the corresponding sub-region, so as to complete the pixel
- the sub-region when the distance between the center point of a sub-region and the target pixel is less than or equal to the length or width of the sub-region or the diagonal length, the sub-region can be considered It is the second sub-area of the target pixel.
- the present invention does not limit this.
- adjusting the brightness of the pixel according to the brightness adjustment parameter of the first sub-region and the brightness adjustment parameter of the second sub-region includes:
- interpolation processing is performed on the pixel to adjust the brightness of the pixel.
- the mapping function map (i) corresponding to the first sub-region and/or the second sub-region corresponding to the pixel is obtained ,j) , taking a pixel with three second sub-regions as an example
- the mapping functions of the first sub-region and the second sub-region corresponding to the pixel are: map (i,j) , map (i+1,j) , Map (i,j+1) ,map (i+1,j+1) , for the original brightness of the pixel v in (x,y), substituting it into the above four mapping functions, you can correspond Get v map (i,j), v map (i+1,j), v map (i,j+1), v map (i+1,j+1); at this time, interpolation can be used to Determine the output value v out (x, y) of the brightness processing corresponding to the above-mentioned pixel.
- the mapping function map (i) corresponding to the first sub-region and/or the second sub-region corresponding to the pixel is obtained
- Each pixel in the image is processed one by one according to the steps S102 to S104 in this embodiment, and then the output value of the brightness processing corresponding to each pixel can be obtained, and then the brightness processing of each pixel is completed, so as to realize the image Brightness processing, where the brightness of the image corresponding to the brightness processing can be expressed as V dst .
- the brightness adjustment information of each sub-region can be obtained, and each sub-region can be determined according to the brightness adjustment information.
- the second brightness adjustment parameter therefore, the present invention can solve the problem of poor imaging quality caused by hardware performance or loss in the terminal shooting process in the related art, so as to achieve the problem of improving the imaging effect of the terminal.
- the image brightness processing method in this embodiment can automatically complete the processing during the terminal shooting process, and also provide the user with similar operation options such as image quality improvement for the user to actively operate, which is not limited in the present invention.
- the method according to the above embodiment can be implemented by means of software plus the necessary general hardware platform, of course, it can also be implemented by hardware, but in many cases the former is Better implementation.
- the technical solution of the present invention essentially or the part that contributes to the existing technology can be embodied in the form of a software product, and the computer software product is stored in a computer-readable storage medium (such as ROM/RAM). , Magnetic disk, optical disk), including several instructions to make a terminal device (can be a mobile phone, a computer, a server, or a network device, etc.) execute the method described in each embodiment of the present invention.
- the embodiment of the present invention also provides an image processing method.
- the image processing method in the embodiment of the present invention includes the image brightness processing method described in the foregoing embodiment 1; FIG. 6 is provided according to the embodiment of the present invention. The flowchart of the image processing method is shown in FIG. 6.
- the image processing method in the embodiment of the present invention includes:
- S202 Determine first brightness information and second brightness information of the image, where the first brightness information is the original brightness information of the image before image brightness processing is performed, and the second brightness information is the brightness information of the image after image brightness processing is performed;
- S204 Determine a color adjustment parameter according to the first brightness information and the relationship between the first brightness information and the second brightness information;
- S206 Perform color adjustment on the image according to the color adjustment parameter to perform image processing.
- the first brightness information is the original brightness information of the image before the image brightness processing in Embodiment 1 is used
- the second brightness information is the brightness information of the image after the brightness processing in Embodiment 1 is used.
- the image contrast or chromaticity can be further adjusted on the basis of the image brightness processing method, thereby significantly improving the imaging from multiple angles. Picture quality.
- the aforementioned color adjustment parameters include: contrast adjustment parameters and chromaticity adjustment parameters.
- determining the color adjustment parameter according to the first brightness information and the relationship between the first brightness information and the second brightness information includes:
- the color adjustment parameters are determined according to the following objects: the relationship between the change value of the second brightness information relative to the first brightness information and the value change parameter, and the relationship between the change ratio of the second brightness information relative to the first brightness information and the ratio change parameter relationship.
- the interval in which the first brightness information is located is a preset brightness value interval, which can usually be distinguished according to the low brightness, medium brightness, and high brightness of the brightness value. On this basis, the above low brightness can be targeted. , Medium brightness, and high brightness respectively set different numerical change parameters and scale change parameters to process the image more accurately.
- the ratio of the change of the second brightness information relative to the first brightness information indicates the relationship between the change value of the second brightness information compared to the first brightness information and the second brightness information.
- the color adjustment parameter is a contrast adjustment parameter, that is, the object of image processing is the contrast of the image.
- the above K low and R low are the corresponding numerical change parameters and proportional change parameters under low brightness
- the above K mid and R mid are the corresponding numerical change parameters and proportional change parameters under medium brightness
- the above K high and R high are The corresponding numerical change parameters and proportional change parameters under high brightness
- the aforementioned K low , R low , K mid , R mid , K high , and R high are all preset parameters.
- the aforementioned K slow , K smid , and K shigh are the contrast adjustment parameters, which are usually greater than 1.
- the image in the YUV format used in the process can be directly converted into the RGB format image for output, or the image in the YUV format can be converted into
- the RGB format image is processed by 3DLUT and other methods, and then the processed RGB format image is output.
- the method according to the above embodiment can be implemented by means of software plus the necessary general hardware platform, of course, it can also be implemented by hardware, but in many cases the former is Better implementation.
- the technical solution of the present invention essentially or the part that contributes to the existing technology can be embodied in the form of a software product, and the computer software product is stored in a computer-readable storage medium (such as ROM/RAM). , Magnetic disk, optical disk), including several instructions to make a terminal device (can be a mobile phone, a computer, a server, or a network device, etc.) execute the method described in each embodiment of the present invention.
- an embodiment of the present invention also provides an image brightness processing device, which is used to implement the above-mentioned embodiments and preferred implementations, and what has been described will not be repeated.
- the term "module" can implement a combination of software and/or hardware with predetermined functions.
- the devices described in the following embodiments are preferably implemented by software, implementation by hardware or a combination of software and hardware is also possible and conceived.
- Fig. 7 is a structural block diagram of an image brightness processing device according to an embodiment of the present invention. As shown in Fig. 7, the device includes:
- the dividing module 302 is configured to divide the image to be processed into multiple sub-regions, and obtain brightness adjustment information of each sub-region;
- the parameter determination module 304 is configured to determine the brightness adjustment parameter of each sub-region according to the brightness adjustment information
- the brightness adjustment module 306 is configured to adjust the brightness of each pixel in the image to perform image brightness processing according to at least one of the following objects: the first brightness adjustment parameter of the first subregion, and the second brightness adjustment parameter of the second subregion. Brightness adjustment parameters;
- the first sub-region is a sub-region where the pixel is located
- the second sub-region is one or more sub-regions adjacent to the first sub-region.
- the brightness adjustment information includes at least one of the following: brightness distribution information and brightness uniformity information;
- the brightness distribution information is used to indicate the distribution information of the number of pixels corresponding to the multiple brightness values in the sub-region;
- the brightness average information is used to indicate the average information of the brightness values corresponding to the multiple pixels in the sub-region.
- acquiring the brightness adjustment information of each sub-region includes:
- the cumulative distribution information is used to indicate the distribution of the number of pixels
- the brightness distribution information of the sub-region is obtained according to the cumulative distribution information.
- obtaining the number of pixels corresponding to each brightness value in the sub-region includes:
- a histogram between multiple brightness values in the sub-region and the number of pixels corresponding to the brightness value is established to obtain the number of pixels corresponding to each brightness value in the sub-region.
- the method further includes:
- the histogram is cropped.
- determining the cumulative distribution information of the number of pixels corresponding to each brightness value in the sub-region includes:
- the cumulative distribution information corresponding to each brightness value in the sub-region is determined.
- acquiring the brightness adjustment information of each sub-region includes:
- determining the brightness adjustment parameters of each sub-region according to the brightness adjustment information includes:
- the ratio information is used to indicate the ratio of the number of pixels corresponding to the preset brightness sub-interval to the number of pixels corresponding to the preset brightness interval;
- the brightness sub-interval is used to indicate the sub-interval of the brightness interval;
- the brightness adjustment parameter corresponding to the sub-region is determined.
- the brightness interval is a continuous interval, or the brightness interval is a discontinuous interval.
- determining the brightness adjustment parameter corresponding to the sub-region according to the relationship between the ratio information and the preset ratio threshold value further includes:
- the luminance sub-interval includes: a first luminance sub-interval, a second luminance sub-interval, and a third luminance sub-interval;
- the first brightness sub-interval is used to indicate a low brightness value interval
- the second brightness sub-interval is used to indicate a medium brightness value interval
- the second brightness sub-interval is used to indicate a high brightness value interval.
- determining one or more proportion information corresponding to the sub-region according to the brightness distribution information includes:
- the brightness distribution information determine the first proportion information, the second proportion information, and the third proportion information corresponding to the sub-region;
- the first ratio information is the ratio of the number of pixels corresponding to the first brightness sub-interval to the number of pixels corresponding to the brightness interval;
- the second ratio information is the number of pixels corresponding to the second brightness sub-interval compared to the pixels corresponding to the brightness interval The ratio of the number;
- the third ratio information is the ratio of the number of pixels corresponding to the third brightness sub-interval to the number of pixels corresponding to the brightness interval;
- the brightness adjustment parameters corresponding to the sub-regions are determined, including:
- the relationship between the first ratio information and the preset first ratio threshold, the relationship between the second ratio information and the preset second ratio threshold, and the third ratio information The relationship with the preset third ratio threshold, the relationship between the brightness variance information and the preset first variance threshold, the relationship between the brightness variance information and the preset second variance threshold, the brightness variance information with The relationship between the preset third-party difference thresholds.
- the brightness adjustment parameter corresponding to the sub-region is determined according to the following objects, including:
- the first ratio information is less than or equal to the first ratio threshold, at least determine that the first brightness adjustment parameter is the brightness adjustment parameter corresponding to the sub-region; or,
- the first ratio information is greater than the first ratio threshold, and the brightness variance information is less than the first variance threshold, at least the first brightness adjustment parameter or the fourth brightness adjustment parameter is determined to be the brightness adjustment parameter corresponding to the sub-region; or,
- the second brightness adjustment parameter is determined to be the brightness adjustment parameter corresponding to the sub-region;
- the second ratio information is less than or equal to the second ratio threshold, at least determine that the second brightness adjustment parameter is the brightness adjustment parameter corresponding to the sub-region; or,
- the second ratio information is greater than the second ratio threshold, and the brightness variance information is less than the second variance threshold, at least determine that the first brightness adjustment parameter or the fourth brightness adjustment parameter is the brightness adjustment parameter corresponding to the sub-region; or,
- the brightness variance information is greater than or equal to the second variance threshold, at least determine that the first brightness adjustment parameter or the second brightness adjustment parameter is the brightness adjustment parameter corresponding to the sub-region; or,
- the third ratio information is less than or equal to the third ratio threshold
- at least the first brightness adjustment parameter is determined to be the brightness adjustment parameter corresponding to the sub-region
- the third ratio information is greater than the third ratio threshold, and the brightness variance information is less than the third-party difference threshold, at least determine that the first brightness adjustment parameter or the fourth brightness adjustment parameter is the brightness adjustment parameter corresponding to the sub-region; or,
- the third ratio information is greater than the third ratio threshold, and the brightness variance information is greater than or equal to the third-party difference threshold, at least the third brightness adjustment parameter is determined to be the brightness adjustment parameter corresponding to the sub-region.
- adjusting the brightness of each pixel in the image to perform image brightness processing according to at least one of the following objects includes:
- the brightness of the pixel is adjusted.
- adjusting the brightness of each pixel in the image to perform image brightness processing according to at least one of the following objects includes:
- the brightness of the pixel is adjusted.
- adjusting the brightness of the pixel according to the brightness adjustment parameter of the first sub-region and the brightness adjustment parameter of the second sub-region includes:
- interpolation processing is performed on the pixel to adjust the brightness of the pixel.
- each of the above modules can be implemented by software or hardware.
- it can be implemented in the following manner, but not limited to this: the above modules are all located in the same processor; or, the above modules can be combined in any combination.
- the forms are located in different processors.
- an embodiment of the present invention also provides an image processing device, which includes the image brightness processing device in the above-mentioned embodiment, and the device is used to implement the above-mentioned embodiments and preferred implementations, which have already been explained. No longer.
- the term "module" can implement a combination of software and/or hardware with predetermined functions.
- the devices described in the following embodiments are preferably implemented by software, implementation by hardware or a combination of software and hardware is also possible and conceived.
- Fig. 8 is a structural block diagram of an image processing device according to an embodiment of the present invention. As shown in Fig. 8, the image processing device in this embodiment includes:
- the information determining module 402 is configured to determine the first brightness information and the second brightness information of the image, where the first brightness information is the original brightness information of the image before the image brightness processing, and the second brightness information is the image after the image brightness processing is performed.
- Brightness information is the original brightness information of the image before the image brightness processing, and the second brightness information is the image after the image brightness processing is performed.
- the comparison module 404 is configured to determine color adjustment parameters according to the first brightness information and the relationship between the first brightness information and the second brightness information;
- the color adjustment module 406 is configured to adjust the color of the image according to the color adjustment parameter for image processing.
- the color adjustment parameters include: contrast adjustment parameters and chromaticity adjustment parameters.
- determining the color adjustment parameter according to the first brightness information and the relationship between the first brightness information and the second brightness information includes:
- the color adjustment parameters are determined according to the following objects: the relationship between the change value of the second brightness information relative to the first brightness information and the value change parameter, and the relationship between the change ratio of the second brightness information relative to the first brightness information and the ratio change parameter relationship.
- each of the above modules can be implemented by software or hardware.
- it can be implemented in the following manner, but not limited to this: the above modules are all located in the same processor; or, the above modules can be combined in any combination.
- the forms are located in different processors.
- the embodiment of the present invention also provides a computer-readable storage medium.
- the computer-readable storage medium stores a computer program, wherein the computer program is set to execute any of the above method implementations when running. The steps in the example.
- the foregoing computer-readable storage medium may be configured to store a computer program for executing the following steps:
- S1 Divide the image to be processed into multiple sub-regions, and obtain brightness adjustment information of each sub-region;
- S2 Determine the brightness adjustment parameter of each sub-region according to the brightness adjustment information
- S3 Perform brightness adjustment on each pixel in the image to perform image brightness processing according to at least one of the following objects: a first brightness adjustment parameter of the first sub-region, and a second brightness adjustment parameter of the second sub-region;
- the first sub-region is a sub-region where the pixel is located
- the second sub-region is one or more sub-regions adjacent to the first sub-region.
- the above-mentioned computer-readable storage medium may include, but is not limited to: U disk, read-only memory (Read-Only Memory, ROM for short), random access memory (Random Access Memory, It is abbreviated as RAM), mobile hard disk, magnetic disk or optical disk and other media that can store computer programs.
- U disk read-only memory
- ROM read-only memory
- RAM random access memory
- mobile hard disk magnetic disk or optical disk and other media that can store computer programs.
- an embodiment of the present invention also provides an electronic device, including a memory and a processor, the memory stores a computer program, and the processor is configured to run the computer program to execute any of the above method embodiments. step.
- the aforementioned electronic device may further include a transmission device and an input-output device, wherein the transmission device is connected to the aforementioned processor, and the input-output device is connected to the aforementioned processor.
- the above-mentioned processor may be configured to execute the following steps through a computer program:
- S1 Divide the image to be processed into multiple sub-regions, and obtain brightness adjustment information of each sub-region;
- S2 Determine the brightness adjustment parameter of each sub-region according to the brightness adjustment information
- S3 Perform brightness adjustment on each pixel in the image to perform image brightness processing according to at least one of the following objects: a first brightness adjustment parameter of the first sub-region, and a second brightness adjustment parameter of the second sub-region;
- the first sub-region is a sub-region where the pixel is located
- the second sub-region is one or more sub-regions adjacent to the first sub-region.
- the embodiment of the present invention also provides a computer-readable storage medium.
- the computer-readable storage medium stores a computer program, wherein the computer program is set to execute any of the above method implementations when running. The steps in the example.
- the foregoing computer-readable storage medium may be configured to store a computer program for executing the following steps:
- S2 Determine color adjustment parameters according to the first brightness information and the relationship between the first brightness information and the second brightness information
- the above-mentioned computer-readable storage medium may include, but is not limited to: U disk, read-only memory (Read-Only Memory, ROM for short), random access memory (Random Access Memory, It is abbreviated as RAM), mobile hard disk, magnetic disk or optical disk and other media that can store computer programs.
- U disk read-only memory
- ROM read-only memory
- RAM random access memory
- mobile hard disk magnetic disk or optical disk and other media that can store computer programs.
- an embodiment of the present invention also provides an electronic device, including a memory and a processor, the memory stores a computer program, and the processor is configured to run the computer program to execute any of the above method embodiments. step.
- the aforementioned electronic device may further include a transmission device and an input-output device, wherein the transmission device is connected to the aforementioned processor, and the input-output device is connected to the aforementioned processor.
- the foregoing processor may be configured to execute the following steps through a computer program:
- S2 Determine color adjustment parameters according to the first brightness information and the relationship between the first brightness information and the second brightness information
- modules or steps of the present invention can be implemented by a general computing device, and they can be concentrated on a single computing device or distributed in a network composed of multiple computing devices.
- they can be implemented with program codes executable by a computing device, so that they can be stored in a storage device for execution by the computing device, and in some cases, can be executed in a different order than here.
- the present invention is not limited to any specific combination of hardware and software.
Landscapes
- Engineering & Computer Science (AREA)
- Multimedia (AREA)
- Signal Processing (AREA)
- Image Processing (AREA)
- Studio Devices (AREA)
Abstract
Description
Claims (23)
- 一种图像亮度处理方法,包括:将待处理的图像划分为多个子区域,获取每一个所述子区域的亮度调整信息;根据所述亮度调整信息,确定每一个所述子区域的亮度调整参数;根据以下对象中的至少之一,对所述图像中的每一个像素进行亮度调整以进行图像亮度处理:第一子区域的第一亮度调整参数,第二子区域的第二亮度调整参数;其中,所述第一子区域为所述像素所在的所述子区域,所述第二子区域为所述第一子区域相邻的一个或多个所述子区域。
- 根据权利要求1所述的方法,其中,所述亮度调整信息包括以下至少之一:亮度分布信息,亮度均度信息;其中,所述亮度分布信息用于指示所述子区域中多个亮度值分别对应的像素数量的分布信息;所述亮度均度信息用于指示所述子区域中多个所述像素对应的所述亮度值的均度信息。
- 根据权利要求2所述的方法,其中,在所述亮度调整信息至少包括所述亮度分布信息的情形下,所述获取每一个所述子区域的亮度调整信息,包括:获取所述子区域中每一个所述亮度值分别对应的所述像素数量;根据每一个所述亮度值分别对应的所述像素数量,确定所述子区域中每一个所述亮度值分别对应的所述像素数量的累积分布信息;其中,所述累积分布信息用于指示所述像素数量的分布状况;根据所述累积分布信息获取所述子区域的所述亮度分布信息。
- 根据权利要求3所述的方法,其中,所述获取所述子区域中每一个所述亮度值分别对应的所述像素数量,包括:建立所述子区域中多个所述亮度值与所述亮度值对应的所述像素数量之间的直方图,以获取所述子区域中每一个所述亮度值分别对应的所述像素数量。
- 根据权利要求4所述的方法,其中,所述建立所述子区域中多个所述亮度值与所述亮度值对应的所述像素数量之间的直方图之后,还包括:根据预设的直方图幅度极值,对所述直方图进行裁剪处理。
- 根据权利要求4或5所述的方法,其中,所述根据每一个所述亮度值分别对应的所述像素数量,确定所述子区域中每一个所述亮度值分别对应的所述像素数量的累积分布信息,包括:对所述直方图进行积分处理,以建立所述子区域中多个所述亮度值与所述亮度值对应的所述像素数量之间的累积分布函数CDF图像;根据所述CDF图像,确定所述子区域中每一个所述亮度值分别对应的累积分布信息。
- 根据权利要求2所述的方法,其中,在所述亮度调整信息至少包括所述亮度均度信息的情形下,所述获取每一个所述子区域的亮度调整信息,包括:获取所述子区域中多个所述像素对应的所述亮度值之间的亮度方差信息,以获取所述亮度均度信息。
- 根据权利要求2所述的方法,其中,在所述亮度调整信息至少包括所述亮度分布信息的情形下,所述根据所述亮度调整信息,确 定每一个所述子区域的亮度调整参数,包括:根据所述亮度分布信息确定所述子区域对应的一个或多个比例信息,其中,所述比例信息用于指示预设的亮度子区间对应的像素数量相对于预设的亮度区间对应的所述像素数量的比例;所述亮度区间用于指示亮度值的区间,所述亮度子区间用于指示所述亮度区间的子区间;根据所述比例信息与预设的比例阈值之间的关系,确定所述子区域对应的所述亮度调整参数。
- 根据权利要求8所述的方法,其中,所述亮度区间为连续区间,或者,所述亮度区间为非连续区间。
- 根据权利要求8或9所述的方法,其中,在所述亮度调整信息包括所述亮度均布信息的情形下,所述根据所述比例信息与预设的比例阈值之间的关系,确定所述子区域对应的所述亮度调整参数,还包括:根据所述亮度均布信息确定所述子区域对应的亮度方差信息;根据以下对象中的至少之一确定所述子区域对应的所述亮度调整参数:所述比例信息与所述比例阈值之间的关系,所述亮度方差信息与预设的方差阈值之间的关系。
- 根据权利要求10所述的方法,其中,所述亮度子区间包括:第一亮度子区间、第二亮度子区间、第三亮度子区间;其中,所述第一亮度子区间用于指示低亮度值区间,所述第二亮度子区间用于指示中亮度值区间,所述第二亮度子区间用于指示高亮 度值区间。
- 根据权利要求11所述的方法,其中,所述根据所述亮度分布信息确定所述子区域对应的一个或多个比例信息,包括:根据所述亮度分布信息,确定所述子区域对应的第一比例信息、第二比例信息以及第三比例信息;其中,所述第一比例信息为所述第一亮度子区间对应的像素数量相比于所述亮度区间对应的像素数量的比例;所述第二比例信息为所述第二亮度子区间对应的像素数量相比于所述亮度区间对应的像素数量的比例;所述第三比例信息为所述第三亮度子区间对应的像素数量相比于所述亮度区间对应的像素数量的比例;所述根据所述比例信息与预设的比例阈值之间的关系,确定所述子区域对应的所述亮度调整参数,包括:根据以下对象确定所述子区域对应的所述亮度调整参数:所述第一比例信息与预设的第一比例阈值之间的关系,所述第二比例信息与预设的第二比例阈值之间的关系,所述第三比例信息与预设的第三比例阈值之间的关系,所述亮度方差信息与预设的第一方差阈值之间的关系,所述亮度方差信息与预设的第二方差阈值之间的关系,所述亮度方差信息与预设的第三方差阈值之间的关系。
- 根据权利要求12所述的方法,其中,所述根据以下对象确定所述子区域对应的所述亮度调整参数,包括,在所述第一比例信息小于或等于所述第一比例阈值的情形下,至少确定第一亮度调整参数为所述子区域对应的所述亮度调整参数;或者,在所述第一比例信息大于所述第一比例阈值,以及所述亮度方差 信息小于所述第一方差阈值的情形下,至少确定第一亮度调整参数或第四亮度调整参数为所述子区域对应的所述亮度调整参数;或者,在所述第一比例信息大于所述第一比例阈值,以及所述亮度方差信息大于或等于所述第一方差阈值的情形下,至少确定第二亮度调整参数为所述子区域对应的所述亮度调整参数;或者,在所述第二比例信息小于或等于所述第二比例阈值的情形下,至少确定第二亮度调整参数为所述子区域对应的所述亮度调整参数;或者,在所述第二比例信息大于所述第二比例阈值,以及所述亮度方差信息小于所述第二方差阈值的情形下,至少确定第一亮度调整参数或第四亮度调整参数为所述子区域对应的所述亮度调整参数;或者,在所述第二比例信息大于所述第二比例阈值,以及所述亮度方差信息大于或等于所述第二方差阈值的情形下,至少确定第一亮度调整参数或第二亮度调整参数为所述子区域对应的所述亮度调整参数;或者,在所述第三比例信息小于或等于所述第三比例阈值的情形下,至少确定第一亮度调整参数为所述子区域对应的所述亮度调整参数;或者,在所述第三比例信息大于所述第三比例阈值,以及所述亮度方差信息小于所述第三方差阈值的情形下,至少确定第一亮度调整参数或第四亮度调整参数为所述子区域对应的所述亮度调整参数;或者,在所述第三比例信息大于所述第三比例阈值,以及所述亮度方差信息大于或等于所述第三方差阈值的情形下,至少确定第三亮度调整参数为所述子区域对应的所述亮度调整参数。
- 根据权利要求1所述的方法,其中,所述根据以下对象中的至少之一,对所述图像中的每一个像素进行亮度调整以进行图像亮度处理,包括:根据所述像素在所述图像中的位置,确定所述像素对应的所述第二子区域的数量;根据所述第二子区域的数量以及所述像素相对于所述第一子区域的中心点的位置,确定所述第二子区域;根据所述第一子区域的亮度调整参数以及所述第二子区域的亮度调整参数,对所述像素进行亮度调整。
- 根据权利要求1所述的方法,其中,所述根据以下对象中的至少之一,对所述图像中的每一个像素进行亮度调整以进行图像亮度处理,包括:确定每一个所述子区域的中心点的位置;根据所述像素与多个所述子区域对应的所述中心点之间的距离关系,确定所述第一子区域以及所述第二子区域;根据所述第一子区域的亮度调整参数以及所述第二子区域的亮度调整参数,对所述像素进行亮度调整。
- 根据权利要求14或15所述的方法,其中,所述根据所述第一子区域的亮度调整参数以及所述第二子区域的亮度调整参数,对所述像素进行亮度调整,包括:根据所述第一子区域的亮度调整参数以及所述第二子区域的亮度调整参数,对所述像素进行插值处理,以对所述像素进行亮度调整。
- 一种图像处理方法,包括权利要求1至16任一项中所述的 图像亮度处理方法,所述图像处理方法包括:确定所述图像的第一亮度信息与第二亮度信息,其中,所述第一亮度信息为所述图像进行图像亮度处理前的原始亮度信息,所述第二亮度信息为所述图像进行图像亮度处理后的亮度信息;根据所述第一亮度信息,以及所述第一亮度信息与所述第二亮度信息之间的关系,确定色彩调整参数;根据所述色彩调整参数对所述图像进行色彩调整,以进行图像处理。
- 根据权利要求17所述的方法,其中,所述色彩调整参数包括:对比度调整参数、色度调整参数。
- 根据权利要求17或18所述的方法,其中,所述根据所述第一亮度信息,以及所述第一亮度信息与所述第二亮度信息之间的关系,确定色彩调整参数,包括:根据所述第一亮度信息所在的区间,确定数值变化参数以及比例变化参数;根据以下对象确定所述色彩调整参数:所述第二亮度信息相对于所述第一亮度信息的变化数值与所述数值变化参数之间的关系,所述第二亮度信息相对于所述第一亮度信息的变化比例与所述比例变化参数之间的关系。
- 一种图像亮度处理装置,包括:划分模块,设置为将待处理的图像划分为多个子区域,获取每一个所述子区域的亮度调整信息;参数确定模块,设置为根据所述亮度调整信息,确定每一个所述 子区域的亮度调整参数;亮度调整模块,设置为根据以下对象中的至少之一,对所述图像中的每一个像素进行亮度调整以进行图像亮度处理:第一子区域的第一亮度调整参数,第二子区域的第二亮度调整参数;其中,所述第一子区域为所述像素所在的所述子区域,所述第二子区域为所述第一子区域相邻的一个或多个所述子区域。
- 一种图像处理装置,包括权利要求19所述的图像亮度处理装置,所述图像处理装置包括:信息确定模块,设置为确定所述图像的第一亮度信息与第二亮度信息,其中,所述第一亮度信息为所述图像进行图像亮度处理前的原始亮度信息,所述第二亮度信息为所述图像进行图像亮度处理后的亮度信息;比较模块,设置为根据所述第一亮度信息,以及所述第一亮度信息与所述第二亮度信息之间的关系,确定色彩调整参数;色彩调整模块,设置为根据所述色彩调整参数对所述图像进行色彩调整,以进行图像处理。
- 一种计算机可读的存储介质,所述计算机可读的存储介质中存储有计算机程序,其中,所述计算机程序被设置为运行时执行所述权利要求1至16、权利要求17至19任一项中所述的方法。
- 一种电子装置,包括存储器和处理器,所述存储器中存储有计算机程序,所述处理器被设置为运行所述计算机程序以执行所述权利要求1至16、权利要求17至19任一项中所述的方法。
Applications Claiming Priority (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201911084130.7 | 2019-11-07 | ||
CN201911084130.7A CN112788251B (zh) | 2019-11-07 | 2019-11-07 | 图像亮度处理方法及装置、图像处理方法及装置 |
Publications (1)
Publication Number | Publication Date |
---|---|
WO2021088639A1 true WO2021088639A1 (zh) | 2021-05-14 |
Family
ID=75748066
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
PCT/CN2020/122231 WO2021088639A1 (zh) | 2019-11-07 | 2020-10-20 | 图像亮度处理方法及装置、图像处理方法及装置 |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN112788251B (zh) |
WO (1) | WO2021088639A1 (zh) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN114466147A (zh) * | 2021-12-23 | 2022-05-10 | 阿里巴巴(中国)有限公司 | 一种视频亮度的调整方法、装置、电子设备以及存储介质 |
CN117495751A (zh) * | 2023-11-02 | 2024-02-02 | 凯多智能科技(上海)有限公司 | 一种图像亮度均衡处理方法、装置及电子设备 |
Families Citing this family (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN114119432A (zh) * | 2021-11-09 | 2022-03-01 | 深圳Tcl数字技术有限公司 | 图像处理方法、装置、电子设备及存储介质 |
CN115018736A (zh) * | 2022-07-22 | 2022-09-06 | 广州市保伦电子有限公司 | 一种图像亮度均匀处理方法及处理终端 |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US5808697A (en) * | 1995-06-16 | 1998-09-15 | Mitsubishi Denki Kabushiki Kaisha | Video contrast enhancer |
CN101303765A (zh) * | 2008-06-23 | 2008-11-12 | 四川虹微技术有限公司 | 一种基于图像均方差的图像对比度增强方法 |
CN101340523A (zh) * | 2008-08-14 | 2009-01-07 | 北京中星微电子有限公司 | 一种对数字图像进行曝光补偿的方法和装置 |
CN101378480A (zh) * | 2007-08-31 | 2009-03-04 | 卡西欧计算机株式会社 | 灰度修正装置、灰度修正方法、灰度修正程序 |
CN101540832A (zh) * | 2009-04-24 | 2009-09-23 | 段江 | 图像信号的动态范围匹配方法 |
US20180205867A1 (en) * | 2015-06-16 | 2018-07-19 | Hitachi Kokusai Electric Inc. | Imaging device and image processing method |
Family Cites Families (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2013196454A (ja) * | 2012-03-21 | 2013-09-30 | Honda Elesys Co Ltd | 画像処理装置、画像処理方法および画像処理プログラム |
CN105979237A (zh) * | 2016-06-01 | 2016-09-28 | 努比亚技术有限公司 | 一种图像处理方法及装置 |
CN110099222B (zh) * | 2019-05-17 | 2021-05-07 | 睿魔智能科技(深圳)有限公司 | 一种拍摄设备的曝光调整方法、装置、存储介质及设备 |
-
2019
- 2019-11-07 CN CN201911084130.7A patent/CN112788251B/zh active Active
-
2020
- 2020-10-20 WO PCT/CN2020/122231 patent/WO2021088639A1/zh active Application Filing
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US5808697A (en) * | 1995-06-16 | 1998-09-15 | Mitsubishi Denki Kabushiki Kaisha | Video contrast enhancer |
CN101378480A (zh) * | 2007-08-31 | 2009-03-04 | 卡西欧计算机株式会社 | 灰度修正装置、灰度修正方法、灰度修正程序 |
CN101303765A (zh) * | 2008-06-23 | 2008-11-12 | 四川虹微技术有限公司 | 一种基于图像均方差的图像对比度增强方法 |
CN101340523A (zh) * | 2008-08-14 | 2009-01-07 | 北京中星微电子有限公司 | 一种对数字图像进行曝光补偿的方法和装置 |
CN101540832A (zh) * | 2009-04-24 | 2009-09-23 | 段江 | 图像信号的动态范围匹配方法 |
US20180205867A1 (en) * | 2015-06-16 | 2018-07-19 | Hitachi Kokusai Electric Inc. | Imaging device and image processing method |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN114466147A (zh) * | 2021-12-23 | 2022-05-10 | 阿里巴巴(中国)有限公司 | 一种视频亮度的调整方法、装置、电子设备以及存储介质 |
CN114466147B (zh) * | 2021-12-23 | 2024-03-15 | 阿里巴巴(中国)有限公司 | 一种视频亮度的调整方法、装置、电子设备以及存储介质 |
CN117495751A (zh) * | 2023-11-02 | 2024-02-02 | 凯多智能科技(上海)有限公司 | 一种图像亮度均衡处理方法、装置及电子设备 |
CN117495751B (zh) * | 2023-11-02 | 2024-05-03 | 凯多智能科技(上海)有限公司 | 一种图像亮度均衡处理方法、装置及电子设备 |
Also Published As
Publication number | Publication date |
---|---|
CN112788251B (zh) | 2023-07-14 |
CN112788251A (zh) | 2021-05-11 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
WO2021088639A1 (zh) | 图像亮度处理方法及装置、图像处理方法及装置 | |
CN111028189B (zh) | 图像处理方法、装置、存储介质及电子设备 | |
WO2019148912A1 (zh) | 一种图像处理方法、装置、电子设备及存储介质 | |
US10565742B1 (en) | Image processing method and apparatus | |
CN107909553B (zh) | 一种图像处理方法及设备 | |
JP6615917B2 (ja) | 実時間ビデオエンハンスメント方法、端末及び非一時的コンピュータ可読記憶媒体 | |
CN110460826B (zh) | 白平衡处理方法、处理装置和移动终端 | |
CN112752023B (zh) | 一种图像调整方法、装置、电子设备及存储介质 | |
CN106570838B (zh) | 一种图像亮度优化方法及装置 | |
WO2020135234A1 (zh) | 一种图像处理方法及装置 | |
WO2021218603A1 (zh) | 图像处理方法及投影系统 | |
CN111163301B (zh) | 色彩调整方法、装置及计算机可读存储介质 | |
CN112218065B (zh) | 图像白平衡方法、系统、终端设备及存储介质 | |
CN111311513A (zh) | 图像的颜色风格统一方法、设备及计算机存储介质 | |
CN110175967B (zh) | 图像去雾处理方法、系统、计算机设备和存储介质 | |
CN106847150B (zh) | 调节显示屏亮度的装置及方法 | |
CN111970501A (zh) | 纯色场景ae色彩处理方法、装置、电子设备及存储介质 | |
WO2018209984A1 (zh) | 图像处理方法和装置 | |
CN113099191B (zh) | 一种图像处理方法及装置 | |
JPH10271524A (ja) | 画像処理装置及び画像処理方法並びに画像処理プログラムを記録した媒体 | |
CN114219723A (zh) | 一种图像增强方法、图像增强装置和计算机可读存储介质 | |
CN110072050B (zh) | 曝光参数的自适应调整方法、装置及一种拍摄设备 | |
JP3664395B2 (ja) | 画像処理装置及び画像処理方法並びに画像処理プログラムを記録した媒体 | |
CN115086566B (zh) | 图片场景检测方法、装置 | |
WO2022246663A1 (zh) | 图像处理方法、设备、系统和存储介质 |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
121 | Ep: the epo has been informed by wipo that ep was designated in this application |
Ref document number: 20884536 Country of ref document: EP Kind code of ref document: A1 |
|
NENP | Non-entry into the national phase |
Ref country code: DE |
|
122 | Ep: pct application non-entry in european phase |
Ref document number: 20884536 Country of ref document: EP Kind code of ref document: A1 |
|
32PN | Ep: public notification in the ep bulletin as address of the adressee cannot be established |
Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205A DATED 22/02/2023) |
|
122 | Ep: pct application non-entry in european phase |
Ref document number: 20884536 Country of ref document: EP Kind code of ref document: A1 |