WO2020038124A1 - Image contrast enhancement method and apparatus, and device and storage medium - Google Patents

Image contrast enhancement method and apparatus, and device and storage medium Download PDF

Info

Publication number
WO2020038124A1
WO2020038124A1 PCT/CN2019/094263 CN2019094263W WO2020038124A1 WO 2020038124 A1 WO2020038124 A1 WO 2020038124A1 CN 2019094263 W CN2019094263 W CN 2019094263W WO 2020038124 A1 WO2020038124 A1 WO 2020038124A1
Authority
WO
WIPO (PCT)
Prior art keywords
grayscale image
image
grayscale
region
global
Prior art date
Application number
PCT/CN2019/094263
Other languages
French (fr)
Chinese (zh)
Inventor
全晓荣
陈洪波
Original Assignee
深圳创维-Rgb电子有限公司
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 深圳创维-Rgb电子有限公司 filed Critical 深圳创维-Rgb电子有限公司
Publication of WO2020038124A1 publication Critical patent/WO2020038124A1/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T5/00Image enhancement or restoration
    • G06T5/77Retouching; Inpainting; Scratch removal
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T2207/00Indexing scheme for image analysis or image enhancement
    • G06T2207/20Special algorithmic details
    • G06T2207/20021Dividing image into blocks, subimages or windows
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T2207/00Indexing scheme for image analysis or image enhancement
    • G06T2207/20Special algorithmic details
    • G06T2207/20172Image enhancement details
    • G06T2207/20192Edge enhancement; Edge preservation

Definitions

  • Embodiments of the present application relate to image processing, for example, an image contrast enhancement method, device, device, and storage medium.
  • the most common image contrast enhancement method is global contrast enhancement.
  • global contrast enhancement if the parameter setting is too strong, the processed image contrast will be too strong, unnatural, and some details will decrease or even disappear; if the parameter setting is too high, Weak, the ideal contrast enhancement effect cannot be achieved, so the two aforementioned global contrast enhancement methods have poor adaptability to the picture; after realizing the limitations of global contrast, consider adding local area contrast enhancement technology, but The effects of the local area contrast enhancement technology in the related art are also poorly adaptable to the picture.
  • the related art image contrast enhancement scheme has poor adaptability.
  • the embodiments of the present application provide an image contrast enhancement method, device, device, and storage medium to avoid a situation where the adaptability of the image contrast enhancement scheme in the related art is poor.
  • an embodiment of the present application provides an image contrast enhancement method, including: acquiring a grayscale image of a target image; performing global contrast enhancement on the grayscale image to obtain a global grayscale image;
  • the map is divided into multiple sub-regions, each sub-region is taken as a target sub-region based on a preset order, and the gray-scale values of the target sub-region are adjusted according to the gray-scale values of adjacent sub-regions of the target sub-region to generate A local grayscale image; and an enhanced grayscale image with enhanced contrast of the target image according to the global grayscale image and the local grayscale image.
  • an embodiment of the present application further provides an image contrast enhancement device, including: a grayscale image acquisition module configured to acquire a grayscale image of a target image; and a global grayscale image module configured to perform a grayscale image processing on the grayscale image.
  • Global contrast enhancement is performed to obtain a global grayscale image;
  • a local grayscale module is configured to divide the grayscale image into multiple sub-regions, and use each sub-region as a target sub-region based on a preset order.
  • the gray value of an adjacent sub-region of the region adjusts the gray value of the target sub-region to generate a local gray map;
  • the enhanced gray map determination module is configured to be based on the global gray map and the local
  • the grayscale image determines the enhanced grayscale image after the contrast of the target image is enhanced.
  • an embodiment of the present application further provides a device, where the device includes: at least one processor; a storage device configured to store at least one program; and when the at least one program is executed by the at least one processor, The at least one processor is caused to implement the image contrast enhancement method according to the first aspect.
  • an embodiment of the present application further provides a storage medium including computer-executable instructions, wherein the computer-executable instructions are configured to execute the image contrast enhancement according to the first aspect when executed by a computer processor. method.
  • FIG. 1 is a flowchart of an image contrast enhancement method according to an embodiment of the present application.
  • FIG. 2 is a flowchart of a global contrast enhancement method based on a fitted curve method according to an embodiment of the present application
  • FIG. 3 is a schematic diagram of a non-linear adjustment curve of a low-brightness area provided by an embodiment of the present application.
  • FIG. 4 is a schematic diagram of a non-linear adjustment curve of a medium-bright area provided by an embodiment of the present application.
  • FIG. 5 is a schematic diagram of a non-linear adjustment curve of a bright area provided by an embodiment of the present application.
  • FIG. 6 is a schematic diagram of a histogram and a weight curve provided by an embodiment of the present application.
  • FIG. 7 is a structural block diagram of an image contrast enhancement device according to an embodiment of the present application.
  • FIG. 8 is a schematic structural diagram of a device according to an embodiment of the present application.
  • FIG. 1 is a flowchart of an image contrast enhancement method according to an embodiment of the present application.
  • the technical solution of this embodiment is applicable to a case where contrast enhancement is performed on an image.
  • This method may be executed by an image contrast enhancement device provided in the embodiment of the present application, and the device may be implemented by using at least one of software and hardware, and configured to be applied in a processor.
  • the method includes steps S101 to S104.
  • step S101 a grayscale image of a target image is acquired.
  • a grayscale image of the target image to be processed is obtained.
  • the grayscale number of the grayscale image can be set according to the use scenario. This implementation is not limited herein, and the grayscale number is 1024.
  • step S102 global contrast enhancement is performed on the grayscale image to obtain a global grayscale image.
  • this embodiment first performs global contrast enhancement on a grayscale image to obtain a global grayscale image, and global contrast enhancement can use a fitting curve method to perform global contrast enhancement on a grayscale image to obtain a global grayscale image.
  • Degree chart
  • step S103 the grayscale image is divided into a plurality of subregions, each subregion is used as a target subregion based on a preset order, and the grayscale value of the target subregion is based on the grayscale values of the adjacent subregions of the target subregion. Make adjustments to generate a local grayscale image.
  • a local contrast enhancement is also introduced.
  • the grayscale image is divided into multiple sub-regions, and each sub-region is used as a target sub-region based on a preset order.
  • the gray values of adjacent sub-regions of the sub-regions are used to adjust the gray value of the target sub-region to generate a local gray map.
  • this embodiment first performs edge filtering on the grayscale image to obtain an edge image, and then divides the grayscale image into multiple subregions based on the edges of the edge image.
  • the edge filtering method can adopt Sobel operator, and the method for dividing the gray image based on the edge image includes:
  • the edge difference Sobel operator is used to calculate the horizontal difference G x and the vertical difference G y , as follows:
  • the gradient mode and direction are calculated based on the horizontal difference G x and the vertical difference G y , as follows:
  • the gradient angle ⁇ ranges from radians - ⁇ to ⁇ . It is approximated to four directions, representing horizontal, vertical, and two diagonal directions (0 °, 45 °, 90 °, 135 °). Can be Segmentation, giving a specific value to the gradient angle falling in each area, representing one of the four directions, so that the edge image is obtained. Because the edge images and gradient results of different images are different, the shape and number of subregions of different images are different. Therefore, the number and shape of the sub-regions in this embodiment are not fixed and will vary with different target images. This improves the flexibility of local grayscale image processing and adaptability to the target image.
  • the grayscale distribution of each subregion usually needs to be adjusted.
  • the grayscale value of the target subregion is adjusted according to the grayscale value of the adjacent subregion of the target subregion, such as the average value of the grayscale.
  • the sum of the difference between the average gray value of the target sub-region and each adjacent sub-region of the target sub-region is calculated; the gray-scale distribution of the target sub-region is adjusted according to the sum of the differences to generate a local gray Degree chart.
  • this embodiment summarizes the adjustment strategies corresponding to the sum of each difference in a table.
  • the adjustment strategy is grayscale mapping.
  • the difference is the difference between the target subregion and its neighboring region
  • when the sum of the differences is greater than positive it indicates that the overall gray value of the target subregion is high, and the The grayscale is compressed; when the sum of the difference values is negative, it indicates that the overall grayscale value of the target subregion is low, and then the grayscale is increased by grayscale mapping. Adjusting the gray distribution of the target subregion by the gray average value of adjacent images can help improve the adaptability of local contrast enhancement to different images, and make the contrast enhancement effect of the entire image more natural.
  • the average gray value of the target sub-region is 100 and the average gray values of the four adjacent sub-regions are 80, 90, 110, and 110, respectively.
  • the sum of the differences of the average gray values is -10, and then look up the table to search for the adjustment strategy corresponding to the sum of the differences of -10 to adjust the gray values of the target subregion.
  • step S104 an enhanced grayscale image with enhanced contrast of the target image is determined according to the global grayscale image and the local grayscale image.
  • the global grayscale image and the local grayscale image are determined, the global grayscale image and the local grayscale image are superimposed to generate an enhanced grayscale image after the target image is enhanced.
  • the enhancement processing has high image adaptability, so the enhanced grayscale image has a better sense of detail and depth of field, and the picture is more natural and realistic.
  • the technical scheme of the image contrast enhancement method provided by the embodiment of the present application includes: obtaining a grayscale image of a target image; performing global contrast enhancement on the grayscale image to obtain a global grayscale image; dividing the grayscale image into multiple sub-regions, Based on a preset order, each sub-region is used as a target sub-region, and the gray-scale value of the target sub-region is adjusted according to the gray-scale values of adjacent sub-regions of the target sub-region to generate a local gray map; according to the global gray map And the local grayscale image to determine the enhanced grayscale image after the contrast of the target image is enhanced.
  • the local gray map of the current sub-region is determined by combining the average gray values of adjacent sub-regions. While achieving the dynamic enhancement of local contrast, the overall effect of the picture can also be improved. Enhancing the grayscale image can show more details of the picture to present a more realistic and natural picture.
  • FIG. 2 is a flowchart of an image contrast enhancement method according to an embodiment of the present application.
  • the embodiment of the present application further describes the global contrast enhancement method based on the fitted curve method based on the foregoing embodiment, and includes steps S1021 to S1025.
  • step S1021 a grayscale histogram of the grayscale image is determined based on a preset number of grayscale levels, and the grayscale image is divided into a corresponding number of brightness regions based on a preset number of brightness levels.
  • the preset number of gray levels can be set according to the actual use scene.
  • the preset number of gray levels in this embodiment can be 32 levels that can be distinguished by the human eye, that is, the 32 levels of gray of the target image gray map that needs to be determined Histogram.
  • the preset number of brightness levels can be set according to the actual use scenario.
  • the number of preset brightness levels is 3, that is, the grayscale image is divided into 3 brightness regions, which are a low-light region and a medium-light region. And highlights.
  • step S1022 a non-linear adjustment curve of each brightness region is obtained.
  • a non-linear adjustment curve is set for each brightness area.
  • the non-linear adjustment curve of this embodiment is shown in FIG. 3, FIG. 4, and FIG. 5, and the dotted line is a 45 ° straight line with the coordinate axis, indicating that the contrast of the image before and after processing is the same.
  • the value of the non-linear curve is greater than 1 (the non-linear adjustment curve is higher than the dotted line)
  • the highlight portion of the image is compressed and the dark-tone portion is expanded.
  • the value of the non-linear curve is less than 1 (the non-linear adjustment curve is lower than the dotted line) )
  • the highlight part of the image is expanded and the dark part is compressed.
  • the three non-linear adjustment curves correspond to three look-up tables
  • the low-luminance area corresponding to the low-luminance area adjustment curve look-up table for the low-luminance area is Lut_0 [32]
  • the medium-luminance area non-linear adjustment curve corresponds to the medium-luminance area.
  • the lookup table of the adjustment curve of the high-brightness area is Lut_1 [32]
  • the lookup table of the adjustment curve of the high-brightness area corresponding to the non-linear adjustment curve of the high-brightness area is Lut_2 [32].
  • step S1023 the global gain and brightness weight coefficient of each brightness area are obtained as the global gain and brightness weight coefficient corresponding to each gray level of the brightness area.
  • the global gain of each luminance region is obtained as the global gain corresponding to each gray level of the luminance region, where the global gain is an empirical value.
  • the method for obtaining the brightness weight coefficient is: as shown in FIG. 6, one and a gray scale is set for each brightness area.
  • the brightness weight curve corresponding to the histogram wherein the brightness weight curve is used to represent the ratio of the brightness value of each gray level in the current brightness area to the sum of the brightness values of each gray level in all brightness areas.
  • the three brightness weight curves correspond to three lookup tables, the weight lookup table for the low brightness area corresponding to the weight curve for the low brightness area is BinWeighting_low_LUT [32], and the weight lookup table for the medium brightness area corresponding to the weight curve for the medium brightness area is BinWeighting_mid_LUT [ 32].
  • the weight lookup table of the high-brightness area corresponding to the weight curve of the high-brightness area is BinWeighting_high_LUT [32].
  • the weight of the low light area is expressed as Metric [0]
  • the weight of the medium light area is expressed Is Metric [1]
  • the weight of the highlighted area is expressed as Metric [2].
  • MetricSum Metric [0] + Metric [1] + Metric [2] corresponding to the sum of the weights of the three brightness regions, then the weight coefficients of the three brightness regions are:
  • the weight coefficient of the low light area is:
  • the weight coefficient of the middle bright area is:
  • the weighting coefficient of the highlighted area is:
  • step S1024 the product of the non-linear adjustment curve value, the global gain, and the weight coefficient of each gray level of each luminance region is used as a single luminance adjustment value, and the single luminance adjustment value of different luminance regions corresponding to each gray level is used. The sum is used as the adjustment value for each gray level.
  • GlbGain0 is the global gain in the low light area
  • GlbGain1 is the global gain in the medium light area
  • GlbGain2 is the global gain in the high light area.
  • the adjustment value of each gray level contains information of each brightness area, which helps to improve the adaptability of the global contrast enhancement to the image and the image contrast enhancement effect of the global grayscale image.
  • step S1025 the grayscale image is adjusted according to the adjustment value of each grayscale to obtain a global grayscale image.
  • the adjustment value of the gray level is also based on the 32 level. Therefore, after the adjustment value of each gray level is determined, the The adjustment value of each gray level of the degree histogram can be adjusted by linear interpolation to obtain the adjustment value of each gray level of the 1024-level gray histogram, and then obtain the global gray according to the adjustment value of each gray level of the 1024-level gray histogram. Degree chart.
  • the adjustment effect of each non-linear adjustment curve can be effectively balanced by the weight coefficient, and then the global grayscale image of the target image can be determined quickly and accurately.
  • FIG. 7 is a structural block diagram of an image contrast enhancement device according to an embodiment of the present application.
  • the device is configured to execute the image contrast enhancement method provided by any of the foregoing embodiments, and the device may be implemented by software or hardware.
  • the device includes a grayscale image acquisition module 11, a global grayscale image module 12, a local grayscale image module 13, and an enhanced grayscale image determination module 14.
  • the gray image acquisition module 11 is configured to acquire a gray image of a target image.
  • the global grayscale image module 12 is configured to perform global contrast enhancement on a grayscale image to obtain a global grayscale image.
  • the local gray map module 13 is configured to divide the gray map into a plurality of sub-areas, use each sub-area as a target sub-area based on a preset order, and compare the gray-scale values of adjacent sub-areas of the target sub-area. The gray value of the target sub-region is adjusted to generate a local gray map.
  • the enhanced grayscale image determination module 14 is configured to determine an enhanced grayscale image with enhanced contrast of the target image according to the global grayscale image and the local grayscale image.
  • the image contrast enhancement device includes: a grayscale image acquisition module configured to acquire a grayscale image of a target image; a global grayscale image module configured to perform global contrast enhancement on a grayscale image to obtain a global grayscale Degree map; a local gray map module, configured to divide the gray map into a plurality of sub-areas, using each sub-area as a target sub-area based on a preset order, and according to the gray levels of adjacent sub-areas of the target sub-area The gray value of the target sub-region is adjusted to generate a local gray map; the enhanced gray map determination module is configured to determine the enhanced gray map of the target image after the contrast is enhanced according to the global gray map and the local gray map. .
  • the local gray map of the current sub-region is determined by combining the average gray values of adjacent sub-regions. While achieving the dynamic enhancement of local contrast, the overall effect of the picture can also be improved. Enhancing the grayscale image can show more details of the picture to present a more realistic and natural picture.
  • the image contrast enhancement device provided by the embodiment of the present application can execute the image contrast enhancement method provided by any embodiment of the present application, and has the corresponding function modules and beneficial effects of the execution method.
  • the device includes a processor 201, a memory 202, an input device 203, and an output device 204.
  • the number of processors 201 in the device may be one or In FIG. 8, one processor 201 is taken as an example; the processor 201, the memory 202, the input device 203, and the output device 204 in the device may be connected through a bus or other methods. In FIG. 8, the connection through a bus is used as an example.
  • the memory 202 is a computer-readable storage medium, and may be configured to store software programs, computer-executable programs, and modules, such as program instructions / modules (for example, grayscale image acquisition modules) corresponding to the image contrast enhancement method in the embodiments of the present application. 11. Global gray map module 12, local gray map module 13, and enhanced gray map determination module 14).
  • the processor 201 executes various functional applications and data processing of the device by running software programs, instructions, and modules stored in the memory 202, that is, the above-mentioned image contrast enhancement method is implemented.
  • the memory 202 may mainly include a storage program area and a storage data area, where the storage program area may store an operating system and application programs required for at least one function; the storage data area may store data created according to the use of the terminal, and the like.
  • the memory 202 may include a high-speed random access memory, and may further include a non-volatile memory, such as at least one magnetic disk storage device, a flash memory device, or other non-volatile solid-state storage device.
  • the memory 202 may further include memory remotely set with respect to the processor 201, and these remote memories may be connected to the device through a network. Examples of the above network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.
  • the input device 203 may be configured to receive inputted numeric or character information and generate key signal inputs related to user settings and function control of the device.
  • the output device 204 may include a display device such as a display screen, for example, a display screen of a user terminal.
  • Embodiment 5 of the present application further provides a storage medium containing computer-executable instructions.
  • the method is configured to execute an image contrast enhancement method.
  • the method includes: obtaining a gray image of a target image. Degree map; performing global contrast enhancement on the grayscale image to obtain a global grayscale image; dividing the grayscale image into a plurality of subregions, and using each subregion as a target subregion based on a preset order, according to the target The gray values of adjacent sub-regions of the sub-regions are used to adjust the gray value of the target sub-region to generate a local gray map.
  • An enhanced grayscale image with enhanced contrast of the target image is determined according to the global grayscale image and the local grayscale image.
  • a storage medium including computer-executable instructions provided in the embodiments of the present application is not limited to the method operations described above, and may also be performed in the image contrast enhancement method provided by any embodiment of the present application. Related operations.
  • the computer software product may be stored in a computer-readable storage medium, such as a computer floppy disk, Read-only memory (ROM), random access memory (RAM), flash memory (FLASH), hard disk or optical disk, etc., including multiple instructions to make a computer device (can be a personal computer , Server, or network device, etc.) execute the image contrast enhancement method described in each embodiment of the present application.
  • a computer-readable storage medium such as a computer floppy disk, Read-only memory (ROM), random access memory (RAM), flash memory (FLASH), hard disk or optical disk, etc.
  • each unit and module included is only divided according to functional logic, but is not limited to the above division, as long as the corresponding function can be realized; in addition, The specific names of the functional units are only for the convenience of distinguishing from each other, and are not used to limit the protection scope of the present application.

Landscapes

  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Image Processing (AREA)

Abstract

An image contrast enhancement method and apparatus, and a device and a storage medium. The method comprises: acquiring a grayscale image of a target image (S101); performing global contrast enhancement on the grayscale image to obtain a global grayscale image (S102); dividing the grayscale image into a plurality of sub-regions, taking each sub-region as a target sub-region on the basis of a pre-set order, and adjusting a grayscale value of the target sub-region according to a grayscale value of a sub-region adjacent to the target sub-region to generate a local grayscale image (S103); and determining, according to the global grayscale image and the local grayscale image, an enhanced grayscale image after the contrast of the target image is enhanced (S104).

Description

图像对比度增强方法、装置、设备及存储介质Image contrast enhancement method, device, equipment and storage medium
本申请要求在2018年08月21日提交中国专利局、申请号为201810952870.7的中国专利申请的优先权,该申请的全部内容通过引用结合在本申请中。This application claims priority from a Chinese patent application filed with the Chinese Patent Office on August 21, 2018 with application number 201810952870.7, the entire contents of which are incorporated herein by reference.
技术领域Technical field
本申请实施例涉及图像处理,例如一种图像对比度增强方法、装置、设备及存储介质。Embodiments of the present application relate to image processing, for example, an image contrast enhancement method, device, device, and storage medium.
背景技术Background technique
现如今,最常见的图像对比度增强方法就是全局对比度增强,对于全局对比度增强,如果参数设置太强,则处理后的图像对比度过分增强,不自然,某些细节减小甚至消失;如果参数设置太弱,则达不到理想的对比度增强效果,因此前述两种全局对比度增强方法均存在对画面适应性较差的情况;在意识到全局对比度的局限性后,考虑增加局部区域对比度增强技术,但相关技术中的局部区域对比度增强技术的效果对画面的适应性也较差。Nowadays, the most common image contrast enhancement method is global contrast enhancement. For global contrast enhancement, if the parameter setting is too strong, the processed image contrast will be too strong, unnatural, and some details will decrease or even disappear; if the parameter setting is too high, Weak, the ideal contrast enhancement effect cannot be achieved, so the two aforementioned global contrast enhancement methods have poor adaptability to the picture; after realizing the limitations of global contrast, consider adding local area contrast enhancement technology, but The effects of the local area contrast enhancement technology in the related art are also poorly adaptable to the picture.
综上所述,相关技术的图像对比度增强方案存在适应性较差的情况。In summary, the related art image contrast enhancement scheme has poor adaptability.
发明内容Summary of the Invention
本申请实施例提供一种图像对比度增强方法、装置、设备及存储介质,以避免相关技术中的图像对比度增强方案存在的适应性较差的情况。The embodiments of the present application provide an image contrast enhancement method, device, device, and storage medium to avoid a situation where the adaptability of the image contrast enhancement scheme in the related art is poor.
第一方面,本申请实施例提供了一种图像对比度增强方法,包括:获取目标图像的灰度图;对所述灰度图进行全局对比度增强,以得到全局灰度图;将所述灰度图划分为多个子区域,基于预设顺序将每个子区域作为目标子区域,根据所述目标子区域的相邻子区域的灰度值对所述目标子区域的灰度值进行调整,以生成局部灰度图;根据所述全局灰度图和所述局部灰度图确定目标图像对比度增强后的增强灰度图。In a first aspect, an embodiment of the present application provides an image contrast enhancement method, including: acquiring a grayscale image of a target image; performing global contrast enhancement on the grayscale image to obtain a global grayscale image; The map is divided into multiple sub-regions, each sub-region is taken as a target sub-region based on a preset order, and the gray-scale values of the target sub-region are adjusted according to the gray-scale values of adjacent sub-regions of the target sub-region to generate A local grayscale image; and an enhanced grayscale image with enhanced contrast of the target image according to the global grayscale image and the local grayscale image.
第二方面,本申请实施例还提供了一种图像对比度增强装置,包括:灰度图获取模块,设置为获取目标图像的灰度图;全局灰度图模块,设置为对所述灰度图进行全局对比度增强,以得到全局灰度图;局部灰度图模块,设置为将所述灰度图划分为多个子区域,基于预设顺序将每个子区域作为目标子区域,根据所述目标子区域的相邻子区域的灰度值对所述目标子区域的灰度值进行调整,以生成局部灰度图;增强灰度图确定模块,设置为根据所述全局灰度图和所述局部灰度图确定目标图像对比度增强后的增强灰度图。In a second aspect, an embodiment of the present application further provides an image contrast enhancement device, including: a grayscale image acquisition module configured to acquire a grayscale image of a target image; and a global grayscale image module configured to perform a grayscale image processing on the grayscale image. Global contrast enhancement is performed to obtain a global grayscale image; a local grayscale module is configured to divide the grayscale image into multiple sub-regions, and use each sub-region as a target sub-region based on a preset order. The gray value of an adjacent sub-region of the region adjusts the gray value of the target sub-region to generate a local gray map; the enhanced gray map determination module is configured to be based on the global gray map and the local The grayscale image determines the enhanced grayscale image after the contrast of the target image is enhanced.
第三方面,本申请实施例还提供了一种设备,所述设备包括:至少一个处理器;存储装置,设置为存储至少一个程序;当所述至少一个程序被所述至少一个处理器执行,使得所述至少一个处理器实现如第一方面所述的图像对比度增强方法。According to a third aspect, an embodiment of the present application further provides a device, where the device includes: at least one processor; a storage device configured to store at least one program; and when the at least one program is executed by the at least one processor, The at least one processor is caused to implement the image contrast enhancement method according to the first aspect.
第四方面,本申请实施例还提供了一种包含计算机可执行指令的存储介质,其中,所述计算机可执行指令在由计算机处理器执行时设置为执行如第一方面所述的图像对比度增强方法。According to a fourth aspect, an embodiment of the present application further provides a storage medium including computer-executable instructions, wherein the computer-executable instructions are configured to execute the image contrast enhancement according to the first aspect when executed by a computer processor. method.
附图说明BRIEF DESCRIPTION OF THE DRAWINGS
图1是本申请一实施例提供的图像对比度增强方法的流程图;1 is a flowchart of an image contrast enhancement method according to an embodiment of the present application;
图2是本申请一实施例提供的基于拟合曲线方法的全局对比度增强方法的流程图;2 is a flowchart of a global contrast enhancement method based on a fitted curve method according to an embodiment of the present application;
图3是本申请一实施例提供的低亮区的非线性调整曲线示意图;3 is a schematic diagram of a non-linear adjustment curve of a low-brightness area provided by an embodiment of the present application;
图4是本申请一实施例提供的中亮区的非线性调整曲线示意图;4 is a schematic diagram of a non-linear adjustment curve of a medium-bright area provided by an embodiment of the present application;
图5是本申请一实施例提供的亮区的非线性调整曲线示意图;5 is a schematic diagram of a non-linear adjustment curve of a bright area provided by an embodiment of the present application;
图6是本申请一实施例提供的直方图示意图和权重曲线示意图;6 is a schematic diagram of a histogram and a weight curve provided by an embodiment of the present application;
图7是本申请一实施例提供的图像对比度增强装置的结构框图;7 is a structural block diagram of an image contrast enhancement device according to an embodiment of the present application;
图8是本申请一实施例提供的设备的结构示意图。FIG. 8 is a schematic structural diagram of a device according to an embodiment of the present application.
具体实施方式detailed description
以下将参照本发明实施例中的附图,通过实施方式清楚、完整地描述本申请的技术方案,所描述的实施例是本申请一部分实施例,而不是全部的实施例。The following will clearly and completely describe the technical solution of the present application through implementation with reference to the accompanying drawings in the embodiments of the present invention. The described embodiments are a part of the embodiments of the present application, but not all of the embodiments.
图1是本申请一实施例提供的图像对比度增强方法的流程图。本实施例的技术方案适用于对图像进行对比度增强的情况。该方法可以由本申请实施例提供的图像对比度增强装置来执行,该装置可以采用软件、硬件其中的至少一种实现,并配置在处理器中应用。该方法包括步骤S101至步骤S104。FIG. 1 is a flowchart of an image contrast enhancement method according to an embodiment of the present application. The technical solution of this embodiment is applicable to a case where contrast enhancement is performed on an image. This method may be executed by an image contrast enhancement device provided in the embodiment of the present application, and the device may be implemented by using at least one of software and hardware, and configured to be applied in a processor. The method includes steps S101 to S104.
在步骤S101中,获取目标图像的灰度图。In step S101, a grayscale image of a target image is acquired.
获取待处理的目标图像的灰度图,该灰度图的灰阶数可根据使用场景进行设置,本实施在此不予限定,并以灰阶数为1024阶为例进行说明。A grayscale image of the target image to be processed is obtained. The grayscale number of the grayscale image can be set according to the use scenario. This implementation is not limited herein, and the grayscale number is 1024.
在步骤S102中,对灰度图进行全局对比度增强,以得到全局灰度图。In step S102, global contrast enhancement is performed on the grayscale image to obtain a global grayscale image.
为了得到良好的对比度效果,本实施例先对灰度图进行全局对比度增强,以得到全局灰度图,且全局对比度增强可以使用拟合曲线方法对灰度图进行全局对比度增强,以得到全局灰度图。In order to obtain a good contrast effect, this embodiment first performs global contrast enhancement on a grayscale image to obtain a global grayscale image, and global contrast enhancement can use a fitting curve method to perform global contrast enhancement on a grayscale image to obtain a global grayscale image. Degree chart.
在步骤S103中,将灰度图划分为多个子区域,基于预设顺序将每个子区域 作为目标子区域,根据目标子区域的相邻子区域的灰度值对该目标子区域的灰度值进行调整,以生成局部灰度图。In step S103, the grayscale image is divided into a plurality of subregions, each subregion is used as a target subregion based on a preset order, and the grayscale value of the target subregion is based on the grayscale values of the adjacent subregions of the target subregion. Make adjustments to generate a local grayscale image.
为了提高图像对比度增强效果,本实施例在全局对比度增强的基础上,还引入了局部对比度增强,将灰度图划分为多个子区域,基于预设顺序将每个子区域作为目标子区域,根据目标子区域的相邻子区域的灰度值对该目标子区域的灰度值进行调整,以生成局部灰度图。In order to improve the contrast enhancement effect of the image, in this embodiment, based on the global contrast enhancement, a local contrast enhancement is also introduced. The grayscale image is divided into multiple sub-regions, and each sub-region is used as a target sub-region based on a preset order. The gray values of adjacent sub-regions of the sub-regions are used to adjust the gray value of the target sub-region to generate a local gray map.
在一实施例中,为了提高子区域划分的灵活性,本实施例先对灰度图像进行边缘滤波以得到边缘图像,然后基于边缘图像的边缘,将灰度图像划分为多个子区域。其中,边缘滤波的方法可以采用索贝尔(Sobel)算子,则基于边缘图像对灰度图像进行划分的方法包括:In an embodiment, in order to improve the flexibility of subregion division, this embodiment first performs edge filtering on the grayscale image to obtain an edge image, and then divides the grayscale image into multiple subregions based on the edges of the edge image. Among them, the edge filtering method can adopt Sobel operator, and the method for dividing the gray image based on the edge image includes:
采用边缘差分Sobel算子计算水平方向差分G x和垂直方向差分G y,分别如下: The edge difference Sobel operator is used to calculate the horizontal difference G x and the vertical difference G y , as follows:
Figure PCTCN2019094263-appb-000001
Figure PCTCN2019094263-appb-000001
Figure PCTCN2019094263-appb-000002
Figure PCTCN2019094263-appb-000002
基于水平方向差分G x和垂直方向差分G y计算梯度模和方向,如下: The gradient mode and direction are calculated based on the horizontal difference G x and the vertical difference G y , as follows:
Figure PCTCN2019094263-appb-000003
Figure PCTCN2019094263-appb-000003
θ=a tan 2(G y,G x) θ = a tan 2 (G y , G x )
梯度角度θ范围从弧度-π到π,把它近似到四个方向,分别代表水平,垂直和两个对角线方向(0°,45°,90°,135°)。可以以
Figure PCTCN2019094263-appb-000004
分割,给落在每个区域的梯度角一个特定值,代表四个方向之一,这样就得到了边缘图像。由于不同图像的边缘图像和梯度结果不同,因此不同图像的子区域形状和数量不同。因此本实施例的子区域数量和形状是不固定的,会随着目标图像的不同而不同,这样就提高了局部灰度图处理的灵活性,以及对目标图像适应性。
The gradient angle θ ranges from radians -π to π. It is approximated to four directions, representing horizontal, vertical, and two diagonal directions (0 °, 45 °, 90 °, 135 °). Can be
Figure PCTCN2019094263-appb-000004
Segmentation, giving a specific value to the gradient angle falling in each area, representing one of the four directions, so that the edge image is obtained. Because the edge images and gradient results of different images are different, the shape and number of subregions of different images are different. Therefore, the number and shape of the sub-regions in this embodiment are not fixed and will vary with different target images. This improves the flexibility of local grayscale image processing and adaptability to the target image.
子区域确定后,通常需要调节每个子区域的灰度分布,本实施例根据目标子区域的相邻子区域的灰度值,例如灰度平均值,对该目标子区域的灰度值进行调整,以生成局部灰度图。在一实施例中,计算目标子区域与该目标子区域的各相邻子区域的平均灰度值的差值之和;根据差值之和调整目标子区域的灰度分布,以生成局部灰度图。为了提高图像处理的速度,本实施例将每个差值之和对应的调整策略汇总于一表格内,这样在对每个目标子区域进行处理时,只要根据差值之和在表格内查找对应的调整策略即可,且此处的调整策略为灰 度映射。在一实施例中,假设差值为目标子区域与其相邻区域的差值,则当差值之和大于为正时,表示目标子区域的整体灰度值较高,则通过灰度映射将其灰度进行压缩;当差值之和为负时,表示目标子区域的整体灰度值较低,则通过灰度映射将其灰度升高。通过相邻图像的灰度平均值来调整目标子区域的灰度分布,有助于提高局部对比度增强对不同图像的适应性,使整幅图像的对比度增强效果更为自然。After the subregions are determined, the grayscale distribution of each subregion usually needs to be adjusted. In this embodiment, the grayscale value of the target subregion is adjusted according to the grayscale value of the adjacent subregion of the target subregion, such as the average value of the grayscale. To generate a local grayscale image. In one embodiment, the sum of the difference between the average gray value of the target sub-region and each adjacent sub-region of the target sub-region is calculated; the gray-scale distribution of the target sub-region is adjusted according to the sum of the differences to generate a local gray Degree chart. In order to improve the speed of image processing, this embodiment summarizes the adjustment strategies corresponding to the sum of each difference in a table. In this way, when processing each target subregion, as long as the correspondence is found in the table according to the sum of the differences The adjustment strategy is sufficient, and the adjustment strategy here is grayscale mapping. In an embodiment, assuming that the difference is the difference between the target subregion and its neighboring region, when the sum of the differences is greater than positive, it indicates that the overall gray value of the target subregion is high, and the The grayscale is compressed; when the sum of the difference values is negative, it indicates that the overall grayscale value of the target subregion is low, and then the grayscale is increased by grayscale mapping. Adjusting the gray distribution of the target subregion by the gray average value of adjacent images can help improve the adaptability of local contrast enhancement to different images, and make the contrast enhancement effect of the entire image more natural.
示例性的,假设目标子区域的平均灰度值为100,且其相邻的四个子区域的平均灰度值分别为80、90、110和110,则该目标子区域与其相邻子区域的平均灰度值的差值之和为-10,然后查表搜索差值之和为-10对应的调整策略,对该目标子区域的灰度值进行调整。Exemplarily, assuming that the average gray value of the target sub-region is 100 and the average gray values of the four adjacent sub-regions are 80, 90, 110, and 110, respectively, The sum of the differences of the average gray values is -10, and then look up the table to search for the adjustment strategy corresponding to the sum of the differences of -10 to adjust the gray values of the target subregion.
在步骤S104中,根据全局灰度图和局部灰度图确定目标图像对比度增强后的增强灰度图。In step S104, an enhanced grayscale image with enhanced contrast of the target image is determined according to the global grayscale image and the local grayscale image.
全局灰度图和局部灰度图均确定后,将全局灰度图和局部灰度图进行叠加,以生成目标图像增强后的增强灰度图,由于全局灰度图和局部子区域的图像对比度增强处理均具有较高的图像适应性,因此增强灰度图具有较好的细节景深感,画面比较自然、真实。After the global grayscale image and the local grayscale image are determined, the global grayscale image and the local grayscale image are superimposed to generate an enhanced grayscale image after the target image is enhanced. The enhancement processing has high image adaptability, so the enhanced grayscale image has a better sense of detail and depth of field, and the picture is more natural and realistic.
本申请实施例提供的图像对比度增强方法的技术方案,包括:获取目标图像的灰度图;对灰度图进行全局对比度增强,以得到全局灰度图;将灰度图划分为多个子区域,基于预设顺序将每个子区域作为目标子区域,根据目标子区域的相邻子区域的灰度值对该目标子区域的灰度值进行调整,以生成局部灰度图;根据全局灰度图和局部灰度图确定目标图像对比度增强后的增强灰度图。结合相邻子区域的灰度值平均值确定当前子区域的局部灰度图,在实现局部对比度动态增强的同时,还可提高画面的整体效果;结合全局灰度图和局部灰度图确定的增强灰度图,可以展现更多的画面细节,以呈现更为真实、自然的画面。The technical scheme of the image contrast enhancement method provided by the embodiment of the present application includes: obtaining a grayscale image of a target image; performing global contrast enhancement on the grayscale image to obtain a global grayscale image; dividing the grayscale image into multiple sub-regions, Based on a preset order, each sub-region is used as a target sub-region, and the gray-scale value of the target sub-region is adjusted according to the gray-scale values of adjacent sub-regions of the target sub-region to generate a local gray map; according to the global gray map And the local grayscale image to determine the enhanced grayscale image after the contrast of the target image is enhanced. The local gray map of the current sub-region is determined by combining the average gray values of adjacent sub-regions. While achieving the dynamic enhancement of local contrast, the overall effect of the picture can also be improved. Enhancing the grayscale image can show more details of the picture to present a more realistic and natural picture.
图2是本申请一实施例提供的图像对比度增强方法的流程图。本申请实施例在上述实施例的基础上,对基于拟合曲线方法的全局对比度增强方法作进一步说明,包括步骤S1021至步骤S1025。FIG. 2 is a flowchart of an image contrast enhancement method according to an embodiment of the present application. The embodiment of the present application further describes the global contrast enhancement method based on the fitted curve method based on the foregoing embodiment, and includes steps S1021 to S1025.
在步骤S1021中,基于预设灰阶数确定灰度图的灰度直方图,以及基于预设亮度级别数将灰度图划分为相应数量的亮度区。In step S1021, a grayscale histogram of the grayscale image is determined based on a preset number of grayscale levels, and the grayscale image is divided into a corresponding number of brightness regions based on a preset number of brightness levels.
其中,预设灰阶数可以根据实际使用场景进行设定,本实施例的预设灰阶数可以为人眼能够分辨的32阶,即需要确定1024阶的目标图像灰度图的32阶灰度直方图。The preset number of gray levels can be set according to the actual use scene. The preset number of gray levels in this embodiment can be 32 levels that can be distinguished by the human eye, that is, the 32 levels of gray of the target image gray map that needs to be determined Histogram.
其中,预设亮度级别数可以根据实际使用场景进行设定,本实施例以预设 亮度级别数为3进行说明,即将灰度图划分为3个亮度区,分别为低亮区、中亮区和高亮区。The preset number of brightness levels can be set according to the actual use scenario. In this embodiment, the number of preset brightness levels is 3, that is, the grayscale image is divided into 3 brightness regions, which are a low-light region and a medium-light region. And highlights.
在步骤S1022中,获取每个亮度区的非线性调整曲线。In step S1022, a non-linear adjustment curve of each brightness region is obtained.
根据每个亮度区的调整目标,为每个亮度区设置一条非线性调整曲线。可以理解的是,非线性调整曲线的形状可以根据使用场景进行设置,非线性调整曲线用于大体反映所在亮度区的对比度分布。本实施例的非线性调整曲线如图3、图4和图5所示,虚线为与坐标轴成45°直线,表示处理前后的图像的对比度相同。一般情况下,当非线性曲线值大于1(非线性调整曲线高于虚线)时,图像的高光部分被压缩而暗调部分被扩展,当非线性曲线值小于1(非线性调整曲线低于虚线)时,图像的高光部分被扩展而暗调部分被压缩。According to the adjustment target of each brightness area, a non-linear adjustment curve is set for each brightness area. It can be understood that the shape of the non-linear adjustment curve can be set according to the usage scenario, and the non-linear adjustment curve is used to roughly reflect the contrast distribution of the brightness region where it is located. The non-linear adjustment curve of this embodiment is shown in FIG. 3, FIG. 4, and FIG. 5, and the dotted line is a 45 ° straight line with the coordinate axis, indicating that the contrast of the image before and after processing is the same. In general, when the value of the non-linear curve is greater than 1 (the non-linear adjustment curve is higher than the dotted line), the highlight portion of the image is compressed and the dark-tone portion is expanded. When the value of the non-linear curve is less than 1 (the non-linear adjustment curve is lower than the dotted line) ), The highlight part of the image is expanded and the dark part is compressed.
其中,三条非线性调整曲线对应三个查找表,低亮度区的非线性调整曲线对应的低亮度区的调整曲线查找表为Lut_0[32],中亮度区的非线性调整曲线对应的中亮度区的调整曲线查找表为Lut_1[32],高亮度区的非线性调整曲线对应的高亮度区的调整曲线查找表为Lut_2[32]。Among them, the three non-linear adjustment curves correspond to three look-up tables, and the low-luminance area corresponding to the low-luminance area adjustment curve look-up table for the low-luminance area is Lut_0 [32], and the medium-luminance area non-linear adjustment curve corresponds to the medium-luminance area. The lookup table of the adjustment curve of the high-brightness area is Lut_1 [32], and the lookup table of the adjustment curve of the high-brightness area corresponding to the non-linear adjustment curve of the high-brightness area is Lut_2 [32].
在步骤S1023中,获取每个亮度区的全局增益和亮度权重系数,作为该亮度区各个灰阶所对应的全局增益和亮度权重系数。In step S1023, the global gain and brightness weight coefficient of each brightness area are obtained as the global gain and brightness weight coefficient corresponding to each gray level of the brightness area.
获取每个亮度区的全局增益,作为该亮度区的各个灰阶对应的全局增益,其中,全局增益为经验值。The global gain of each luminance region is obtained as the global gain corresponding to each gray level of the luminance region, where the global gain is an empirical value.
获取每个亮度区的亮度权重系数,作为该亮度区各个灰阶数对应的亮度权重系数,其中,亮度权重系数的获取方法为:如图6所示,为每个亮度区设置一条与灰度直方图对应的亮度权重曲线,其中,亮度权重曲线用于表示每个灰阶在当前亮度区的亮度值与每个灰阶在所有亮度区的亮度值之和的比值。三条亮度权重曲线分别对应三个查找表,低亮度区的权重曲线对应的低亮度区的权重查找表为BinWeighting_low_LUT[32],中亮度区的权重曲线对应的中亮度区的权重查找表为BinWeighting_mid_LUT[32],高亮度区的权重曲线对应的高亮度区的权重查找表为BinWeighting_high_LUT[32]。Obtain the brightness weight coefficient of each brightness area as the brightness weight coefficient corresponding to each gray level number of the brightness area. The method for obtaining the brightness weight coefficient is: as shown in FIG. 6, one and a gray scale is set for each brightness area. The brightness weight curve corresponding to the histogram, wherein the brightness weight curve is used to represent the ratio of the brightness value of each gray level in the current brightness area to the sum of the brightness values of each gray level in all brightness areas. The three brightness weight curves correspond to three lookup tables, the weight lookup table for the low brightness area corresponding to the weight curve for the low brightness area is BinWeighting_low_LUT [32], and the weight lookup table for the medium brightness area corresponding to the weight curve for the medium brightness area is BinWeighting_mid_LUT [ 32]. The weight lookup table of the high-brightness area corresponding to the weight curve of the high-brightness area is BinWeighting_high_LUT [32].
权重曲线确定后,计算每个亮度区的亮度权重曲线与对应的所有灰阶的乘积,作为该亮度区的权重,其中,低亮区的权重表示为Metric[0],中亮区的权重表示为Metric[1],高亮区的权重表示为Metric[2]。MetricSum=Metric[0]+Metric[1]+Metric[2],则对应三个亮度区的权重和,那么三个亮度区的权重系数分别为:After the weight curve is determined, the product of the brightness weight curve of each brightness area and all corresponding gray levels is calculated as the weight of the brightness area, where the weight of the low light area is expressed as Metric [0], and the weight of the medium light area is expressed Is Metric [1], and the weight of the highlighted area is expressed as Metric [2]. MetricSum = Metric [0] + Metric [1] + Metric [2], corresponding to the sum of the weights of the three brightness regions, then the weight coefficients of the three brightness regions are:
低亮区的权重系数为:
Figure PCTCN2019094263-appb-000005
The weight coefficient of the low light area is:
Figure PCTCN2019094263-appb-000005
中亮区的权重系数为:
Figure PCTCN2019094263-appb-000006
The weight coefficient of the middle bright area is:
Figure PCTCN2019094263-appb-000006
高亮区的权重系数为:
Figure PCTCN2019094263-appb-000007
The weighting coefficient of the highlighted area is:
Figure PCTCN2019094263-appb-000007
在步骤S1024中,将每个亮度区的每个灰阶的非线性调整曲线值、全局增益和权重系数的乘积作为单亮度调整值,将每个灰阶对应的不同亮度区的单亮度调整值之和作为每个灰阶的调整值。In step S1024, the product of the non-linear adjustment curve value, the global gain, and the weight coefficient of each gray level of each luminance region is used as a single luminance adjustment value, and the single luminance adjustment value of different luminance regions corresponding to each gray level is used. The sum is used as the adjustment value for each gray level.
求取每个亮度区的每个灰阶的非线性调整曲线值、全局增益和权重系数的乘积,以作为每个灰阶的单亮度调整值,然后求取每个灰阶对应的不同亮度区的单亮度调整值之和,以作为每个灰阶的调整值,调整值的综合表达式为:Find the product of the non-linear adjustment curve value, the global gain, and the weight coefficient of each gray level of each luminance region as a single luminance adjustment value of each gray level, and then obtain the different luminance regions corresponding to each gray level The sum of the single brightness adjustment values is used as the adjustment value for each gray level. The comprehensive expression of the adjustment value is:
LUT[i]=G1bGain0*W0*Lut_0[i]+G1bGain1*W1*Lut_1[i]+G1bGain2*W2*Lut_2[i]LUT [i] = G1bGain0 * W0 * Lut_0 [i] + G1bGain1 * W1 * Lut_1 [i] + G1bGain2 * W2 * Lut_2 [i]
其中,GlbGain0为低亮区的全局增益,GlbGain1为中亮区的全局增益,GlbGain2为高亮区的全局增益。Among them, GlbGain0 is the global gain in the low light area, GlbGain1 is the global gain in the medium light area, and GlbGain2 is the global gain in the high light area.
由上述公式可知,每个灰阶的调整值包含各个亮度区的信息,有助于提高全局对比度增强对图像的适应性,以及全局灰度图的图像对比度增强效果。From the above formula, it can be known that the adjustment value of each gray level contains information of each brightness area, which helps to improve the adaptability of the global contrast enhancement to the image and the image contrast enhancement effect of the global grayscale image.
在步骤S1025中,根据每个灰阶的调整值对灰度图进行调整,以得到全局灰度图。In step S1025, the grayscale image is adjusted according to the adjustment value of each grayscale to obtain a global grayscale image.
由于灰度直方图和非线性调整曲线图均为32阶的灰度直方图,因此灰阶的调整值也是基于32阶的,因此在每个灰阶的调整值确定后,则根据32阶灰度直方图每个灰阶的调整值,可通过线性插值得到1024阶灰度直方图的每个灰阶的调整值,然后根据1024阶灰度直方图的每个灰阶的调整值得到全局灰度图。Since the gray histogram and the non-linear adjustment curve graph are both 32-level gray histograms, the adjustment value of the gray level is also based on the 32 level. Therefore, after the adjustment value of each gray level is determined, the The adjustment value of each gray level of the degree histogram can be adjusted by linear interpolation to obtain the adjustment value of each gray level of the 1024-level gray histogram, and then obtain the global gray according to the adjustment value of each gray level of the 1024-level gray histogram. Degree chart.
本申请实施例通过权重系数可以有效地平衡各非线性调整曲线的调整效果,进而可以快速、准确地确定目标图像的全局灰度图。In the embodiment of the present application, the adjustment effect of each non-linear adjustment curve can be effectively balanced by the weight coefficient, and then the global grayscale image of the target image can be determined quickly and accurately.
图7是本申请一实施例提供的图像对比度增强装置的结构框图。该装置设置为执行上述任意实施例所提供的图像对比度增强方法,该装置可选为软件或硬件实现。该装置包括灰度图获取模块11、全局灰度图模块12、局部灰度图模块13及增强灰度图确定模块14。FIG. 7 is a structural block diagram of an image contrast enhancement device according to an embodiment of the present application. The device is configured to execute the image contrast enhancement method provided by any of the foregoing embodiments, and the device may be implemented by software or hardware. The device includes a grayscale image acquisition module 11, a global grayscale image module 12, a local grayscale image module 13, and an enhanced grayscale image determination module 14.
灰度图获取模块11,设置为获取目标图像的灰度图。The gray image acquisition module 11 is configured to acquire a gray image of a target image.
全局灰度图模块12,设置为对灰度图进行全局对比度增强,以得到全局灰度图。The global grayscale image module 12 is configured to perform global contrast enhancement on a grayscale image to obtain a global grayscale image.
局部灰度图模块13,设置为将所述灰度图划分为多个子区域,基于预设顺序将每个子区域作为目标子区域,根据所述目标子区域的相邻子区域的灰度值对该目标子区域的灰度值进行调整,以生成局部灰度图。The local gray map module 13 is configured to divide the gray map into a plurality of sub-areas, use each sub-area as a target sub-area based on a preset order, and compare the gray-scale values of adjacent sub-areas of the target sub-area. The gray value of the target sub-region is adjusted to generate a local gray map.
增强灰度图确定模块14,设置为根据全局灰度图和局部灰度图确定目标图像对比度增强后的增强灰度图。The enhanced grayscale image determination module 14 is configured to determine an enhanced grayscale image with enhanced contrast of the target image according to the global grayscale image and the local grayscale image.
本申请实施例提供的图像对比度增强装置,包括:灰度图获取模块,设置 为获取目标图像的灰度图;全局灰度图模块,设置为对灰度图进行全局对比度增强,以得到全局灰度图;局部灰度图模块,设置为将所述灰度图划分为多个子区域,基于预设顺序将每个子区域作为目标子区域,根据所述目标子区域的相邻子区域的灰度值对该目标子区域的灰度值进行调整,以生成局部灰度图;增强灰度图确定模块,设置为根据全局灰度图和局部灰度图确定目标图像对比度增强后的增强灰度图。结合相邻子区域的灰度值平均值确定当前子区域的局部灰度图,在实现局部对比度动态增强的同时,还可提高画面的整体效果;结合全局灰度图和局部灰度图确定的增强灰度图,可以展现更多的画面细节,以呈现更为真实、自然的画面。The image contrast enhancement device provided by the embodiment of the present application includes: a grayscale image acquisition module configured to acquire a grayscale image of a target image; a global grayscale image module configured to perform global contrast enhancement on a grayscale image to obtain a global grayscale Degree map; a local gray map module, configured to divide the gray map into a plurality of sub-areas, using each sub-area as a target sub-area based on a preset order, and according to the gray levels of adjacent sub-areas of the target sub-area The gray value of the target sub-region is adjusted to generate a local gray map; the enhanced gray map determination module is configured to determine the enhanced gray map of the target image after the contrast is enhanced according to the global gray map and the local gray map. . The local gray map of the current sub-region is determined by combining the average gray values of adjacent sub-regions. While achieving the dynamic enhancement of local contrast, the overall effect of the picture can also be improved. Enhancing the grayscale image can show more details of the picture to present a more realistic and natural picture.
本申请实施例所提供的图像对比度增强装置可执行本申请任意实施例所提供图像对比度增强方法,具备执行方法相应的功能模块和有益效果。The image contrast enhancement device provided by the embodiment of the present application can execute the image contrast enhancement method provided by any embodiment of the present application, and has the corresponding function modules and beneficial effects of the execution method.
图8是本申请一实施例提供的设备的结构示意图,如图8所示,该设备包括处理器201、存储器202、输入装置203以及输出装置204;设备中处理器201的数量可以是一个或多个,图8中以一个处理器201为例;设备中的处理器201、存储器202、输入装置203以及输出装置204可以通过总线或其他方式连接,图8中以通过总线连接为例。8 is a schematic structural diagram of a device according to an embodiment of the present application. As shown in FIG. 8, the device includes a processor 201, a memory 202, an input device 203, and an output device 204. The number of processors 201 in the device may be one or In FIG. 8, one processor 201 is taken as an example; the processor 201, the memory 202, the input device 203, and the output device 204 in the device may be connected through a bus or other methods. In FIG. 8, the connection through a bus is used as an example.
存储器202作为一种计算机可读存储介质,可设置为存储软件程序、计算机可执行程序以及模块,如本申请实施例中的图像对比度增强方法对应的程序指令/模块(例如,灰度图获取模块11、全局灰度图模块12、局部灰度图模块13以及增强灰度图确定模块14)。处理器201通过运行存储在存储器202中的软件程序、指令以及模块,从而执行设备的各种功能应用以及数据处理,即实现上述的图像对比度增强方法。The memory 202 is a computer-readable storage medium, and may be configured to store software programs, computer-executable programs, and modules, such as program instructions / modules (for example, grayscale image acquisition modules) corresponding to the image contrast enhancement method in the embodiments of the present application. 11. Global gray map module 12, local gray map module 13, and enhanced gray map determination module 14). The processor 201 executes various functional applications and data processing of the device by running software programs, instructions, and modules stored in the memory 202, that is, the above-mentioned image contrast enhancement method is implemented.
存储器202可主要包括存储程序区和存储数据区,其中,存储程序区可存储操作系统、至少一个功能所需的应用程序;存储数据区可存储根据终端的使用所创建的数据等。此外,存储器202可以包括高速随机存取存储器,还可以包括非易失性存储器,例如至少一个磁盘存储器件、闪存器件、或其他非易失性固态存储器件。在一些实例中,存储器202可进一步包括相对于处理器201远程设置的存储器,这些远程存储器可以通过网络连接至设备。上述网络的实例包括但不限于互联网、企业内部网、局域网、移动通信网及其组合。The memory 202 may mainly include a storage program area and a storage data area, where the storage program area may store an operating system and application programs required for at least one function; the storage data area may store data created according to the use of the terminal, and the like. In addition, the memory 202 may include a high-speed random access memory, and may further include a non-volatile memory, such as at least one magnetic disk storage device, a flash memory device, or other non-volatile solid-state storage device. In some examples, the memory 202 may further include memory remotely set with respect to the processor 201, and these remote memories may be connected to the device through a network. Examples of the above network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.
输入装置203可设置为接收输入的数字或字符信息,以及产生与设备的用户设置以及功能控制有关的键信号输入。The input device 203 may be configured to receive inputted numeric or character information and generate key signal inputs related to user settings and function control of the device.
输出装置204可包括显示屏等显示设备,例如,用户终端的显示屏。The output device 204 may include a display device such as a display screen, for example, a display screen of a user terminal.
本申请实施例五还提供一种包含计算机可执行指令的存储介质,所述计算 机可执行指令在由计算机处理器执行时设置为执行一种图像对比度增强方法,该方法包括:获取目标图像的灰度图;对所述灰度图进行全局对比度增强,以得到全局灰度图;将所述灰度图划分为多个子区域,基于预设顺序将每个子区域作为目标子区域,根据所述目标子区域的相邻子区域的灰度值对该目标子区域的灰度值进行调整,以生成局部灰度图。Embodiment 5 of the present application further provides a storage medium containing computer-executable instructions. When the computer-executable instructions are executed by a computer processor, the method is configured to execute an image contrast enhancement method. The method includes: obtaining a gray image of a target image. Degree map; performing global contrast enhancement on the grayscale image to obtain a global grayscale image; dividing the grayscale image into a plurality of subregions, and using each subregion as a target subregion based on a preset order, according to the target The gray values of adjacent sub-regions of the sub-regions are used to adjust the gray value of the target sub-region to generate a local gray map.
根据所述全局灰度图和所述局部灰度图确定目标图像对比度增强后的增强灰度图。An enhanced grayscale image with enhanced contrast of the target image is determined according to the global grayscale image and the local grayscale image.
当然,本申请实施例所提供的一种包含计算机可执行指令的存储介质,其计算机可执行指令不限于如上所述的方法操作,还可以执行本申请任意实施例所提供的图像对比度增强方法中的相关操作。Certainly, a storage medium including computer-executable instructions provided in the embodiments of the present application is not limited to the method operations described above, and may also be performed in the image contrast enhancement method provided by any embodiment of the present application. Related operations.
通过以上关于实施方式的描述,所属领域的技术人员可以清楚地了解到,本申请可借助软件及必需的通用硬件来实现,当然也可以通过硬件实现,但很多情况下前者是更佳的实施方式。基于这样的理解,本申请的技术方案本质上或者说对相关技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品可以存储在计算机可读存储介质中,如计算机的软盘、只读存储器(Read-Only Memory,ROM)、随机存取存储器(Random Access Memory,RAM)、闪存(FLASH)、硬盘或光盘等,包括多个指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)执行本申请各个实施例所述的图像对比度增强方法。Through the above description of the implementation, those skilled in the art can clearly understand that this application can be implemented by software and necessary general hardware, and of course, can also be implemented by hardware, but in many cases the former is a better implementation. . Based on such an understanding, the technical solution of this application that is essential or contributes to related technologies may be embodied in the form of a software product. The computer software product may be stored in a computer-readable storage medium, such as a computer floppy disk, Read-only memory (ROM), random access memory (RAM), flash memory (FLASH), hard disk or optical disk, etc., including multiple instructions to make a computer device (can be a personal computer , Server, or network device, etc.) execute the image contrast enhancement method described in each embodiment of the present application.
值得注意的是,上述图像对比度增强装置的实施例中,所包括的各个单元和模块只是按照功能逻辑进行划分的,但并不局限于上述的划分,只要能够实现相应的功能即可;另外,各功能单元的具体名称也只是为了便于相互区分,并不用于限制本申请的保护范围。It is worth noting that in the embodiment of the image contrast enhancement device described above, each unit and module included is only divided according to functional logic, but is not limited to the above division, as long as the corresponding function can be realized; in addition, The specific names of the functional units are only for the convenience of distinguishing from each other, and are not used to limit the protection scope of the present application.

Claims (15)

  1. 一种图像对比度增强方法,包括:An image contrast enhancement method includes:
    获取目标图像的灰度图;Obtain the grayscale image of the target image;
    对所述灰度图进行全局对比度增强,以得到全局灰度图;Performing global contrast enhancement on the grayscale image to obtain a global grayscale image;
    将所述灰度图划分为多个子区域,基于预设顺序将每个子区域作为目标子区域,根据所述目标子区域的相邻子区域的灰度值对所述目标子区域的灰度值进行调整,以生成局部灰度图;Dividing the grayscale image into multiple subregions, using each subregion as a target subregion based on a preset order, and comparing the grayscale value of the target subregion with the grayscale value of an adjacent subregion of the target subregion Make adjustments to generate a local grayscale image;
    根据所述全局灰度图和所述局部灰度图确定目标图像对比度增强后的增强灰度图。An enhanced grayscale image with enhanced contrast of the target image is determined according to the global grayscale image and the local grayscale image.
  2. 根据权利要求1所述的方法,其中,所述对所述灰度图进行全局对比度增强,以得到全局灰度图,包括:The method according to claim 1, wherein performing the global contrast enhancement on the grayscale image to obtain a global grayscale image comprises:
    基于拟合曲线方法对所述灰度图进行全局对比度增强,以得到全局灰度图。Global contrast enhancement is performed on the grayscale image based on a fitting curve method to obtain a global grayscale image.
  3. 根据权利要求2所述的方法,其中,所述基于拟合曲线方法对所述灰度图进行全局对比度增强,以得到全局灰度图,包括:The method according to claim 2, wherein the performing a global contrast enhancement on the grayscale image based on the fitted curve method to obtain a global grayscale image comprises:
    基于预设灰阶数确定所述灰度图的灰度直方图,以及基于预设亮度级别数将所述灰度图划分为相应数量的亮度区;Determining a grayscale histogram of the grayscale image based on a preset number of grayscale levels, and dividing the grayscale image into a corresponding number of brightness regions based on a preset number of brightness levels;
    获取每个亮度区的非线性调整曲线;Obtaining a non-linear adjustment curve for each brightness region;
    获取每个亮度区的全局增益和亮度权重系数,作为所述亮度区每个灰阶所对应的全局增益和亮度权重系数;Obtaining a global gain and a brightness weighting coefficient of each brightness area as the global gain and the brightness weighting coefficient corresponding to each gray level of the brightness area;
    将每个亮度区的每个灰阶的非线性调整曲线值、全局增益和权重系数的乘积作为单亮度调整值,将每个灰阶对应的不同亮度区的单亮度调整值之和作为每个灰阶的调整值;The product of the non-linear adjustment curve value, the global gain, and the weight coefficient of each gray level of each luminance region is taken as a single luminance adjustment value, and the sum of the single luminance adjustment values of different luminance regions corresponding to each gray level is taken as each Gray scale adjustment value;
    根据每个灰阶的调整值对所述灰度图进行调整,以得到全局灰度图。The grayscale image is adjusted according to the adjustment value of each grayscale to obtain a global grayscale image.
  4. 根据权利要求3所述的方法,其中,获取每个亮度区的亮度权重系数,包括:The method according to claim 3, wherein obtaining the brightness weight coefficient of each brightness region comprises:
    为每个亮度区设置一条与所述灰度直方图对应的亮度权重曲线,其中,所述亮度权重曲线用于表示每个灰阶在当前亮度区的亮度值与每个灰阶在所有亮度区的亮度值之和的比值;For each luminance region, a luminance weight curve corresponding to the grayscale histogram is set, wherein the luminance weight curve is used to represent the luminance value of each grayscale in the current luminance region and each grayscale in all luminance regions. The ratio of the sum of the brightness values;
    计算每个亮度区的亮度权重曲线对应的所有亮度权重之和与所有亮度区的亮度权重曲线对应的所有亮度权重之和的比值,以作为每个亮度区的权重系数。The ratio of the sum of all brightness weights corresponding to the brightness weight curve of each brightness area and the sum of all brightness weights corresponding to the brightness weight curves of all brightness areas is calculated as the weight coefficient of each brightness area.
  5. 根据权利要求3所述的方法,其中,所述根据每个灰阶的调整值对灰度图进行调整,以得到全局灰度图,包括:The method according to claim 3, wherein the adjusting the grayscale image according to the adjustment value of each grayscale to obtain a global grayscale image comprises:
    根据每个灰阶的调整值,通过线性插值的方法得到全局灰度图。According to the adjustment value of each gray level, a global gray image is obtained by linear interpolation.
  6. 根据权利要求1所述的方法,其中,所述将所述灰度图划分为多个子区域,包括:The method according to claim 1, wherein the dividing the grayscale image into a plurality of sub-regions comprises:
    对所述灰度图进行边缘滤波,以得到边缘图像;Performing edge filtering on the grayscale image to obtain an edge image;
    基于所述边缘图像的边缘,将所述灰度图划分为多个子区域。The grayscale image is divided into a plurality of sub-regions based on the edges of the edge image.
  7. 根据权利要求6所述的方法,其中,所述边缘滤波采用索贝尔算子。The method according to claim 6, wherein the edge filtering uses a Sobel operator.
  8. 根据权利要求6所述的方法,其中,所述根据所述目标子区域的相邻子区域的灰度值对所述目标子区域的灰度值进行调整,以生成局部灰度图,包括:The method according to claim 6, wherein the adjusting the gray value of the target sub-region according to the gray value of an adjacent sub-region of the target sub-region to generate a local gray map comprises:
    计算每个子区域的平均灰度值;Calculate the average gray value of each sub-region;
    根据所述目标子区域的相邻子区域的平均灰度值对所述目标子区域的灰度值进行调整,以生成局部灰度图。The gray value of the target sub-region is adjusted according to the average gray value of adjacent sub-regions of the target sub-region to generate a local gray map.
  9. 根据权利要求6所述的方法,其中,所述根据所述目标子区域的相邻子区域的平均灰度值对所述目标子区域的灰度值进行调整,以生成局部灰度图,包括:The method according to claim 6, wherein the adjusting the gray value of the target sub-region based on an average gray value of an adjacent sub-region of the target sub-region to generate a local gray map includes: :
    计算所述目标子区域的平均灰度值与所述目标子区域的每个相邻子区域的平均灰度值的差值之和;Calculating a sum of differences between an average gray value of the target sub-region and an average gray value of each adjacent sub-region of the target sub-region;
    根据所述差值之和调整所述目标子区域的灰度分布,以生成局部灰度图。The gray distribution of the target sub-region is adjusted according to the sum of the differences to generate a local gray map.
  10. 根据权利要求9所述的方法,其中,所述根据所述差值之和调整所述目标子区域的灰度分布,以生成局部灰度图,包括:The method according to claim 9, wherein the adjusting the gray distribution of the target sub-region based on the sum of the differences to generate a local gray map comprises:
    每个所述差值之和对应一种调整策略,所述差值之和与所述调整策略汇总于一表格内,根据计算得到的所述差值之和在表格内查找对应的调整策略,以调整所述目标子区域的灰度分布。Each sum of the differences corresponds to an adjustment strategy, and the sum of the differences and the adjustment strategy are summarized in a table, and the corresponding adjustment strategy is found in the table according to the calculated sum of the differences, To adjust the gray distribution of the target sub-region.
  11. 根据权利要求10所述的方法,其中,所述调整策略为灰度映射;所述灰度映射包括:The method according to claim 10, wherein the adjustment strategy is a grayscale mapping; the grayscale mapping comprises:
    在所述目标子区域的平均灰度值与其相邻子区域的平均灰度值的差值之和为正值的情况下,通过所述灰度映射将所述目标子区域的灰度进行压缩;在所述目标子区域的平均灰度值与其相邻子区域的平均灰度值的差值之和为负值的情况下,通过所述灰度映射将所述目标子区域的灰度升高。When the sum of the difference between the average gray value of the target sub-region and the average gray value of its neighboring sub-regions is a positive value, the gray levels of the target sub-region are compressed by using the gray-level mapping ; In the case where the sum of the difference between the average gray value of the target sub-region and the average gray value of its neighboring sub-regions is negative, the gray-scale of the target sub-region is increased by the gray mapping high.
  12. 根据权利要求1所述的方法,其中,所述根据所述全局灰度图和所述局部灰度图确定目标图像对比度增强后的增强灰度图,包括:The method according to claim 1, wherein the determining an enhanced grayscale image with enhanced contrast of a target image based on the global grayscale image and the local grayscale image comprises:
    在所述全局灰度图和所述局部灰度图确定后,将所述全局灰度图和所述局部灰度图进行叠加,以生成目标图像增强后的增强灰度图。After the global grayscale image and the local grayscale image are determined, the global grayscale image and the local grayscale image are superimposed to generate an enhanced grayscale image after the target image is enhanced.
  13. 一种图像对比度增强装置,包括:An image contrast enhancement device includes:
    灰度图获取模块,设置为获取目标图像的灰度图;A grayscale image acquisition module, configured to acquire a grayscale image of a target image;
    全局灰度图模块,设置为对所述灰度图进行全局对比度增强,以得到全局灰度图;A global grayscale image module configured to perform global contrast enhancement on the grayscale image to obtain a global grayscale image;
    局部灰度图模块,设置为将所述灰度图划分为多个子区域,基于预设顺序将每个子区域作为目标子区域,根据所述目标子区域的相邻子区域的灰度值对所述目标子区域的灰度值进行调整,以生成局部灰度图;The local grayscale module is configured to divide the grayscale image into multiple sub-areas, use each sub-area as a target sub-area based on a preset order, and compare all the Adjust the gray value of the target sub-region to generate a local gray map;
    增强灰度图确定模块,设置为根据所述全局灰度图和所述局部灰度图确定目标图像对比度增强后的增强灰度图。The enhanced grayscale image determination module is configured to determine an enhanced grayscale image with enhanced target image contrast according to the global grayscale image and the local grayscale image.
  14. 一种设备,所述设备包括:A device includes:
    至少一个处理器;At least one processor;
    存储装置,设置为存储至少一个或多个程序;A storage device configured to store at least one or more programs;
    当所述至少一个程序被所述至少一个处理器执行,使得所述至少一个处理器实现如权利要求1-9中任一所述的图像对比度增强方法。When the at least one program is executed by the at least one processor, the at least one processor implements the image contrast enhancement method according to any one of claims 1-9.
  15. 一种包含计算机可执行指令的存储介质,所述计算机可执行指令在由计算机处理器执行时设置为执行如权利要求1-9中任一所述的图像对比度增强方法。A storage medium containing computer-executable instructions, the computer-executable instructions, when executed by a computer processor, are configured to perform the image contrast enhancement method according to any one of claims 1-9.
PCT/CN2019/094263 2018-08-21 2019-07-01 Image contrast enhancement method and apparatus, and device and storage medium WO2020038124A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201810952870.7A CN109191395B (en) 2018-08-21 2018-08-21 Image contrast enhancement method, device, equipment and storage medium
CN201810952870.7 2018-08-21

Publications (1)

Publication Number Publication Date
WO2020038124A1 true WO2020038124A1 (en) 2020-02-27

Family

ID=64918789

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2019/094263 WO2020038124A1 (en) 2018-08-21 2019-07-01 Image contrast enhancement method and apparatus, and device and storage medium

Country Status (2)

Country Link
CN (1) CN109191395B (en)
WO (1) WO2020038124A1 (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111738944A (en) * 2020-06-12 2020-10-02 深圳康佳电子科技有限公司 Image contrast enhancement method and device, storage medium and smart television
CN117218029A (en) * 2023-09-25 2023-12-12 南京邮电大学 Night dim light image intelligent processing method based on neural network
CN117576104A (en) * 2024-01-17 2024-02-20 山东世纪阳光科技有限公司 Visual detection method for health state of ultrafiltration membrane in purification process
CN117893540A (en) * 2024-03-18 2024-04-16 乳山市创新新能源科技有限公司 Roundness intelligent detection method and system for pressure container

Families Citing this family (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109191395B (en) * 2018-08-21 2021-03-09 深圳创维-Rgb电子有限公司 Image contrast enhancement method, device, equipment and storage medium
CN109903294B (en) * 2019-01-25 2020-05-29 北京三快在线科技有限公司 Image processing method and device, electronic equipment and readable storage medium
CN110033474B (en) * 2019-01-30 2021-09-03 西安天伟电子系统工程有限公司 Target detection method, target detection device, computer equipment and storage medium
CN110099222B (en) * 2019-05-17 2021-05-07 睿魔智能科技(深圳)有限公司 Exposure adjusting method and device for shooting equipment, storage medium and equipment
CN113015006B (en) * 2020-06-04 2022-10-14 海信视像科技股份有限公司 Display apparatus and display method
CN111683192B (en) * 2020-06-11 2023-03-21 展讯通信(上海)有限公司 Image processing method and related product
CN112419217B (en) * 2020-11-19 2024-03-26 腾讯科技(深圳)有限公司 Image processing method, device, computer equipment and medium
CN112950516B (en) * 2021-01-29 2024-05-28 Oppo广东移动通信有限公司 Method and device for enhancing local contrast of image, storage medium and electronic equipment
CN112950515B (en) * 2021-01-29 2024-06-21 Oppo广东移动通信有限公司 Image processing method and device, computer readable storage medium and electronic equipment
TWI786719B (en) * 2021-07-13 2022-12-11 義隆電子股份有限公司 Method for improving halo effect of display
CN113436263B (en) * 2021-08-25 2021-12-21 深圳市大道智创科技有限公司 Feature point extraction method and system based on image processing
CN113947553B (en) * 2021-12-20 2022-03-18 山东信通电子股份有限公司 Image brightness enhancement method and device
CN116894795B (en) * 2023-09-11 2023-12-26 归芯科技(深圳)有限公司 Image processing method and device

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20040255152A1 (en) * 2003-06-10 2004-12-16 Kabushiki Kaisha Toshiba Software IP providing system and method, software IP obtaining method, and IP core designing and manufacturing method
CN101853497A (en) * 2010-02-25 2010-10-06 杭州海康威视软件有限公司 Image enhancement method and device
CN105608676A (en) * 2015-12-23 2016-05-25 浙江宇视科技有限公司 Video image enhancement method and device
CN109191395A (en) * 2018-08-21 2019-01-11 深圳创维-Rgb电子有限公司 Method for enhancing picture contrast, device, equipment and storage medium

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20100278423A1 (en) * 2009-04-30 2010-11-04 Yuji Itoh Methods and systems for contrast enhancement
CN103279930B (en) * 2013-05-27 2015-10-21 辽宁工程技术大学 A kind of synchronous denoising Enhancement Method of image
CN104994376B (en) * 2015-07-10 2017-04-12 深圳华侨城文化旅游科技股份有限公司 Method and system for automatically simulating projection colors of projector
CN105654438A (en) * 2015-12-27 2016-06-08 西南技术物理研究所 Gray scale image fitting enhancement method based on local histogram equalization
CN107767349B (en) * 2017-10-12 2019-08-02 深圳市华星光电半导体显示技术有限公司 A kind of method of Image Warping enhancing

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20040255152A1 (en) * 2003-06-10 2004-12-16 Kabushiki Kaisha Toshiba Software IP providing system and method, software IP obtaining method, and IP core designing and manufacturing method
CN101853497A (en) * 2010-02-25 2010-10-06 杭州海康威视软件有限公司 Image enhancement method and device
CN105608676A (en) * 2015-12-23 2016-05-25 浙江宇视科技有限公司 Video image enhancement method and device
CN109191395A (en) * 2018-08-21 2019-01-11 深圳创维-Rgb电子有限公司 Method for enhancing picture contrast, device, equipment and storage medium

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111738944A (en) * 2020-06-12 2020-10-02 深圳康佳电子科技有限公司 Image contrast enhancement method and device, storage medium and smart television
CN111738944B (en) * 2020-06-12 2024-04-05 深圳康佳电子科技有限公司 Image contrast enhancement method and device, storage medium and intelligent television
CN117218029A (en) * 2023-09-25 2023-12-12 南京邮电大学 Night dim light image intelligent processing method based on neural network
CN117218029B (en) * 2023-09-25 2024-03-01 南京邮电大学 Night dim light image intelligent processing method based on neural network
CN117576104A (en) * 2024-01-17 2024-02-20 山东世纪阳光科技有限公司 Visual detection method for health state of ultrafiltration membrane in purification process
CN117576104B (en) * 2024-01-17 2024-06-07 山东世纪阳光科技有限公司 Visual detection method for health state of ultrafiltration membrane in purification process
CN117893540A (en) * 2024-03-18 2024-04-16 乳山市创新新能源科技有限公司 Roundness intelligent detection method and system for pressure container
CN117893540B (en) * 2024-03-18 2024-05-31 乳山市创新新能源科技有限公司 Roundness intelligent detection method and system for pressure container

Also Published As

Publication number Publication date
CN109191395A (en) 2019-01-11
CN109191395B (en) 2021-03-09

Similar Documents

Publication Publication Date Title
WO2020038124A1 (en) Image contrast enhancement method and apparatus, and device and storage medium
US10475237B2 (en) Image processing apparatus and control method thereof
US10565742B1 (en) Image processing method and apparatus
US10013739B2 (en) Image enhancement methods and systems using the same
CN109325922B (en) Image self-adaptive enhancement method and device and image processing equipment
KR102317613B1 (en) Systems and methods for localized contrast enhancement
JP5567063B2 (en) Method for processing highlight and saturation regions in digital images
CN107993189B (en) Image tone dynamic adjustment method and device based on local blocking
CN102446347B (en) White balance method and device for image
JP2015171099A5 (en)
EP3729365A1 (en) Improved inverse tone mapping method and corresponding device
JP2017021759A (en) Image processor, image processing method and program
CN108074220A (en) A kind of processing method of image, device and television set
US10097805B2 (en) Multi-image color refinement with application to disparity estimation
CN110175967B (en) Image defogging processing method, system, computer device and storage medium
JP5623156B2 (en) Image processing apparatus and control method thereof
CN110035267B (en) Image enhancement circuit and method
CN111383183B (en) Image edge enhancement method and device and computer storage medium
JP6126054B2 (en) Image signal processing method and image signal processing apparatus
JP2019045990A (en) Image processing apparatus, image processing method, and program
TWI653894B (en) Image enhancement circuit and method thereof
CN116977210A (en) Mapping image enhancement method and device, electronic equipment and storage medium
CN112785509A (en) Method, apparatus, device and medium for enhancing image contrast
KR101490594B1 (en) Method and apparatus for processing image including for area
CN114782258A (en) Adaptive sharpening overshoot control method and device for image

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: 19852887

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: 19852887

Country of ref document: EP

Kind code of ref document: A1