WO2021088639A1 - 图像亮度处理方法及装置、图像处理方法及装置 - Google Patents

图像亮度处理方法及装置、图像处理方法及装置 Download PDF

Info

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
Application number
PCT/CN2020/122231
Other languages
English (en)
French (fr)
Inventor
郑亮
Original Assignee
中兴通讯股份有限公司
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by 中兴通讯股份有限公司 filed Critical 中兴通讯股份有限公司
Publication of WO2021088639A1 publication Critical patent/WO2021088639A1/zh

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/60Control of cameras or camera modules
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/70Circuitry for compensating brightness variation in the scene
    • H04N23/76Circuitry for compensating brightness variation in the scene by influencing the image signals
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/80Camera 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

图像亮度处理方法及装置、图像处理方法及装置 技术领域
本发明实施例涉及图像处理领域,具体而言,涉及一种图像亮度处理方法及装置、图像处理方法及装置
背景技术
目前,智能终端多具备摄像功能;在上述智能终端实现摄像功能的过程中,可能由于终端采用硬件的自身性能较低,或终端在长期使用过程中造成的摄像镜头磨损等因素,导致终端实际拍摄过程中的成像质量存在缺陷,进而严重影响用户的拍摄体验。
针对上述相关技术中,终端拍摄过程中受限于硬件性能或损耗而导致成像质量不佳的问题,相关技术中尚未提出有效的解决方案。
发明内容
本发明实施例提供一种图像亮度处理方法及装置、图像处理方法及装置,以至少解决相关技术中终端拍摄过程中受限于硬件性能或损耗而导致成像质量不佳的问题。
本发明实施例提供了一种图像亮度处理方法,包括:
将待处理的图像划分为多个子区域,获取每一个所述子区域的亮度调整信息;
根据所述亮度调整信息,确定每一个所述子区域的亮度调整参数;
根据以下对象中的至少之一,对所述图像中的每一个像素进行亮度调整以进行图像亮度处理:第一子区域的第一亮度调整参数,第二子区域的第二亮度调整参数;
其中,所述第一子区域为所述像素所在的所述子区域,所述第二子区域为所述第一子区域相邻的一个或多个所述子区域。
本发明实施例还提供了一种图像处理方法,包括上述实施例中所述的图像亮度处理方法,所述图像处理方法包括:
确定所述图像的第一亮度信息与第二亮度信息,其中,所述第一亮度信息为所述图像进行图像亮度处理前的原始亮度信息,所述第二亮度信息为所述图像进行图像亮度处理后的亮度信息;
根据所述第一亮度信息,以及所述第一亮度信息与所述第二亮度信息之间的关系,确定色彩调整参数;
根据所述色彩调整参数对所述图像进行色彩调整,以进行图像处理。
本发明实施例还提供了一种图像亮度处理装置,包括:
划分模块,设置为将待处理的图像划分为多个子区域,获取每一个所述子区域的亮度调整信息;
参数确定模块,设置为根据所述亮度调整信息,确定每一个所述子区域的亮度调整参数;
亮度调整模块,设置为根据以下对象中的至少之一,对所述图像中的每一个像素进行亮度调整以进行图像亮度处理:第一子区域的第一亮度调整参数,第二子区域的第二亮度调整参数;
其中,所述第一子区域为所述像素所在的所述子区域,所述第二子区域为所述第一子区域相邻的一个或多个所述子区域。
本发明实施例还提供了一种图像处理装置,包括上述实施例中所述的图像亮度处理装置,所述图像处理装置包括:
信息确定模块,设置为确定所述图像的第一亮度信息与第二亮度信息,其中,所述第一亮度信息为所述图像进行图像亮度处理前的原始亮度信息,所述第二亮度信息为所述图像进行图像亮度处理后的亮度信息;
比较模块,设置为根据所述第一亮度信息,以及所述第一亮度信息与所述第二亮度信息之间的关系,确定色彩调整参数;
色彩调整模块,设置为根据所述色彩调整参数对所述图像进行色彩调 整,以进行图像处理。
本发明实施例还提供了一种计算机可读的存储介质,所述计算机可读的存储介质中存储有计算机程序,其中,所述计算机程序被设置为运行时执行上述任一项方法实施例中的步骤。
本发明实施例还提供了一种电子装置,包括存储器和处理器,所述存储器中存储有计算机程序,所述处理器被设置为运行所述计算机程序以执行上述任一项方法实施例中的步骤。
通过本发明实施例,由于可将待处理的图像划分为多个子区域,获取每一个所述子区域的亮度调整信息,并根据所述亮度调整信息,确定每一个所述子区域的亮度调整参数,进而根据以下对象中的至少之一,对所述图像中的每一个像素进行亮度调整以进行图像亮度处理:第一子区域的第一亮度调整参数,第二子区域的第二亮度调整参数;因此,本发明实施例可以解决相关技术中终端拍摄过程中受限于硬件性能或损耗而导致成像质量不佳的问题,以达到提升终端成像效果的问题。
附图说明
此处所说明的附图用来提供对本发明的进一步理解,构成本申请的一部分,本发明的示意性实施例及其说明用于解释本发明,并不构成对本发明的不当限定。在附图中:
图1是根据本发明实施例提供的图像亮度处理方法的流程图;
图2是根据本发明实施例提供的图像划分示意图;
图3是根据本发明实施例提供的像素数量统计示意图;
图4是根据本发明实施例提供的像素数量在亮度子区间的统计示意图;
图5是根据本发明实施例提供的像素位置的示意图;
图6是根据本发明实施例提供的图像处理方法的流程图;
图7是根据本发明实施例提供的图像亮度处理方法的结构框图;
图8是根据本发明实施例提供的图像处理装置的结构框图。
具体实施方式
下文中将参考附图并结合实施例来详细说明本发明。需要说明的是,在不冲突的情况下,本申请中的实施例及实施例中的特征可以相互组合。
需要说明的是,本发明的说明书和权利要求书及上述附图中的术语“第一”、“第二”等是用于区别类似的对象,而不必用于描述特定的顺序或先后次序。
一方面,本发明实施例提供了一种图像亮度处理方法,图1是根据本发明实施例提供的图像亮度处理方法的流程图,如图1所示,本实施例中的图像亮度处理方法包括:
S102,将待处理的图像划分为多个子区域,获取每一个子区域的亮度调整信息。
需要进一步说明的是,上述步骤S102中,将待处理的图像划分为多个子区域,指示按照预设的划分方式将待处理的图像无间隙的划分为对应的多个子区域,通常而言,多个子区域的区域大小均相同,但多个子区域的图像也可以不同,本发明对此不作限定。图2是根据本发明实施例提供的图像划分的示意图,上述步骤S102中,将待处理的图像划分为多个子区域后的图像如图2所示;如图2所示,将待处理的图像划分为X*Y个子区间,其中,为便于对子区间进行区分,可将子区间通过N(i,j)进行表示,其中,i为1至X的区间内的任意值,j为1至Y的区间内的任意值。同时,上述步骤S102中,获取每一个子区域的亮度调整信息,即指示对于该子区域的亮度信号进行统计或分析处理,以获取对应的亮度调整信息。
本发明实施例中,为实现上述获取每一个子区域的亮度调整信息,即每一个子区域对应的亮度信号与色彩信号需分离,以可对于亮度信号单独处理进而获取亮度调整信息。故此,每一个子区域的格式应为亮度信号与色彩信号分离的图像格式,例如,HSV格式、YUV格式等。
需要进一步说明的是,上述步骤S102中,在待处理的图像即为上述HSV格式或YUV格式的情形下,则无需进行格式处理,在待处理的图像不满足上述格式要求时,上述步骤S102中,可以在对于待处理的图像进行划分子区域前,对待处理的图像进行格式转换处理,以得到对应的HSV格式或YUV格式的图像,也可以在划分子区域后,对每一个子区域进行格式处理,以得到对应的HSV格式或YUV格式的子区域;本发明对此不作限定。通常而言,采用在步骤S102执行前即对待处理的图像进行转换以得到的对应的HSV格式或YUV格式的图像的方式。上述对图像进行格式转换处理可采用本领域的常规方式,本发明在此不再赘述。
在一可选实施例中,亮度调整信息包括以下至少之一:亮度分布信息,亮度均度信息;其中,亮度分布信息用于指示子区域中多个亮度值分别对应的像素数量的分布信息;亮度均度信息用于指示子区域中多个像素对应的亮度值的均度信息。
需要进一步说明的是,上述亮度调整信息可以采用亮度分布信息或亮度均度信息,或同时采用亮度分布信息与亮度均度信息。上述亮度分布信息即指示一个子区域中不同像素值对应的像素数量的分布信息,例如,一个子区域中存在30万像素,该30万像素对应的亮度值为0至255,则对于每一个亮度值而言,可通过统计或计算的方式确定该亮度值对应的像素数量,并进一步确定不同亮度值对应的像素数量的分布状况。同时,上述亮度均度信息即指示一个子区域中不同像素之间的亮度值的分布均度,具体而言,即不同像素之间的亮度差异的幅度。
上述不同亮度值对应的像素数量的分布状况可以通过不同亮度值分别对应的像素数量的分布数量,如亮度值小于100对应的像素数量的统计值等,也可以通过不同亮度值对应的像素数量的分布概率进行体现,本发明对此不作限定。
在一可选实施例中,在亮度调整信息至少包括亮度分布信息的情形下,上述步骤S102中,获取每一个子区域的亮度调整信息,包括:
获取子区域中每一个亮度值分别对应的像素数量;
根据每一个亮度值分别对应的像素数量,确定子区域中每一个亮度值分别对应的像素数量的累积分布信息;其中,累积分布信息用于指示像素数量的分布状况;
根据累积分布信息获取子区域的亮度分布信息。
需要进一步说明的是,本可选实施例采用每一个亮度值分别对应的像素数量的累积分布信息以作为亮度分布信息;具体而言,上述累积分布信息即指示某一亮度值对应的像素数量的累积,例如,亮度值100对应的像素数量的累积即为0至100的亮度值分别所对应的像素数量的叠加。根据上述累积分布信息,即可直观的确定子区域内像素数量的分布状况。
在一可选实施例中,上述获取子区域中每一个亮度值分别对应的像素数量,包括:
建立子区域中多个亮度值与亮度值对应的像素数量之间的直方图histogram,以获取子区域中每一个亮度值分别对应的像素数量。
需要进一步说明的是,上述直方图histogram即为多个亮度值与亮度值对应的像素数量的统计图,图3是根据本发明实施例提供的像素数量统计示意图,如图3所示,图3中的直方图曲线即表示了不同亮度值下对应的像素数量的统计;具体而言,该直方图histogram的横坐标为亮度值0至255,纵坐标为像素数量,即每一个亮度值所统计的像素数量。上述直方图的建立可由终端的处理器根据预设的程序或指令对子区域内的亮度值及对应的像素数量进行统计进而建立,本发明在此不再赘述。
在一可选实施例中,建立子区域中多个亮度值与亮度值对应的像素数量之间的直方图之后,还包括:
根据预设的直方图幅度极值,对直方图进行裁剪处理。
需要进一步说明的是,上述可选实施例中,直方图幅度极值用于指示直方图中,像素数量的极大值与极小值之间的变化幅度,根据预设的直方图幅度极值,对直方图进行裁剪处理,可有效避免该直方图存在过暗(阴 影较多)以及过亮(过曝)的现象。
在一可选实施例中,上述根据每一个亮度值分别对应的像素数量,确定子区域中每一个亮度值分别对应的像素数量的累积分布信息,包括:
对直方图进行积分处理,以建立子区域中多个亮度值与亮度值对应的像素数量之间的累积分布函数(Cumulative Distribution Function,CDF)图像;
根据CDF图像,确定子区域中每一个亮度值分别对应的累积分布信息。
需要进一步说明的是,上述CDF图像,具体即指示对前述子区域对应的直方图中的亮度值所对应的像素数量进行累积统计,以确定该子区域中亮度值对应的像素数量的累积分布信息。如图3所示,图3中的CDF图像曲线即指示了亮度值对应的像素数量的累积分布信息,具体而言,横坐标中每一个亮度值,如亮度值X对应的CDF数值,即指示了数值为0至X的亮度值对应的像素数量的累计。上述CDF图像的建立可以对直方图进行积分处理,该积分处理可由终端的处理器根据预设的程序或指令对完成,本发明在此不再赘述。
在一可选实施例中,在亮度调整信息至少包括亮度均度信息的情形下,获取每一个子区域的亮度调整信息,包括:
获取子区域中多个像素对应的亮度值之间的亮度方差信息,以获取亮度均度信息。
需要进一步说明的是,上述可选实施例中,可通过计算子区域中多个像素对应的亮度值的方差以得到亮度方差信息,进而将该亮度方差信息作为亮度均度信息;上述亮度方差信息在计算时,可以采用确定该子区域中多个像素对应的亮度值的平均值,再根据该平均值与多个像素对应的亮度值以确定亮度方差信息。
S104,根据亮度调整信息,确定每一个子区域的亮度调整参数;
需要进一步说明的是,上述亮度调整参数具体可以采用一个映射函数 进行表示。
在一可选实施例中,在亮度调整信息至少包括亮度分布信息的情形下,上述步骤S104中,根据亮度调整信息,确定每一个子区域的亮度调整参数,包括:
根据亮度分布信息确定子区域对应的一个或多个比例信息,其中,比例信息用于指示预设的亮度子区间对应的像素数量相对于预设的亮度区间对应的像素数量的比例;亮度区间用于指示亮度值的区间,亮度子区间用于指示亮度区间的子区间;
根据比例信息与预设的比例阈值之间的关系,确定子区域对应的亮度调整参数。
需要进一步说明的是,上述比例信息即根据预设的亮度区间与亮度子区间进行确定,亮度子区间即可指示子区域中不同亮度设定(如,暗光、中亮、高亮)对应的亮度值的子区间,亮度区间即为上述多个亮度子区间的集合。
在一可选实施例中,亮度区间为连续区间,或者,亮度区间为非连续区间。
需要进一步说明的是,上述亮度区间为连续区间,即指示亮度区间中对应的多个亮度子区间是连续的;上述亮度区间为非连续区间,即指示亮度区间中对应的相邻两个亮度子区间之间非连续,而可能具有其它的亮度值。
在一可选实施例中,在亮度调整信息包括亮度均布信息的情形下,根据比例信息与预设的比例阈值之间的关系,确定子区域对应的亮度调整参数,还包括:
根据亮度均布信息确定子区域对应的亮度方差信息;
根据以下对象中的至少之一确定子区域对应的亮度调整参数:
比例信息与比例阈值之间的关系,亮度方差信息与预设的方差阈值之 间的关系。
在一可选实施例中,亮度子区间包括:第一亮度子区间、第二亮度子区间、第三亮度子区间;
其中,第一亮度子区间用于指示低亮度值区间,第二亮度子区间用于指示中亮度值区间,第二亮度子区间用于指示高亮度值区间。
需要进一步说明的是,上述可选实施例中即通过第一亮度子区间、第二亮度子区间、第三亮度子区间分别指示低亮度、中亮度以及高亮度分别对应的亮度值区间;根据前述,第一亮度子区间、第二亮度子区间以及第三亮度子区间之间可以为连续区间,也可以为非连续区间。
在一可选实施例中,上述根据亮度分布信息确定子区域对应的一个或多个比例信息,包括:
根据亮度分布信息,确定子区域对应的第一比例信息、第二比例信息以及第三比例信息;
其中,第一比例信息为第一亮度子区间对应的像素数量相比于亮度区间对应的像素数量的比例;第二比例信息为第二亮度子区间对应的像素数量相比于亮度区间对应的像素数量的比例;第三比例信息为第三亮度子区间对应的像素数量相比于亮度区间对应的像素数量的比例;
根据比例信息与预设的比例阈值之间的关系,确定子区域对应的亮度调整参数,包括:
根据以下对象确定子区域对应的亮度调整参数:第一比例信息与预设的第一比例阈值之间的关系,第二比例信息与预设的第二比例阈值之间的关系,第三比例信息与预设的第三比例阈值之间的关系,亮度方差信息与预设的第一方差阈值之间的关系,亮度方差信息与预设的第二方差阈值之间的关系,亮度方差信息与预设的第三方差阈值之间的关系。
需要进一步说明的是,上述可选实施例中即针对代表低亮度、中亮度以及高亮度的第一亮度子区间、第二亮度子区间、第三亮度子区间分别设置比例信息,即第一比例信息、第二比例信息以及第三比例信息进行对应 的判断。在此基础上,确定子区域对应的亮度调整参数的过程即可将对应的比例信息与对应的比例阈值之间进行比较,并将亮度方差信息与对应的方差阈值之间进行比较,从而根据比较结果确定的相应关系以确定亮度调整参数。
在一可选实施例中,上述根据以下对象确定子区域对应的亮度调整参数,包括,
在第一比例信息小于或等于第一比例阈值的情形下,至少确定第一亮度调整参数为子区域对应的亮度调整参数;或者,
在第一比例信息大于第一比例阈值,以及亮度方差信息小于第一方差阈值的情形下,至少确定第一亮度调整参数或第四亮度调整参数为子区域对应的亮度调整参数;或者,
在第一比例信息大于第一比例阈值,以及亮度方差信息大于或等于第一方差阈值的情形下,至少确定第二亮度调整参数为子区域对应的亮度调整参数;或者,
在第二比例信息小于或等于第二比例阈值的情形下,至少确定第二亮度调整参数为子区域对应的亮度调整参数;或者,
在第二比例信息大于第二比例阈值,以及亮度方差信息小于第二方差阈值的情形下,至少确定第一亮度调整参数或第四亮度调整参数为子区域对应的亮度调整参数;或者,
在第二比例信息大于第二比例阈值,以及亮度方差信息大于或等于第二方差阈值的情形下,至少确定第一亮度调整参数或第二亮度调整参数为子区域对应的亮度调整参数;或者,
在第三比例信息小于或等于第三比例阈值的情形下,至少确定第一亮度调整参数为子区域对应的亮度调整参数;或者,
在第三比例信息大于第三比例阈值,以及亮度方差信息小于第三方差阈值的情形下,至少确定第一亮度调整参数或第四亮度调整参数为子区域对应的亮度调整参数;或者,
在第三比例信息大于第三比例阈值,以及亮度方差信息大于或等于第三方差阈值的情形下,至少确定第三亮度调整参数为子区域对应的亮度调整参数。
为进一步说明上述可选实施例中亮度调整参数的确定过程,以下结合示例性实施例的方式进行说明。
S1,首先,设置上述第一亮度子区间、第二亮度子区间以及第三亮度子区间分别为region low=[t 1,t 2],region mid=[t 3,t 4],region high=[t 5,t 6],对应的亮度区间即为上述第一亮度子区间、第二亮度子区间以及第三亮度子区间的总和;进一步计算三个亮度子区间分别对应的像素总数,分别为:
sum(region low)、sum(mid_region)、sum(high_region);
以此即可确定三个亮度子区间对应的像素总数相对于亮度区间的像素总数的比例。
需要进一步说明的是,由于本实施例中已经获取了子区域对应的CDF图,因此,基于CDF图也可直接获取对应的比例信息,而无需经过像素数量的比例计算,而可根据亮度子区间的设定,直接从CDF图中获取对应的比例信息,图4是根据本发明实施例提供的像素数量在亮度子区间的统计示意图,图3中所示的CDF图在上述亮度子区间内的分布如图4所示,具体为:
第一比例信息:
Figure PCTCN2020122231-appb-000001
第二比例信息:
Figure PCTCN2020122231-appb-000002
第三比例信息:
Figure PCTCN2020122231-appb-000003
S2,基于上述S1中获取的第一比例信息、第二比例信息以及第三比例信息,即可进一步结合亮度方差信息进行亮度调整参数的确定;本示例性实施例中,亮度调整参数采用映射函数,即map (i,j)进行表示;亮度方差 信息采用δ (i,j)进行表示;第一比例阈值采用rth 1进行表示;第二比例阈值采用rth 2进行表示;第三比例阈值采用rth 3进行表示;第一方差阈值采用δth 1进行表示,第二方差阈值采用δth 2进行表示,第一方差阈值采用δth 3进行表示;其中,i,j用于指示该子区域在图像中的坐标位置。
此外,上述可选实施例中,第一亮度调整参数指示采用type1类型作为map (i,j);第二亮度调整参数指示采用type2类型作为map (i,j);第二亮度调整参数指示采用type3类型作为map (i,j);第四亮度调整参数指示不对该子区域进行亮度调整,即不做处理。
上述亮度调整参数的具体确定过程如下:
1)当ratio low≤rth 1时,采用type1类型作为map (i,j)
2)当ratio low>rth 1时,结合亮度方差信息进一步判断;
2.1),当δ (i,j)<δth 1时,即可确定子区域N (i,j)为低亮度区域且亮度分布比较均匀,对应map (i,j)采用type1或不处理。
2.2),当δ (i,j)≥δth 1时,即可确定子区域N (i,j)为低亮度区域,且细节较为充足,对应map (i,j)采用type2。
3)当ratio mid≤rth 2时,采用type2作为map (i,j)
4)当ratio mid>rth 2时,结合亮度方差信息进一步判断;
4.1)当δ (i,j)<δth 2时,即可确定子区域N (i,j)为中亮度与区域且亮度分布比较均匀,对应map (i,j)采用type1或不处理。
4.2)当δ (i,j)≥δth 2时,即可确定子区域N (i,j)为中亮度区域,且细节较为充足,对应map (i,j)采用type1或type2。
5)当ratio high≤rth 3时,采用type1作为map (i,j)
6)当ratio high>rth 2时,结合亮度方差信息进一步判断;
5.1)当δ (i,j)<δth 3时,即可确定子区域N (i,j)为高亮度区域且亮度分布比较均匀,对应map (i,j)采用type1处理或不处理。
5.2)当δ (i,j)≥δth 3时,即可确定子区域N (i,j)为高亮度区域,且细节较为 充足,对应map (i,j)采用type3。
需要进一步说明的是,本可选实施例中,在确定子区域对应的亮度调整参数时,除以上判断方式,通常还可默认采用type1作为map (i,j)进行处理,或在涉及复杂场景下,采用type1与type2或type3的结合进行对应处理。
上述type1对应的map (i,j)具体为,
Figure PCTCN2020122231-appb-000004
上述type2对应的map (i,j)具体为,
Figure PCTCN2020122231-appb-000005
上述type3对应的map (i,j)具体为,
Figure PCTCN2020122231-appb-000006
基于上述示例性实施例,即可确定子区域对应的亮度调整参数。
S106,根据以下对象中的至少之一,对图像中的每一个像素进行亮度调整以进行图像亮度处理:第一子区域的第一亮度调整参数,第二子区域的第二亮度调整参数;
其中,第一子区域为像素所在的子区域,第二子区域为第一子区域相邻的一个或多个子区域。
在一可选实施例中,上述步骤S106中,根据以下对象中的至少之一,对图像中的每一个像素进行亮度调整以进行图像亮度处理,包括:
根据像素在图像中的位置,确定像素对应的第二子区域的数量;
根据第二子区域的数量以及像素相对于第一子区域的中心点的位置,确定第二子区域;
根据第一子区域的亮度调整参数以及第二子区域的亮度调整参数,对像素进行亮度调整。
需要进一步说明的是,上述可选实施例中,可根据像素与对应的子区域之间的空间位置关系以确定该像素所对应的第一子区域以及第二子区域,从而完成对该像素的亮度调整。
图5是根据本发明实施例提供的像素位置的示意图,如图5所示,图 像中待进行亮度调整的像素包括位于同一子区域的像素A,像素B以及像素C,其在图像中的位置如图5所示。对于上述像素A,像素B,像素C而言,可进一步将其所在的子区域以该子区域的中心点为原点划分为四个象限,其中,像素A位于第一象限,像素B位于第二象限,像素C位于第三象限。以下对于像素A、像素B以及像素C对应的第二子区域的选择进行说明。
对于像素A,该像素在子区域中靠近图像的顶点位置,图像中其余的子区域与像素A的距离均相远,因此,像素A仅可以选择第一子区域作为亮度调整的对象,而无需或无法选择第二子区域。
对于像素B,该像素在子区域中靠近图像的边界位置,图像中仅有与该第二象限相邻的子区域与像素B的距离相近,因此,像素B可以在选择第一子区域作为亮度调整的对象的同时,选取位于第一子区域右侧的子区域作为像素B的第二子区域。需要进一步说明的是,位于第四象限的像素也可参照像素B的处理,类似的,可选取位于第一子区域下侧的子区域作为对应像素的第二子区域。
对于像素C而言,该像素在子区域中靠近图像的内部位置,图像中与像素C所在子区域相邻的子区域(右侧、下侧,以及斜下方)与像素C的距离均相近,因此,像素C可以在选择第一子区域作为亮度调整的对象的同时,选取分别位于第一子区域右侧、下侧以及斜下方的三个子区域作为第二子区域。
对于图像中的其余子区域而言,均可参照上述方式进行像素对应的第二子区域的选择;对于处于图像的四个顶点位置的子区域,可参照上述子区域进行对应确定,对于位于图像中任意两个相邻顶点之间的边界位置的子区域,则可将该子区域区分为靠近图像边界的部分以及靠近图像内部的部分,前者可参照上述像素B的处理,后者可参照上述像素C的处理;对于处于图像内部的子区域,则均可参照上述像素C的处理(如像素在其所在的子区间偏上的位置,则可用斜上方的子区域作为第二子区域)。
在一可选实施例中,上述步骤S106中,根据以下对象中的至少之一,对图像中的每一个像素进行亮度调整以进行图像亮度处理,包括:
确定每一个子区域的中心点的位置;
根据像素与多个子区域对应的中心点之间的距离关系,确定第一子区域以及第二子区域;
根据第一子区域的亮度调整参数以及第二子区域的亮度调整参数,对像素进行亮度调整。
需要进一步说明的是,上述可选实施例中,可直接根据像素与对应的子区域之间的距离关系,以确定该像素所对应的第一子区域以及第二子区域,从而完成对该像素的亮度调整;通常而言,上述距离关系中,当某一子区域的中心点与目标像素之间的距离小于或等于子区域的长度或宽度或对角线长度时,即可认为该子区域是目标像素的第二子区域。
本可选实施例中的方案与上述可选实施例中根据像素与对应的子区域之间的空间位置关系,确定像素对应的第一子区域以及第二子区域属于可相互替代的技术方案,本发明对此不作限定。
在一可选实施例中,根据第一子区域的亮度调整参数以及第二子区域的亮度调整参数,对像素进行亮度调整,包括:
根据第一子区域的亮度调整参数以及第二子区域的亮度调整参数,对像素进行插值处理,以对像素进行亮度调整。
需要进一步说明的是,根据第一子区域的亮度调整参数以及第二子区域的亮度调整参数,具体即获取该像素对应的第一子区域和/或第二子区域对应的映射函数map (i,j),以像素具有三个第二子区域为例,则像素对应的第一子区域以及第二子区域的映射函数分别为:map (i,j),map (i+1,j),map (i,j+1),map (i+1,j+1),对于像素的原始亮度v in(x,y)而言,将其代入至上述四个映射函数中,即可对应得到v map(i,j),v map(i+1,j),v map(i,j+1),v map(i+1,j+1);此时,即可采用插值处理以确定上述像素对应的亮度处理的输出值v out(x,y),具体而言,上述插值处理可为双线性插值处理,
Figure PCTCN2020122231-appb-000007
基于此,即可完成对该像素的亮度处理。
逐一对图像中的每一个像素按照本实施例中的S102至S104的步骤进行处理,则可得到每一个像素对应的亮度处理的输出值,进而完成每一个像素的亮度处理,从而实现对图像的亮度处理,此处可将图像对应亮度处理后的亮度表示为V dst
通过本实施例中的图像亮度处理方法,由于可将待处理的图像划分为多个子区域,获取每一个所述子区域的亮度调整信息,并根据所述亮度调整信息,确定每一个所述子区域的亮度调整参数,进而根据以下对象中的至少之一,对所述图像中的每一个像素进行亮度调整以进行图像亮度处理:第一子区域的第一亮度调整参数,第二子区域的第二亮度调整参数;因此,本发明可以解决相关技术中终端拍摄过程中受限于硬件性能或损耗而导致成像质量不佳的问题,以达到提升终端成像效果的问题。
具体而言,本实施例中的图像亮度处理方法可以在终端拍摄过程中自动完成处理,也向用户提供提升画质等类似的操作选项,以供用户主动进行操作,本发明对此不作限定。
通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到根据上述实施例的方法可借助软件加必需的通用硬件平台的方式来实现,当然也可以通过硬件,但很多情况下前者是更佳的实施方式。基于这样的理解,本发明的技术方案本质上或者说对现有技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个计算机可读的存储介质(如ROM/RAM、磁碟、光盘)中,包括若干指令用以使得一台终端设备(可以是手机,计算机,服务器,或者网络设备等)执行本发明各个实施例所述的方法。
另一方面,本发明实施例还提供了一种图像处理方法,本发明实施例中的图像处理方法包括上述实施例1中所述的图像亮度处理方法;图6是根据本发明实施例提供的图像处理方法的流程图,如图6所示,本发明实施例中的图像处理方法包括:
S202,确定图像的第一亮度信息与第二亮度信息,其中,第一亮度信息为图像进行图像亮度处理前的原始亮度信息,第二亮度信息为图像进行图像亮度处理后的亮度信息;
S204,根据第一亮度信息,以及第一亮度信息与第二亮度信息之间的关系,确定色彩调整参数;
S206,根据色彩调整参数对图像进行色彩调整,以进行图像处理。
需要进一步说明的是,上述第一亮度信息即采用实施例1中的图像亮度处理之前,图像的原始亮度信息,上述第二亮度信息即采用实施例1中的亮度处理后的图像的亮度信息。上述图像亮度处理的技术方案以及技术效果均与实施例1对应,本实施例中在此不再赘述。
通过本发明实施例中的方法,可以在实施例1中的图像亮度处理方法以对于图像进行亮度处理的基础上,对于图像的对比度或色度进行进一步的调整,进而从多个角度显著改善成像画质。
在一可选实施例中,上述色彩调整参数包括:对比度调整参数、色度调整参数。
在一可选实施例中,上述步骤S204中,根据第一亮度信息,以及第一亮度信息与第二亮度信息之间的关系,确定色彩调整参数,包括:
根据第一亮度信息所在的区间,确定数值变化参数以及比例变化参数;
根据以下对象确定色彩调整参数:第二亮度信息相对于第一亮度信息的变化数值与数值变化参数之间的关系,第二亮度信息相对于第一亮度信息的变化比例与比例变化参数之间的关系。
需要进一步说明的是,上述第一亮度信息所在的区间为预设的亮度值区间,通常可根据亮度值的低亮度、中亮度、高亮度进行区分,在此基础上,即可针对上述低亮度、中亮度、高亮度分别设置不同的数值变化参数以及比例变化参数,以对图像进行更准确的处理。上述第二亮度信息相对于第一亮度信息的变化比例,即指示第二亮度信息相比于第一亮度信息的变化数值与第二亮度信息之间的关系。
以下通过示例性实施例的方式对于上述处理过程进行说明,本示例性实施例中,色彩调整参数为对比度调整参数,即图像处理的对象为图像的对比度。
将图像进行处理前的原对比度表示为S orig,将图像进行处理后的对比度表示为S dst,同时设置图像处理前的第一亮度信息为V src,处理后的第二亮度信息为V dst,则有:
当v1<V src≤v2,且满足
Figure PCTCN2020122231-appb-000008
时,S dst=S src*K slow
当v2<V src≤v3,且满足
Figure PCTCN2020122231-appb-000009
时,S dst=S src*K smid
当v3<V src≤v4,且满足
Figure PCTCN2020122231-appb-000010
时,S dst=S src*K shigh
上述K low与R low即为低亮度下对应的数值变化参数以及比例变化参数,上述K mid与R mid即为中亮度下对应的数值变化参数以及比例变化参数,上述K high与R high即为高亮度下对应的数值变化参数以及比例变化参数;上述K low、R low、K mid、R mid、K high、R high均为预设的参数。同时,上述K slow、K smid、K shigh即为对比度调整参数,通常大于1。基于上述方法即可完成对于图像的对比度的处理,以直接得到处理后的对比度的输出值。当需要对图像的色度进行调整时,也可参照上述方法。
需要进一步说明的是,本实施例中的图像处理方法中也可以不区分第一亮度信息所在的区间,直接根据对应关系对对比度进行处理,即:
S dst=S src*K
在基于上述图像处理方法完成对图像的亮度以及对比度或色度的调整后,可直接将处理过程中所采用的如YUV格式图像转换为RGB格式图像进行输出,也可以将YUV格式的图像转换为RGB格式图像,通过3DLUT等方式处理后,再输出处理后的RGB格式图像。
通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到根据上述实施例的方法可借助软件加必需的通用硬件平台的方式来实现,当 然也可以通过硬件,但很多情况下前者是更佳的实施方式。基于这样的理解,本发明的技术方案本质上或者说对现有技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个计算机可读的存储介质(如ROM/RAM、磁碟、光盘)中,包括若干指令用以使得一台终端设备(可以是手机,计算机,服务器,或者网络设备等)执行本发明各个实施例所述的方法。
另一方面,本发明实施例还提供了一种图像亮度处理装置,该装置用于实现上述实施例及优选实施方式,已经进行过说明的不再赘述。如以下所使用的,术语“模块”可以实现预定功能的软件和/或硬件的组合。尽管以下实施例所描述的装置较佳地以软件来实现,但是硬件,或者软件和硬件的组合的实现也是可能并被构想的。图7是根据本发明实施例提供的图像亮度处理装置的结构框图,如图7所示,该装置包括:
划分模块302,设置为将待处理的图像划分为多个子区域,获取每一个子区域的亮度调整信息;
参数确定模块304,设置为根据亮度调整信息,确定每一个子区域的亮度调整参数;
亮度调整模块306,设置为根据以下对象中的至少之一,对图像中的每一个像素进行亮度调整以进行图像亮度处理:第一子区域的第一亮度调整参数,第二子区域的第二亮度调整参数;
其中,第一子区域为像素所在的子区域,第二子区域为第一子区域相邻的一个或多个子区域。
本实施例中的图像亮度处理装置的其余特征与技术效果均与实施例1中的图像亮度处理方法相对应,故在此不再赘述。
在一可选实施例中,亮度调整信息包括以下至少之一:亮度分布信息,亮度均度信息;
其中,亮度分布信息用于指示子区域中多个亮度值分别对应的像素数量的分布信息;亮度均度信息用于指示子区域中多个像素对应的亮度值的 均度信息。
在一可选实施例中,在亮度调整信息至少包括亮度分布信息的情形下,获取每一个子区域的亮度调整信息,包括:
获取子区域中每一个亮度值分别对应的像素数量;
根据每一个亮度值分别对应的像素数量,确定子区域中每一个亮度值分别对应的像素数量的累积分布信息;其中,累积分布信息用于指示像素数量的分布状况;
根据累积分布信息获取子区域的亮度分布信息。
在一可选实施例中,获取子区域中每一个亮度值分别对应的像素数量,包括:
建立子区域中多个亮度值与亮度值对应的像素数量之间的直方图,以获取子区域中每一个亮度值分别对应的像素数量。
在一可选实施例中,建立子区域中多个亮度值与亮度值对应的像素数量之间的直方图之后,还包括:
根据预设的直方图幅度极值,对直方图进行裁剪处理。
在一可选实施例中,根据每一个亮度值分别对应的像素数量,确定子区域中每一个亮度值分别对应的像素数量的累积分布信息,包括:
对直方图进行积分处理,以建立子区域中多个亮度值与亮度值对应的像素数量之间的累积分布函数CDF图像;
根据CDF图像,确定子区域中每一个亮度值分别对应的累积分布信息。
在一可选实施例中,在亮度调整信息至少包括亮度均度信息的情形下,获取每一个子区域的亮度调整信息,包括:
获取子区域中多个像素对应的亮度值之间的亮度方差信息,以获取亮度均度信息。
在一可选实施例中,在亮度调整信息至少包括亮度分布信息的情形下, 根据亮度调整信息,确定每一个子区域的亮度调整参数,包括:
根据亮度分布信息确定子区域对应的一个或多个比例信息,其中,比例信息用于指示预设的亮度子区间对应的像素数量相对于预设的亮度区间对应的像素数量的比例;亮度区间用于指示亮度值的区间,亮度子区间用于指示亮度区间的子区间;
根据比例信息与预设的比例阈值之间的关系,确定子区域对应的亮度调整参数。
在一可选实施例中,亮度区间为连续区间,或者,亮度区间为非连续区间。
在一可选实施例中,在亮度调整信息包括亮度均布信息的情形下,根据比例信息与预设的比例阈值之间的关系,确定子区域对应的亮度调整参数,还包括:
根据亮度均布信息确定子区域对应的亮度方差信息;
根据以下对象中的至少之一确定子区域对应的亮度调整参数:
比例信息与比例阈值之间的关系,亮度方差信息与预设的方差阈值之间的关系。
在一可选实施例中,亮度子区间包括:第一亮度子区间、第二亮度子区间、第三亮度子区间;
其中,第一亮度子区间用于指示低亮度值区间,第二亮度子区间用于指示中亮度值区间,第二亮度子区间用于指示高亮度值区间。
在一可选实施例中,根据亮度分布信息确定子区域对应的一个或多个比例信息,包括:
根据亮度分布信息,确定子区域对应的第一比例信息、第二比例信息以及第三比例信息;
其中,第一比例信息为第一亮度子区间对应的像素数量相比于亮度区间对应的像素数量的比例;第二比例信息为第二亮度子区间对应的像素数 量相比于亮度区间对应的像素数量的比例;第三比例信息为第三亮度子区间对应的像素数量相比于亮度区间对应的像素数量的比例;
根据比例信息与预设的比例阈值之间的关系,确定子区域对应的亮度调整参数,包括:
根据以下对象确定子区域对应的亮度调整参数:第一比例信息与预设的第一比例阈值之间的关系,第二比例信息与预设的第二比例阈值之间的关系,第三比例信息与预设的第三比例阈值之间的关系,亮度方差信息与预设的第一方差阈值之间的关系,亮度方差信息与预设的第二方差阈值之间的关系,亮度方差信息与预设的第三方差阈值之间的关系。
在一可选实施例中,根据以下对象确定子区域对应的亮度调整参数,包括,
在第一比例信息小于或等于第一比例阈值的情形下,至少确定第一亮度调整参数为子区域对应的亮度调整参数;或者,
在第一比例信息大于第一比例阈值,以及亮度方差信息小于第一方差阈值的情形下,至少确定第一亮度调整参数或第四亮度调整参数为子区域对应的亮度调整参数;或者,
在第一比例信息大于第一比例阈值,以及亮度方差信息大于或等于第一方差阈值的情形下,至少确定第二亮度调整参数为子区域对应的亮度调整参数;或者,
在第二比例信息小于或等于第二比例阈值的情形下,至少确定第二亮度调整参数为子区域对应的亮度调整参数;或者,
在第二比例信息大于第二比例阈值,以及亮度方差信息小于第二方差阈值的情形下,至少确定第一亮度调整参数或第四亮度调整参数为子区域对应的亮度调整参数;或者,
在第二比例信息大于第二比例阈值,以及亮度方差信息大于或等于第二方差阈值的情形下,至少确定第一亮度调整参数或第二亮度调整参数为子区域对应的亮度调整参数;或者,
在第三比例信息小于或等于第三比例阈值的情形下,至少确定第一亮度调整参数为子区域对应的亮度调整参数;或者,
在第三比例信息大于第三比例阈值,以及亮度方差信息小于第三方差阈值的情形下,至少确定第一亮度调整参数或第四亮度调整参数为子区域对应的亮度调整参数;或者,
在第三比例信息大于第三比例阈值,以及亮度方差信息大于或等于第三方差阈值的情形下,至少确定第三亮度调整参数为子区域对应的亮度调整参数。
在一可选实施例中,根据以下对象中的至少之一,对图像中的每一个像素进行亮度调整以进行图像亮度处理,包括:
根据像素在图像中的位置,确定像素对应的第二子区域的数量;
根据第二子区域的数量以及像素相对于第一子区域的中心点的位置,确定第二子区域;
根据第一子区域的亮度调整参数以及第二子区域的亮度调整参数,对像素进行亮度调整。
在一可选实施例中,根据以下对象中的至少之一,对图像中的每一个像素进行亮度调整以进行图像亮度处理,包括:
确定每一个子区域的中心点的位置;
根据像素与多个子区域对应的中心点之间的距离关系,确定第一子区域以及第二子区域;
根据第一子区域的亮度调整参数以及第二子区域的亮度调整参数,对像素进行亮度调整。
在一可选实施例中,根据第一子区域的亮度调整参数以及第二子区域的亮度调整参数,对像素进行亮度调整,包括:
根据第一子区域的亮度调整参数以及第二子区域的亮度调整参数,对像素进行插值处理,以对像素进行亮度调整。
需要说明的是,上述各个模块是可以通过软件或硬件来实现的,对于后者,可以通过以下方式实现,但不限于此:上述模块均位于同一处理器中;或者,上述各个模块以任意组合的形式分别位于不同的处理器中。
另一方面,本发明实施例还提供了一种图像处理装置,该图像处理装置包括上述实施例中的图像亮度处理装置,该装置用于实现上述实施例及优选实施方式,已经进行过说明的不再赘述。如以下所使用的,术语“模块”可以实现预定功能的软件和/或硬件的组合。尽管以下实施例所描述的装置较佳地以软件来实现,但是硬件,或者软件和硬件的组合的实现也是可能并被构想的。图8是根据本发明实施例提供的图像处理装置的结构框图,如图8所示,本实施例中的图像处理装置包括:
信息确定模块402,设置为确定图像的第一亮度信息与第二亮度信息,其中,第一亮度信息为图像进行图像亮度处理前的原始亮度信息,第二亮度信息为图像进行图像亮度处理后的亮度信息;
比较模块404,设置为根据第一亮度信息,以及第一亮度信息与第二亮度信息之间的关系,确定色彩调整参数;
色彩调整模块406,设置为根据色彩调整参数对图像进行色彩调整,以进行图像处理。
本实施例中的图像处理装置的其余特征与技术效果均与实施例2中的图像处理方法相对应,故在此不再赘述。
在一可选实施例中,色彩调整参数包括:对比度调整参数、色度调整参数。
在一可选实施例中,根据第一亮度信息,以及第一亮度信息与第二亮度信息之间的关系,确定色彩调整参数,包括:
根据第一亮度信息所在的区间,确定数值变化参数以及比例变化参数;
根据以下对象确定色彩调整参数:第二亮度信息相对于第一亮度信息的变化数值与数值变化参数之间的关系,第二亮度信息相对于第一亮度信息的变化比例与比例变化参数之间的关系。
需要说明的是,上述各个模块是可以通过软件或硬件来实现的,对于后者,可以通过以下方式实现,但不限于此:上述模块均位于同一处理器中;或者,上述各个模块以任意组合的形式分别位于不同的处理器中。
另一方面,本发明实施例还提供了一种计算机可读的存储介质,该计算机可读的存储介质中存储有计算机程序,其中,该计算机程序被设置为运行时执行上述任一项方法实施例中的步骤。
可选地,在本发明实施例中,上述计算机可读的存储介质可以被设置为存储用于执行以下步骤的计算机程序:
S1,将待处理的图像划分为多个子区域,获取每一个子区域的亮度调整信息;
S2,根据亮度调整信息,确定每一个子区域的亮度调整参数;
S3,根据以下对象中的至少之一,对图像中的每一个像素进行亮度调整以进行图像亮度处理:第一子区域的第一亮度调整参数,第二子区域的第二亮度调整参数;
其中,第一子区域为像素所在的子区域,第二子区域为第一子区域相邻的一个或多个子区域。
可选地,在本发明实施例中,上述计算机可读的存储介质可以包括但不限于:U盘、只读存储器(Read-Only Memory,简称为ROM)、随机存取存储器(Random Access Memory,简称为RAM)、移动硬盘、磁碟或者光盘等各种可以存储计算机程序的介质。
另一方面,本发明实施例还提供了一种电子装置,包括存储器和处理器,该存储器中存储有计算机程序,该处理器被设置为运行计算机程序以执行上述任一项方法实施例中的步骤。
可选地,上述电子装置还可以包括传输设备以及输入输出设备,其中,该传输设备和上述处理器连接,该输入输出设备和上述处理器连接。
可选地,在本实施例中,上述处理器可以被设置为通过计算机程序执 行以下步骤:
S1,将待处理的图像划分为多个子区域,获取每一个子区域的亮度调整信息;
S2,根据亮度调整信息,确定每一个子区域的亮度调整参数;
S3,根据以下对象中的至少之一,对图像中的每一个像素进行亮度调整以进行图像亮度处理:第一子区域的第一亮度调整参数,第二子区域的第二亮度调整参数;
其中,第一子区域为像素所在的子区域,第二子区域为第一子区域相邻的一个或多个子区域。
可选地,本发明实施例中的具体示例可以参考上述实施例及可选实施方式中所描述的示例,本实施例在此不再赘述。
另一方面,本发明实施例还提供了一种计算机可读的存储介质,该计算机可读的存储介质中存储有计算机程序,其中,该计算机程序被设置为运行时执行上述任一项方法实施例中的步骤。
可选地,在本实施例中,上述计算机可读的存储介质可以被设置为存储用于执行以下步骤的计算机程序:
S1,确定图像的第一亮度信息与第二亮度信息,其中,第一亮度信息为图像进行图像亮度处理前的原始亮度信息,第二亮度信息为图像进行图像亮度处理后的亮度信息;
S2,根据第一亮度信息,以及第一亮度信息与第二亮度信息之间的关系,确定色彩调整参数;
S3,根据色彩调整参数对图像进行色彩调整,以进行图像处理。
可选地,在本发明实施例中,上述计算机可读的存储介质可以包括但不限于:U盘、只读存储器(Read-Only Memory,简称为ROM)、随机存取存储器(Random Access Memory,简称为RAM)、移动硬盘、磁碟或者光盘等各种可以存储计算机程序的介质。
另一方面,本发明实施例还提供了一种电子装置,包括存储器和处理器,该存储器中存储有计算机程序,该处理器被设置为运行计算机程序以执行上述任一项方法实施例中的步骤。
可选地,上述电子装置还可以包括传输设备以及输入输出设备,其中,该传输设备和上述处理器连接,该输入输出设备和上述处理器连接。
可选地,在本实施例中,上述处理器可以被设置为通过计算机程序执行以下步骤:
S1,确定图像的第一亮度信息与第二亮度信息,其中,第一亮度信息为图像进行图像亮度处理前的原始亮度信息,第二亮度信息为图像进行图像亮度处理后的亮度信息;
S2,根据第一亮度信息,以及第一亮度信息与第二亮度信息之间的关系,确定色彩调整参数;
S3,根据色彩调整参数对图像进行色彩调整,以进行图像处理。
可选地,本发明实施例中的具体示例可以参考上述实施例及可选实施方式中所描述的示例,本实施例在此不再赘述。
显然,本领域的技术人员应该明白,上述的本发明的各模块或各步骤可以用通用的计算装置来实现,它们可以集中在单个的计算装置上,或者分布在多个计算装置所组成的网络上,可选地,它们可以用计算装置可执行的程序代码来实现,从而,可以将它们存储在存储装置中由计算装置来执行,并且在某些情况下,可以以不同于此处的顺序执行所示出或描述的步骤,或者将它们分别制作成各个集成电路模块,或者将它们中的多个模块或步骤制作成单个集成电路模块来实现。这样,本发明不限制于任何特定的硬件和软件结合。
以上所述仅为本发明的优选实施例而已,并不用于限制本发明,对于本领域的技术人员来说,本发明可以有各种更改和变化。凡在本发明的原则之内,所作的任何修改、等同替换、改进等,均应包含在本发明的保护 范围之内。

Claims (23)

  1. 一种图像亮度处理方法,包括:
    将待处理的图像划分为多个子区域,获取每一个所述子区域的亮度调整信息;
    根据所述亮度调整信息,确定每一个所述子区域的亮度调整参数;
    根据以下对象中的至少之一,对所述图像中的每一个像素进行亮度调整以进行图像亮度处理:第一子区域的第一亮度调整参数,第二子区域的第二亮度调整参数;
    其中,所述第一子区域为所述像素所在的所述子区域,所述第二子区域为所述第一子区域相邻的一个或多个所述子区域。
  2. 根据权利要求1所述的方法,其中,所述亮度调整信息包括以下至少之一:亮度分布信息,亮度均度信息;
    其中,所述亮度分布信息用于指示所述子区域中多个亮度值分别对应的像素数量的分布信息;所述亮度均度信息用于指示所述子区域中多个所述像素对应的所述亮度值的均度信息。
  3. 根据权利要求2所述的方法,其中,在所述亮度调整信息至少包括所述亮度分布信息的情形下,所述获取每一个所述子区域的亮度调整信息,包括:
    获取所述子区域中每一个所述亮度值分别对应的所述像素数量;
    根据每一个所述亮度值分别对应的所述像素数量,确定所述子区域中每一个所述亮度值分别对应的所述像素数量的累积分布信息;其中,所述累积分布信息用于指示所述像素数量的分布状况;
    根据所述累积分布信息获取所述子区域的所述亮度分布信息。
  4. 根据权利要求3所述的方法,其中,所述获取所述子区域中每一个所述亮度值分别对应的所述像素数量,包括:
    建立所述子区域中多个所述亮度值与所述亮度值对应的所述像素数量之间的直方图,以获取所述子区域中每一个所述亮度值分别对应的所述像素数量。
  5. 根据权利要求4所述的方法,其中,所述建立所述子区域中多个所述亮度值与所述亮度值对应的所述像素数量之间的直方图之后,还包括:
    根据预设的直方图幅度极值,对所述直方图进行裁剪处理。
  6. 根据权利要求4或5所述的方法,其中,所述根据每一个所述亮度值分别对应的所述像素数量,确定所述子区域中每一个所述亮度值分别对应的所述像素数量的累积分布信息,包括:
    对所述直方图进行积分处理,以建立所述子区域中多个所述亮度值与所述亮度值对应的所述像素数量之间的累积分布函数CDF图像;
    根据所述CDF图像,确定所述子区域中每一个所述亮度值分别对应的累积分布信息。
  7. 根据权利要求2所述的方法,其中,在所述亮度调整信息至少包括所述亮度均度信息的情形下,所述获取每一个所述子区域的亮度调整信息,包括:
    获取所述子区域中多个所述像素对应的所述亮度值之间的亮度方差信息,以获取所述亮度均度信息。
  8. 根据权利要求2所述的方法,其中,在所述亮度调整信息至少包括所述亮度分布信息的情形下,所述根据所述亮度调整信息,确 定每一个所述子区域的亮度调整参数,包括:
    根据所述亮度分布信息确定所述子区域对应的一个或多个比例信息,其中,所述比例信息用于指示预设的亮度子区间对应的像素数量相对于预设的亮度区间对应的所述像素数量的比例;所述亮度区间用于指示亮度值的区间,所述亮度子区间用于指示所述亮度区间的子区间;
    根据所述比例信息与预设的比例阈值之间的关系,确定所述子区域对应的所述亮度调整参数。
  9. 根据权利要求8所述的方法,其中,所述亮度区间为连续区间,或者,所述亮度区间为非连续区间。
  10. 根据权利要求8或9所述的方法,其中,在所述亮度调整信息包括所述亮度均布信息的情形下,所述根据所述比例信息与预设的比例阈值之间的关系,确定所述子区域对应的所述亮度调整参数,还包括:
    根据所述亮度均布信息确定所述子区域对应的亮度方差信息;
    根据以下对象中的至少之一确定所述子区域对应的所述亮度调整参数:
    所述比例信息与所述比例阈值之间的关系,所述亮度方差信息与预设的方差阈值之间的关系。
  11. 根据权利要求10所述的方法,其中,所述亮度子区间包括:第一亮度子区间、第二亮度子区间、第三亮度子区间;
    其中,所述第一亮度子区间用于指示低亮度值区间,所述第二亮度子区间用于指示中亮度值区间,所述第二亮度子区间用于指示高亮 度值区间。
  12. 根据权利要求11所述的方法,其中,所述根据所述亮度分布信息确定所述子区域对应的一个或多个比例信息,包括:
    根据所述亮度分布信息,确定所述子区域对应的第一比例信息、第二比例信息以及第三比例信息;
    其中,所述第一比例信息为所述第一亮度子区间对应的像素数量相比于所述亮度区间对应的像素数量的比例;所述第二比例信息为所述第二亮度子区间对应的像素数量相比于所述亮度区间对应的像素数量的比例;所述第三比例信息为所述第三亮度子区间对应的像素数量相比于所述亮度区间对应的像素数量的比例;
    所述根据所述比例信息与预设的比例阈值之间的关系,确定所述子区域对应的所述亮度调整参数,包括:
    根据以下对象确定所述子区域对应的所述亮度调整参数:所述第一比例信息与预设的第一比例阈值之间的关系,所述第二比例信息与预设的第二比例阈值之间的关系,所述第三比例信息与预设的第三比例阈值之间的关系,所述亮度方差信息与预设的第一方差阈值之间的关系,所述亮度方差信息与预设的第二方差阈值之间的关系,所述亮度方差信息与预设的第三方差阈值之间的关系。
  13. 根据权利要求12所述的方法,其中,所述根据以下对象确定所述子区域对应的所述亮度调整参数,包括,
    在所述第一比例信息小于或等于所述第一比例阈值的情形下,至少确定第一亮度调整参数为所述子区域对应的所述亮度调整参数;或者,
    在所述第一比例信息大于所述第一比例阈值,以及所述亮度方差 信息小于所述第一方差阈值的情形下,至少确定第一亮度调整参数或第四亮度调整参数为所述子区域对应的所述亮度调整参数;或者,
    在所述第一比例信息大于所述第一比例阈值,以及所述亮度方差信息大于或等于所述第一方差阈值的情形下,至少确定第二亮度调整参数为所述子区域对应的所述亮度调整参数;或者,
    在所述第二比例信息小于或等于所述第二比例阈值的情形下,至少确定第二亮度调整参数为所述子区域对应的所述亮度调整参数;或者,
    在所述第二比例信息大于所述第二比例阈值,以及所述亮度方差信息小于所述第二方差阈值的情形下,至少确定第一亮度调整参数或第四亮度调整参数为所述子区域对应的所述亮度调整参数;或者,
    在所述第二比例信息大于所述第二比例阈值,以及所述亮度方差信息大于或等于所述第二方差阈值的情形下,至少确定第一亮度调整参数或第二亮度调整参数为所述子区域对应的所述亮度调整参数;或者,
    在所述第三比例信息小于或等于所述第三比例阈值的情形下,至少确定第一亮度调整参数为所述子区域对应的所述亮度调整参数;或者,
    在所述第三比例信息大于所述第三比例阈值,以及所述亮度方差信息小于所述第三方差阈值的情形下,至少确定第一亮度调整参数或第四亮度调整参数为所述子区域对应的所述亮度调整参数;或者,
    在所述第三比例信息大于所述第三比例阈值,以及所述亮度方差信息大于或等于所述第三方差阈值的情形下,至少确定第三亮度调整参数为所述子区域对应的所述亮度调整参数。
  14. 根据权利要求1所述的方法,其中,所述根据以下对象中的至少之一,对所述图像中的每一个像素进行亮度调整以进行图像亮度处理,包括:
    根据所述像素在所述图像中的位置,确定所述像素对应的所述第二子区域的数量;
    根据所述第二子区域的数量以及所述像素相对于所述第一子区域的中心点的位置,确定所述第二子区域;
    根据所述第一子区域的亮度调整参数以及所述第二子区域的亮度调整参数,对所述像素进行亮度调整。
  15. 根据权利要求1所述的方法,其中,所述根据以下对象中的至少之一,对所述图像中的每一个像素进行亮度调整以进行图像亮度处理,包括:
    确定每一个所述子区域的中心点的位置;
    根据所述像素与多个所述子区域对应的所述中心点之间的距离关系,确定所述第一子区域以及所述第二子区域;
    根据所述第一子区域的亮度调整参数以及所述第二子区域的亮度调整参数,对所述像素进行亮度调整。
  16. 根据权利要求14或15所述的方法,其中,所述根据所述第一子区域的亮度调整参数以及所述第二子区域的亮度调整参数,对所述像素进行亮度调整,包括:
    根据所述第一子区域的亮度调整参数以及所述第二子区域的亮度调整参数,对所述像素进行插值处理,以对所述像素进行亮度调整。
  17. 一种图像处理方法,包括权利要求1至16任一项中所述的 图像亮度处理方法,所述图像处理方法包括:
    确定所述图像的第一亮度信息与第二亮度信息,其中,所述第一亮度信息为所述图像进行图像亮度处理前的原始亮度信息,所述第二亮度信息为所述图像进行图像亮度处理后的亮度信息;
    根据所述第一亮度信息,以及所述第一亮度信息与所述第二亮度信息之间的关系,确定色彩调整参数;
    根据所述色彩调整参数对所述图像进行色彩调整,以进行图像处理。
  18. 根据权利要求17所述的方法,其中,所述色彩调整参数包括:对比度调整参数、色度调整参数。
  19. 根据权利要求17或18所述的方法,其中,所述根据所述第一亮度信息,以及所述第一亮度信息与所述第二亮度信息之间的关系,确定色彩调整参数,包括:
    根据所述第一亮度信息所在的区间,确定数值变化参数以及比例变化参数;
    根据以下对象确定所述色彩调整参数:所述第二亮度信息相对于所述第一亮度信息的变化数值与所述数值变化参数之间的关系,所述第二亮度信息相对于所述第一亮度信息的变化比例与所述比例变化参数之间的关系。
  20. 一种图像亮度处理装置,包括:
    划分模块,设置为将待处理的图像划分为多个子区域,获取每一个所述子区域的亮度调整信息;
    参数确定模块,设置为根据所述亮度调整信息,确定每一个所述 子区域的亮度调整参数;
    亮度调整模块,设置为根据以下对象中的至少之一,对所述图像中的每一个像素进行亮度调整以进行图像亮度处理:第一子区域的第一亮度调整参数,第二子区域的第二亮度调整参数;
    其中,所述第一子区域为所述像素所在的所述子区域,所述第二子区域为所述第一子区域相邻的一个或多个所述子区域。
  21. 一种图像处理装置,包括权利要求19所述的图像亮度处理装置,所述图像处理装置包括:
    信息确定模块,设置为确定所述图像的第一亮度信息与第二亮度信息,其中,所述第一亮度信息为所述图像进行图像亮度处理前的原始亮度信息,所述第二亮度信息为所述图像进行图像亮度处理后的亮度信息;
    比较模块,设置为根据所述第一亮度信息,以及所述第一亮度信息与所述第二亮度信息之间的关系,确定色彩调整参数;
    色彩调整模块,设置为根据所述色彩调整参数对所述图像进行色彩调整,以进行图像处理。
  22. 一种计算机可读的存储介质,所述计算机可读的存储介质中存储有计算机程序,其中,所述计算机程序被设置为运行时执行所述权利要求1至16、权利要求17至19任一项中所述的方法。
  23. 一种电子装置,包括存储器和处理器,所述存储器中存储有计算机程序,所述处理器被设置为运行所述计算机程序以执行所述权利要求1至16、权利要求17至19任一项中所述的方法。
PCT/CN2020/122231 2019-11-07 2020-10-20 图像亮度处理方法及装置、图像处理方法及装置 WO2021088639A1 (zh)

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)

* Cited by examiner, † Cited by third party
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)

* Cited by examiner, † Cited by third party
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)

* Cited by examiner, † Cited by third party
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)

* Cited by examiner, † Cited by third party
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 睿魔智能科技(深圳)有限公司 一种拍摄设备的曝光调整方法、装置、存储介质及设备

Patent Citations (6)

* Cited by examiner, † Cited by third party
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)

* Cited by examiner, † Cited by third party
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