Method and device for enhancing image display effect
By performing nonlinear contrast and shape adjustments on the original input image and combining image mapping relationships, the problem of poor image display effect in existing technologies is solved, local contrast enhancement of high-resolution images is achieved, and the comprehensiveness and rationality of image display effect are improved.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- ALLWINNER TECH CO LTD
- Filing Date
- 2025-12-25
- Publication Date
- 2026-04-24
AI Technical Summary
Existing technologies for enhancing image display effects suffer from weak contrast enhancement and difficulty in ensuring that the output image achieves the expected results, especially in high-resolution images where local contrast enhancement is inadequate.
By performing target processing operations on the original input image, the original detail layer is extracted, and non-linear contrast and shape adjustments are performed to determine the image mapping relationship. Finally, the enhancement effect is superimposed on the small image and mapped onto the original large-resolution image.
It improves the accuracy and reliability of local image contrast enhancement, reduces the cost of detail layer extraction and processing, is suitable for local contrast enhancement of high-resolution images, and increases the spatial scale of light and dark contrast.
Smart Images

Figure CN121921229A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of image processing technology, and in particular to a method and apparatus for enhancing image display effects. Background Technology
[0002] With the rapid development of digital technology and the widespread use of multimedia devices, images, as the core carrier of information transmission and visual expression, have been deeply integrated into all aspects of human life. However, in practical applications, due to various factors, original images often suffer from problems such as insufficient clarity, color distortion, and loss of detail. Therefore, enhancing the image display effect has become increasingly important.
[0003] Currently, methods for enhancing image display effects mainly include directly cutting the image into rectangular blocks for contrast enhancement during segmentation, and directly overlaying the extracted image enhancement layer back onto the original image for contrast enhancement. However, practice has shown that the former has the drawback of significantly limiting the mapping method within each block, resulting in a weak final contrast enhancement effect, while the latter relies excessively on the effects of extracted detail layers or residual layers, making it difficult to guarantee that the output image achieves the expected contrast effect. Therefore, providing a new image display enhancement method to improve the accuracy and reliability of image contrast enhancement is particularly important. Summary of the Invention
[0004] This invention provides a method and apparatus for enhancing image display effects, which can enhance image display effects by processing images, thereby improving the accuracy and reliability of enhancing local image contrast.
[0005] To address the aforementioned technical problems, a first aspect of the present invention discloses a method for enhancing image display effects, the method comprising: Identify the original input image that needs image display enhancement, and perform predetermined target processing operations on the original input image to obtain the original detail layer; Perform a corresponding nonlinear contrast adjustment operation on the original detail layer to obtain a first image adjustment result, and perform a corresponding morphology adjustment operation on the original detail layer to obtain a second image adjustment result; Based on the first image adjustment result and the second image adjustment result, determine the image with the small image enhancement effect; Based on the original detail layer and the thumbnail enhancement image, determine the image mapping relationship; Based on the image mapping relationship, the original input image is subjected to corresponding mapping processing operations to obtain an output image with enhanced image display effect.
[0006] As an optional implementation, in the first aspect of the present invention, performing a corresponding nonlinear contrast adjustment operation on the original detail layer to obtain a first image adjustment result includes: Based on the original detail layer, determine the first property region and / or the second property region; Based on the first property region, determine the first level parameters and the first brightness distribution optimization parameters, and based on the second property region, determine the second level parameters and the second brightness distribution optimization parameters; Based on the first-level parameters and the first brightness distribution optimization parameters, perform corresponding normalization and difference adjustment operations on the first property region to obtain the first region processing result; and / or, based on the second-level parameters and the second brightness distribution optimization parameters, perform corresponding normalization and difference adjustment operations on the second property region to obtain the second region processing result; The first image adjustment result is determined based on the processing results of the first region and / or the processing results of the second region.
[0007] As an optional implementation, in the first aspect of the present invention, the step of performing corresponding normalization and difference adjustment operations on the first property region according to the first level parameters and the first brightness distribution optimization parameters to obtain the first region processing result includes: Based on the first level parameters, a corresponding normalization operation is performed on the first property region to obtain a first processing result. Based on the first brightness distribution optimization parameters, a corresponding detail layer difference adjustment operation is performed on the first processing result to obtain a second processing result. Based on the first level parameters, a corresponding normalization operation is performed on the second processing result to determine the first region processing result.
[0008] As an optional implementation, in the first aspect of the present invention, the step of performing corresponding normalization and difference adjustment operations on the second property region according to the second level parameters and the second brightness distribution optimization parameters to obtain the second region processing result includes: Based on the second-level parameters, a corresponding normalization operation is performed on the second property region to obtain a third processing result. Based on the second brightness distribution optimization parameters, a corresponding detail layer difference adjustment operation is performed on the third processing result to obtain a fourth processing result. Based on the second-level parameters, a corresponding normalization operation is performed on the fourth processing result to determine the second region processing result.
[0009] As an optional implementation, in a first aspect of the invention, determining the first property region and / or the second property region based on the original detail layer includes: Based on the original detail layer, regions with detail values greater than 0 are identified as the first property regions; Based on the original detail layer, regions with detail values less than 0 are identified as second property regions.
[0010] As an optional implementation, in the first aspect of the present invention, performing corresponding morphological adjustment operations on the original detail layer to obtain a second image adjustment result includes: For each pixel in the original detail layer, the filtering type of the pixel is determined based on the detail value of that pixel; When the filtering type of the pixel is the maximum value filtering type, the corresponding sliding window maximum value filtering operation is performed on the detail layer corresponding to the pixel to obtain the filtering result of the pixel; When the filtering type of the pixel is the minimum value filtering type, the corresponding sliding window minimum value filtering operation is performed on the detail layer corresponding to the pixel to obtain the filtering result of the pixel; The second image adjustment result is determined based on the filtering results of all the pixels.
[0011] As an optional implementation, in the first aspect of the present invention, determining the filter type of the pixel based on its detail value includes: When the detail value of a pixel is greater than 0, the filtering type of the pixel is determined to be the maximum value filtering type; and / or, when the detail value of a pixel is less than 0, the filtering type of the pixel is determined to be the minimum value filtering type.
[0012] As an optional implementation, in a first aspect of the present invention, determining the small image enhancement effect image based on the first image adjustment result and the second image adjustment result includes: Determine the preset local contrast overlay coefficient and the preset overall image brightness adjustment parameters; Based on the local contrast overlay coefficient, the first image adjustment result, and the second image adjustment result, a first overlay enhancement result is determined, and based on the overall image brightness adjustment parameters and the determined downsampled thumbnail result of the original input image, a second overlay enhancement result is determined. Based on the first and second overlay enhancement results, the image with enhanced small image effect is determined.
[0013] As an optional implementation, in the first aspect of the present invention, determining the image mapping relationship based on the original detail layer and the thumbnail enhancement effect image includes: Based on the determined spatial division ratio parameters and value range division ratio parameters, the original detail layer is subjected to a corresponding region division operation to obtain one or more first sub-regions, and the small image enhancement effect image is subjected to a corresponding region division operation to obtain one or more second sub-regions. Each first sub-region has a corresponding second sub-region. For each corresponding first sub-region and second sub-region, the mapping relationship coefficients corresponding to the first sub-region and the second sub-region are determined based on the first pixel information of the first sub-region and the second pixel information of the second sub-region. The image mapping relationship is determined based on all the mapping relationship coefficients.
[0014] As an optional implementation, in the first aspect of the present invention, the step of performing a corresponding mapping processing operation on the original input image according to the image mapping relationship to obtain an output image with enhanced image display effect includes: For each pixel in the original input image, the second coordinate information of the pixel based on the original detail layer is determined according to the first coordinate information of the pixel based on the original input image. Based on the second coordinate information of the pixel, the first sub-region corresponding to the pixel is determined, and based on the image mapping relationship and the first sub-region corresponding to the pixel, the mapping relationship coefficient corresponding to the pixel is determined. The enhanced output result of the pixel is determined based on the mapping coefficient and primary color component value information corresponding to the pixel. Based on the enhanced output results of all the pixels, determine the output image after image display enhancement.
[0015] As an optional implementation, in the first aspect of the invention, performing a predetermined target processing operation on the original input image to obtain the original detail layer includes: Based on the determined downsampling ratio parameters and the determined sampling method, the original input image is subjected to corresponding downsampling processing operations to obtain downsampled thumbnail results; Perform the corresponding bilateral filtering operation on the downsampled small image result to obtain the original detail layer.
[0016] A second aspect of the present invention discloses an apparatus for enhancing image display effects, the apparatus comprising: The image determination module is used to determine the original input image that needs to be enhanced in terms of image display effect, and to perform a predetermined target processing operation on the original input image to obtain the original detail layer; The image adjustment module is used to perform corresponding non-linear contrast adjustment operations on the original detail layer to obtain a first image adjustment result, and to perform corresponding shape adjustment operations on the original detail layer to obtain a second image adjustment result; The image overlay module is used to determine the small image enhancement effect image based on the adjustment results of the first image and the adjustment results of the second image; The mapping relationship determination module is used to determine the image mapping relationship based on the original detail layer and the small image enhancement effect image; The image mapping processing module is used to perform corresponding mapping processing operations on the original input image according to the image mapping relationship, so as to obtain an output image with enhanced image display effect.
[0017] As an optional implementation, in the second aspect of the present invention, the image adjustment module performs a corresponding nonlinear contrast adjustment operation on the original detail layer to obtain the first image adjustment result in the following specific ways: Based on the original detail layer, determine the first property region and / or the second property region; Based on the first property region, determine the first level parameters and the first brightness distribution optimization parameters, and based on the second property region, determine the second level parameters and the second brightness distribution optimization parameters; Based on the first-level parameters and the first brightness distribution optimization parameters, perform corresponding normalization and difference adjustment operations on the first property region to obtain the first region processing result; and / or, based on the second-level parameters and the second brightness distribution optimization parameters, perform corresponding normalization and difference adjustment operations on the second property region to obtain the second region processing result; The first image adjustment result is determined based on the processing results of the first region and / or the processing results of the second region.
[0018] As an optional implementation, in a second aspect of the present invention, the image adjustment module performs corresponding normalization and difference adjustment operations on the first property region according to the first level parameters and the first brightness distribution optimization parameters to obtain the processing result of the first region, specifically including: Based on the first level parameters, a corresponding normalization operation is performed on the first property region to obtain a first processing result. Based on the first brightness distribution optimization parameters, a corresponding detail layer difference adjustment operation is performed on the first processing result to obtain a second processing result. Based on the first level parameters, a corresponding normalization operation is performed on the second processing result to determine the first region processing result.
[0019] As an optional implementation, in a second aspect of the present invention, the image adjustment module performs corresponding normalization and difference adjustment operations on the second property region according to the second level parameters and the second brightness distribution optimization parameters to obtain the processing result of the second region, specifically including: Based on the second-level parameters, a corresponding normalization operation is performed on the second property region to obtain a third processing result. Based on the second brightness distribution optimization parameters, a corresponding detail layer difference adjustment operation is performed on the third processing result to obtain a fourth processing result. Based on the second-level parameters, a corresponding normalization operation is performed on the fourth processing result to determine the second region processing result.
[0020] As an optional implementation, in a second aspect of the present invention, the image adjustment module determines the first property region and / or the second property region based on the original detail layer in a manner that specifically includes: Based on the original detail layer, regions with detail values greater than 0 are identified as the first property regions; Based on the original detail layer, regions with detail values less than 0 are identified as second property regions.
[0021] As an optional implementation, in a second aspect of the present invention, the image adjustment module performs corresponding morphological adjustment operations on the original detail layer to obtain a second image adjustment result, specifically including: For each pixel in the original detail layer, the filtering type of the pixel is determined based on the detail value of that pixel; When the filtering type of the pixel is the maximum value filtering type, the corresponding sliding window maximum value filtering operation is performed on the detail layer corresponding to the pixel to obtain the filtering result of the pixel; When the filtering type of the pixel is the minimum value filtering type, the corresponding sliding window minimum value filtering operation is performed on the detail layer corresponding to the pixel to obtain the filtering result of the pixel; The second image adjustment result is determined based on the filtering results of all the pixels.
[0022] As an optional implementation, in the second aspect of the present invention, the method by which the image adjustment module determines the filtering type of a pixel based on its detail value specifically includes: When the detail value of a pixel is greater than 0, the filtering type of the pixel is determined to be the maximum value filtering type; and / or, when the detail value of a pixel is less than 0, the filtering type of the pixel is determined to be the minimum value filtering type.
[0023] As an optional implementation, in a second aspect of the present invention, the method by which the image overlay module determines the small image enhancement effect image based on the first image adjustment result and the second image adjustment result specifically includes: Determine the preset local contrast overlay coefficient and the preset overall image brightness adjustment parameters; Based on the local contrast overlay coefficient, the first image adjustment result, and the second image adjustment result, a first overlay enhancement result is determined, and based on the overall image brightness adjustment parameters and the determined downsampled thumbnail result of the original input image, a second overlay enhancement result is determined. Based on the first and second overlay enhancement results, the image with enhanced small image effect is determined.
[0024] As an optional implementation, in a second aspect of the present invention, the mapping relationship determination module determines the image mapping relationship based on the original detail layer and the thumbnail enhancement effect image in a specific manner including: Based on the determined spatial division ratio parameters and value range division ratio parameters, the original detail layer is subjected to a corresponding region division operation to obtain one or more first sub-regions, and the small image enhancement effect image is subjected to a corresponding region division operation to obtain one or more second sub-regions. Each first sub-region has a corresponding second sub-region. For each corresponding first sub-region and second sub-region, the mapping relationship coefficients corresponding to the first sub-region and the second sub-region are determined based on the first pixel information of the first sub-region and the second pixel information of the second sub-region. The image mapping relationship is determined based on all the mapping relationship coefficients.
[0025] As an optional implementation, in the second aspect of the present invention, the image mapping processing module performs corresponding mapping processing operations on the original input image according to the image mapping relationship to obtain an output image with enhanced image display effect, specifically including: For each pixel in the original input image, the second coordinate information of the pixel based on the original detail layer is determined according to the first coordinate information of the pixel based on the original input image. Based on the second coordinate information of the pixel, the first sub-region corresponding to the pixel is determined, and based on the image mapping relationship and the first sub-region corresponding to the pixel, the mapping relationship coefficient corresponding to the pixel is determined. The enhanced output result of the pixel is determined based on the mapping coefficient and primary color component value information corresponding to the pixel. Based on the enhanced output results of all the pixels, determine the output image after image display enhancement.
[0026] As an optional implementation, in a second aspect of the present invention, the image determination module performs a predetermined target processing operation on the original input image to obtain the original detail layer, specifically including: Based on the determined downsampling ratio parameters and the determined sampling method, the original input image is subjected to corresponding downsampling processing operations to obtain downsampled thumbnail results; Perform the corresponding bilateral filtering operation on the downsampled small image result to obtain the original detail layer.
[0027] A third aspect of the present invention discloses another apparatus for enhancing image display effects, the apparatus comprising: Memory containing executable program code; A processor coupled to the memory; The processor calls the executable program code stored in the memory to execute a method for enhancing image display effects disclosed in the first aspect of the present invention.
[0028] The fourth aspect of the present invention discloses a computer storage medium storing computer instructions, which, when invoked, are used to execute a method for enhancing image display effects disclosed in the first aspect of the present invention.
[0029] Compared with the prior art, the embodiments of the present invention have the following beneficial effects: In this embodiment of the invention, an original input image requiring image display enhancement is determined, and a predetermined target processing operation is performed on the original input image to obtain an original detail layer; a corresponding nonlinear contrast adjustment operation is performed on the original detail layer to obtain a first image adjustment result, and a corresponding morphology adjustment operation is performed on the original detail layer to obtain a second image adjustment result; based on the first image adjustment result and the second image adjustment result, a small image enhancement effect image is determined; based on the original detail layer and the small image enhancement effect image, an image mapping relationship is determined; based on the image mapping relationship, a corresponding mapping processing operation is performed on the original input image to obtain an output image with enhanced image display effect. As can be seen, this invention can perform target processing operations on the original input image to obtain the original detail layer, and then perform nonlinear contrast adjustment and shape adjustment operations on the original detail layer to obtain the first image adjustment result and the second image adjustment result, thereby determining the small image enhancement effect image. Based on the original detail layer and the small image enhancement effect image, the image mapping relationship is determined, and based on the image mapping relationship, i.e., the original input image, the output image with enhanced image display effect is obtained, thus realizing the enhancement of image display effect. This is beneficial to improving the comprehensiveness and rationality of a method for enhancing image display effect, and thus beneficial to improving the local contrast of the image. By performing detail overlay enhancement on the small image and mapping the effect onto the original high-resolution image, it is more suitable for local contrast enhancement of high-resolution images, effectively increasing the spatial scale of brightness and darkness contrast, while reducing the cost of detail layer extraction and processing, and achieving better contrast enhancement effect in local areas. Attached Figure Description
[0030] To more clearly illustrate the technical solutions in the embodiments of the present invention, the accompanying drawings used in the description of the embodiments will be briefly introduced below. Obviously, the accompanying drawings described below are only some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0031] Figure 1 This is a flowchart illustrating a method for enhancing image display effects disclosed in an embodiment of the present invention; Figure 2 This is a flowchart illustrating another method for enhancing image display effects disclosed in an embodiment of the present invention; Figure 3 This is a schematic diagram of the structure of a device for enhancing image display effect disclosed in an embodiment of the present invention; Figure 4 This is a schematic diagram of another device for enhancing image display effects disclosed in an embodiment of the present invention; Figure 5 This is a schematic diagram illustrating the application effect of a method for enhancing image display disclosed in an embodiment of the present invention. Detailed Implementation
[0032] To enable those skilled in the art to better understand the present invention, the technical solutions of the present invention will be clearly and completely described below with reference to the accompanying drawings of the embodiments of the present invention. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.
[0033] The terms "first," "second," etc., used in the specification, claims, and accompanying drawings of this invention are used to distinguish different objects, not to describe a specific order. Furthermore, the terms "comprising" and "having," and any variations thereof, are intended to cover non-exclusive inclusion. For example, a process, method, apparatus, product, or end that includes a series of steps or units is not limited to the listed steps or units, but may optionally include steps or units not listed, or may optionally include other steps or units inherent to these processes, methods, products, or ends.
[0034] In this document, the term "embodiment" means that a particular feature, structure, or characteristic described in connection with an embodiment may be included in at least one embodiment of the invention. The appearance of this phrase in various places throughout the specification does not necessarily refer to the same embodiment, nor is it a separate or alternative embodiment mutually exclusive with other embodiments. It will be explicitly and implicitly understood by those skilled in the art that the embodiments described herein can be combined with other embodiments.
[0035] This invention discloses a method and apparatus for enhancing image display effects. It performs target processing operations on the original input image to obtain an original detail layer, and then performs nonlinear contrast adjustment and shape adjustment operations on the original detail layer to obtain a first image adjustment result and a second image adjustment result, thereby determining a small-image enhancement effect image. Based on the original detail layer and the small-image enhancement effect image, it determines an image mapping relationship, and based on this image mapping relationship (i.e., the original input image), it obtains an enhanced output image, thus achieving image display effect enhancement. This improves the comprehensiveness and rationality of the image display enhancement method, thereby enhancing the local contrast of the image. By performing detail overlay enhancement on the small image and mapping the effect onto the original high-resolution image, it is more suitable for local contrast enhancement of high-resolution images, effectively increasing the spatial scale of brightness and darkness contrast, while reducing the cost of detail layer extraction and processing, resulting in better contrast enhancement effects in local areas. Detailed descriptions follow.
[0036] Example 1 Please see Figure 1 , Figure 1This is a flowchart illustrating a method for enhancing image display effects disclosed in an embodiment of the present invention. Figure 1 The described method can be applied to an apparatus for enhancing image display effects, wherein the apparatus may include a server, which may include a local server or a cloud server, and the embodiments of the present invention are not limited thereto. Figure 1 As shown, this method for enhancing image display includes the following operations: 101. Determine the original input image that needs to be enhanced in terms of image display effect, and perform the predetermined target processing operation on the original input image to obtain the original detail layer.
[0037] Optionally, the pre-determined target processing operation may include performing downsampling thumbnail and original detail layer extraction operations on the original input image, or it may exclude the downsampling thumbnail operation and directly perform the original detail layer extraction operation. This embodiment of the invention does not limit the scope of the operation.
[0038] 102. Perform the corresponding non-linear contrast adjustment operation on the original detail layer to obtain the first image adjustment result, and perform the corresponding morphology adjustment operation on the original detail layer to obtain the second image adjustment result.
[0039] Optionally, the non-linear contrast adjustment operation can be a gamma enhancement operation for the detail layer, which is not limited in the embodiments of the present invention.
[0040] Optionally, the morphological adjustment operation can be a detail layer morphological enhancement operation, which is not limited in the embodiments of the present invention.
[0041] 103. Based on the adjustment results of the first image and the second image, determine the image with the enhanced small image effect.
[0042] Optionally, a small image overlay enhancement operation is performed based on the adjustment results of the first image and the second image, and the final result of the detail layer is calculated to obtain the enhanced small image result. This embodiment of the invention does not limit the scope of the invention.
[0043] 104. Determine the image mapping relationship based on the original detail layer and the thumbnail enhancement image.
[0044] Optionally, the fitting mapping relationship can be calculated through the "original detail layer and small image enhancement effect image". The image can be calculated by region, such as by dividing the image space into blocks or by spatial + value domain three-dimensional blocks, that is, dividing pixels that meet the same conditions into the same region, and then further determining the image mapping relationship of the same region. This embodiment of the invention does not limit the scope.
[0045] 105. Based on the image mapping relationship, perform the corresponding mapping processing operation on the original input image to obtain the output image with enhanced image display effect.
[0046] Optionally, this image mapping relationship can be applied to the original input image to obtain an output image with enhanced image display effect. This embodiment of the invention does not limit the scope of the invention.
[0047] Optional, Figure 5 The diagram illustrates the application effect of this solution. The left image is the original input image, and the right image is the output image after enhancement. Furthermore, this solution enhances details by overlaying them onto the smaller image instead of directly onto the original image, mapping the effect onto the original high-resolution image, which is more suitable for enhancing the local contrast of high-resolution images. During the spatial mapping process, smoothness is adjusted by parameters to avoid abrupt changes and artifacts caused by directly overlaying the original image. Gamma and morphological operations are used at the detail layer to perform nonlinear adjustments in the numerical and spatial domains, respectively. The algorithm is highly adjustable and the effect is more focused on enhancing local contrast. This embodiment of the invention is not limited to this.
[0048] As can be seen, the method for enhancing image display effect described in the embodiments of the present invention can perform target processing operations on the original input image to obtain the original detail layer, and perform nonlinear contrast adjustment and shape adjustment operations on the original detail layer to obtain the first image adjustment result and the second image adjustment result, thereby determining the small image enhancement effect image. Based on the original detail layer and the small image enhancement effect image, the image mapping relationship is determined, and based on the image mapping relationship, i.e. the original input image, the output image after image display effect enhancement is obtained, thereby realizing the enhancement of image display effect. This is beneficial to improving the comprehensiveness and rationality of a method for enhancing image display effect, and thus beneficial to improving the local contrast of the image. By performing detail overlay enhancement on the small image and mapping the effect onto the original high-resolution image, it is more suitable for local contrast enhancement of high-resolution images, effectively increasing the spatial scale of brightness and darkness contrast, while reducing the cost of detail layer extraction and processing, and achieving better contrast enhancement effect in local areas.
[0049] In an optional embodiment, the above-described nonlinear contrast adjustment operation performed on the original detail layer to obtain the first image adjustment result may include: Based on the original detail layer, determine the first property region and / or the second property region; Based on the first property region, determine the first level parameters and the first brightness distribution optimization parameters, and based on the second property region, determine the second level parameters and the second brightness distribution optimization parameters; Based on the first-level parameters and the first brightness distribution optimization parameters, perform corresponding normalization and difference adjustment operations on the first property region to obtain the processing result of the first region; and / or, based on the second-level parameters and the second brightness distribution optimization parameters, perform corresponding normalization and difference adjustment operations on the second property region to obtain the processing result of the second region; The first image adjustment result is determined based on the processing results of the first region and / or the processing results of the second region.
[0050] Optionally, the first property region can be a bright region, that is, a region with a detail layer greater than 0; the second property region can be a dark region, that is, a region with a detail layer less than 0. This embodiment of the invention does not limit the scope of the invention.
[0051] Optionally, the values of the first and second property regions are processed separately. The detail layer is normalized using the level parameter (i.e., the level parameter) in the formula. Then, the normalized processing result is adjusted using the gamma parameter (i.e., the brightness distribution optimization parameter) in the formula to increase or decrease the difference in the detail layer. Finally, the normalization parameter level is used to restore the result and obtain the region processing result. The level / gamma parameter is a user-adjustable parameter. Two sets of parameters are used for detail>0 (i.e., detail layer is greater than 0) and detail<0 (detail layer is less than 0). This embodiment of the invention does not limit the parameters.
[0052] Furthermore, the adjustment result of the first image can be obtained by the following formula: Where detail is the layer parameter and gamma is the brightness distribution optimization parameter, the embodiments of the present invention are not limited thereto.
[0053] Optionally, for gamma less than 1, a smaller normalization coefficient can enhance the contrast between the overall image and the highlight / dark areas; for gamma greater than 1, a smaller normalization coefficient can enhance the contrast of the mid-bright areas, i.e., the overall image, while preventing overexposure or pure black; furthermore, if the normalization coefficient is set large, gamma can uniformly raise or lower the contrast. This operation is to perform non-linear adjustment in the detail layer numerical domain, widening the difference between light and dark. The shape of the gamma curve is determined by black_gamma / white_gamma, where black_gamma refers to the gamma parameter used when detail < 0, and white_gamma refers to the gamma parameter used when detail > 0. By setting different level / gamma, different first image adjustment results can be achieved, i.e., detail layer enhancement effects. The black_level / white_level parameters determine which curve range is used for detail layer mapping, thus increasing adjustability. The purpose of adjustment is to further widen the numerical differences in the detail layer, performing non-linear enhancement in numerical terms. The enhanced detail layer D2 (i.e., the first image adjustment result) is not limited in this embodiment of the invention.
[0054] As can be seen, this optional embodiment can determine the first property region and the second property region, and perform targeted normalization and difference adjustment operations on the first property region and the second property region respectively to obtain the first image adjustment result. This is beneficial to improving the targeting, flexibility and diversity of the operation parameters (i.e., layer parameters, brightness distribution optimization parameters) used for nonlinear contrast adjustment operations on the region, and is beneficial to improving the targeting and fit of the normalization and difference adjustment methods of the region. This is beneficial to improving the accuracy and targeting of the determined first region processing result and the second region processing result, and thus beneficial to improving the accuracy and reliability of the determined first image adjustment result.
[0055] In another optional embodiment, the above-mentioned normalization and difference adjustment operations performed on the first property region based on the first level parameters and the first brightness distribution optimization parameters to obtain the first region processing result may include: Based on the first-level parameters, a corresponding normalization operation is performed on the first-property region to obtain a first processing result. Based on the first brightness distribution optimization parameters, a corresponding detail layer difference adjustment operation is performed on the first processing result to obtain a second processing result. Based on the first-level parameters, a corresponding normalization operation is performed on the second processing result to determine the processing result of the first region.
[0056] Optionally, the first property region is normalized using the second-level parameters to obtain the first processing result. Then, the normalized first property region (i.e., the first processing result) is adjusted using the brightness distribution optimization parameters (to obtain the second processing result). Finally, the normalization parameter level is used to restore the first region processing result. This embodiment of the invention does not limit the scope of the invention.
[0057] As can be seen, this optional embodiment can perform a normalization operation based on the first-level parameters and a detail layer difference adjustment operation based on the first brightness distribution optimization parameters to obtain the first region processing result. This is beneficial to improving the comprehensiveness, rationality, and progressiveness of the method for determining the first region processing result, and further beneficial to improving the pertinence and fit of the reference parameters for the normalization operation and the detail layer difference adjustment operation, thereby improving the accuracy and reliability of the determined first region processing result.
[0058] In another optional embodiment, the above-mentioned normalization and difference adjustment operations performed on the second property region based on the second-level parameters and the second brightness distribution optimization parameters to obtain the second region processing result may include: Based on the second-level parameters, a corresponding normalization operation is performed on the second-property region to obtain the third processing result. Based on the second brightness distribution optimization parameters, a corresponding detail layer difference adjustment operation is performed on the third processing result to obtain the fourth processing result. Based on the second-level parameters, a corresponding normalization operation is performed on the fourth processing result to determine the processing result of the second region.
[0059] Optionally, the first property region is normalized using the second-level parameters to obtain the third processing result. Then, the normalized first property region (i.e., the third processing result) is adjusted using the brightness distribution optimization parameters (to obtain the fourth processing result). Finally, the normalization parameter level is used to restore the first region processing result. This embodiment of the invention does not limit the scope of the invention.
[0060] As can be seen, this optional embodiment can perform normalization operations based on the second-level parameters and detail layer difference adjustment operations based on the second brightness distribution optimization parameters to obtain the second region processing result. This is beneficial to improving the comprehensiveness, rationality, and progressiveness of the method for determining the second region processing result, and further beneficial to improving the pertinence and fit of the reference parameters for the normalization operation and detail layer difference adjustment operation, thereby improving the accuracy and reliability of the determined second region processing result.
[0061] In yet another optional embodiment, determining the first property region and / or the second property region based on the original detail layer may include: Based on the original detail layer, the regions with detail values greater than 0 are identified as the first property regions; Based on the original detail layer, the regions with detail values less than 0 are identified as the second property regions.
[0062] Optionally, the first property region can also be understood as a bright region, and the second property region can also be understood as a dark region. This embodiment of the invention does not limit the scope of the invention.
[0063] As can be seen, this optional embodiment can determine the first property region or the second property region based on the comparison between the region detail value and 0, which is beneficial to improving the comprehensiveness and rationality of the method for determining the first property region / second property region, and to improving the diversity, flexibility and pertinence of the method for determining the first property region / second property region, thereby improving the accuracy and reliability of the determined first property region and second property region.
[0064] In yet another optional embodiment, the above-described morphological adjustment operation performed on the original detail layer to obtain the second image adjustment result may include: For each pixel in the original detail layer, the filter type for that pixel is determined based on its detail value. When the filtering type of the pixel is the maximum value filtering type, the corresponding sliding window maximum value filtering operation is performed on the detail layer corresponding to the pixel to obtain the filtering result of the pixel; When the filtering type of the pixel is the minimum value filtering type, the corresponding sliding window minimum value filtering operation is performed on the detail layer corresponding to the pixel to obtain the filtering result of the pixel; The second image adjustment result is determined based on the filtering results of all pixels.
[0065] Optionally, morphological operations are performed using the original detail layer. If the pixel is positive, the detail layer is filtered by the maximum value of the sliding window; if the pixel is negative, the detail layer is filtered by the minimum value of the sliding window, resulting in an image with enhanced detail (i.e., the second image adjustment result). This operation performs non-linear spatial adjustment and prevents artificially dense textures and holes through dilation operations (i.e., if the surrounding area of the current point is brightened by positive detail, the current point will be set to the maximum detail after dilation, i.e., the brightening amplitude is appropriately increased; i.e., if the surrounding area of the current point is brightened by negative detail, the current point will be set to the minimum detail after dilation, i.e., the darkening amplitude is appropriately increased). The interpretability of enhancing local contrast lies in the fact that if there are pixels around the detail layer that need to be brightened in large quantities, the brightening amplitude of the point can be appropriately increased. On the one hand, a brightness gradient is formed to make the brightness distribution within the local area more uniform; on the other hand, the overall brightness of the local area is improved, and the contrast with other local areas in the image is improved. This embodiment of the invention is not limited.
[0066] Optionally, sliding window maximum value filtering operation and sliding window minimum value filtering operation are illustrated as follows: Assuming the sliding window is 3x3, that is, within a 3x3 window centered on the current point, if the detail value of the current pixel is greater than 0, the maximum value of the 3x3 original detail layer is calculated (i.e., sliding window maximum value filtering operation); if the detail value of the current pixel is less than 0, the minimum value of the 3x3 original detail layer is calculated (i.e., sliding window minimum value filtering operation), and the second image adjustment result is obtained. This embodiment of the invention is not limited.
[0067] Optionally, in addition to using maximum value filtering, more complex operations such as morphological opening and closing operations can also be used, which are not limited in the embodiments of the present invention.
[0068] As can be seen, this optional embodiment can determine the filtering type based on the detail value of the pixel, and match the corresponding filtering operation for the maximum value filtering type or the minimum value filtering type to obtain the second image adjustment result. This is beneficial to improving the comprehensiveness and rationality of the original detail layer morphology adjustment method, improving the diversity, flexibility and pertinence of the detail layer filtering processing method, and thus improving the accuracy and reliability of the determined pixel filtering processing result, thereby improving the accuracy and reliability of the determined second image adjustment result.
[0069] In yet another optional embodiment, determining the filter type of a pixel based on its detail value may include: When the detail value of a pixel is greater than 0, the filtering type of the pixel is determined to be the maximum value filtering type; and / or, when the detail value of a pixel is less than 0, the filtering type of the pixel is determined to be the minimum value filtering type.
[0070] As can be seen, this optional embodiment can determine the filter type of a pixel based on the comparison between the detail value of the pixel and 0, which is beneficial to improving the comprehensiveness and rationality of the pixel filter type determination method, as well as the diversity, flexibility and pertinence of the pixel filter type determination method, and thus the accuracy and reliability of the determined pixel filter type.
[0071] Example 2 Please see Figure 2 , Figure 2 This is a flowchart illustrating another method for enhancing image display effects disclosed in an embodiment of the present invention. Figure 2 The described method can be applied to an apparatus for enhancing image display effects, wherein the apparatus may include a server, which may include a local server or a cloud server, and the embodiments of the present invention are not limited thereto. Figure 2 As shown, this method for enhancing image display includes the following operations: 201. Determine the original input image that needs to be enhanced in terms of image display effect, and perform the predetermined target processing operation on the original input image to obtain the original detail layer.
[0072] 202. Perform the corresponding non-linear contrast adjustment operation on the original detail layer to obtain the first image adjustment result, and perform the corresponding morphology adjustment operation on the original detail layer to obtain the second image adjustment result.
[0073] 203. Determine the preset local contrast overlay coefficient and the preset overall screen brightness adjustment parameters.
[0074] 204. Based on the local contrast superposition coefficient, the first image adjustment result, and the second image adjustment result, determine the first superposition enhancement result, and based on the overall image brightness adjustment parameters and the determined downsampled thumbnail result of the original input image, determine the second superposition enhancement result.
[0075] Furthermore, determining the first superimposed enhancement result based on the local contrast superposition coefficient, the first image adjustment result, and the second image adjustment result may include: calculating the product value corresponding to the local contrast superposition coefficient, the first image adjustment result, and the second image adjustment result as the first superimposed enhancement result. This embodiment of the invention does not limit this.
[0076] Furthermore, the above-mentioned determination of the second superimposed enhancement result based on the overall image brightness adjustment parameters and the determined downsampled small image results of the original input image may include: calculating the product value corresponding to the overall image brightness adjustment parameters and the downsampled small image results as the second superimposed enhancement result. This embodiment of the invention does not limit this.
[0077] 205. Based on the first and second superimposed enhancement results, determine the image with enhanced small image effect.
[0078] Furthermore, determining the small image enhancement effect image based on the first and second superimposed enhancement results may include: calculating the sum of the first and second superimposed enhancement results as the small image enhancement effect image. This embodiment of the invention does not limit the scope of the invention.
[0079] Optionally, the thumbnail enhancement image can be calculated using the following formula: Where Out_pix is the thumbnail enhancement image, k1 is the local contrast overlay coefficient, k2 is the overall image brightness adjustment parameter, D2 is the first image adjustment result, D3 is the second image adjustment result, and D is the downsampled thumbnail result. This embodiment of the invention is not limited.
[0080] 206. Based on the original detail layer and the thumbnail enhancement image, determine the image mapping relationship, and perform corresponding mapping processing operations on the original input image according to the image mapping relationship to obtain the output image with enhanced image display effect.
[0081] In this embodiment of the invention, for other descriptions of steps 201-206, please refer to the other detailed descriptions of steps 101-105 in Embodiment 1. These descriptions will not be repeated in this embodiment of the invention.
[0082] As can be seen, the embodiments of the present invention can perform target processing operations on the original input image to obtain the original detail layer, and perform nonlinear contrast adjustment and shape adjustment operations on the original detail layer to obtain the first image adjustment result and the second image adjustment result, thereby determining the small image enhancement effect image. Based on the original detail layer and the small image enhancement effect image, an image mapping relationship is determined, and based on the image mapping relationship, i.e., the original input image, an enhanced output image is obtained, thus achieving image display effect enhancement. This improves the comprehensiveness and rationality of a method for enhancing image display effects, and further enhances the local contrast of the image. By performing detail overlay enhancement on the small image and mapping the effect onto the original high-resolution image, it is more suitable for the local areas of high-resolution images. Contrast enhancement effectively increases the spatial scale of light and dark contrast while reducing the cost of detail layer extraction and processing, resulting in better contrast enhancement in local areas. Furthermore, it can determine the first superimposed enhancement result based on the local contrast superposition coefficient, the first image adjustment result, and the second image adjustment result, and determine the second superimposed enhancement result based on the overall image brightness adjustment parameters and the downsampled small image result, thereby determining the small image enhancement effect image. This improves the comprehensiveness and rationality of the method for determining the small image enhancement effect image, enhances the pertinence and rationality of the method for determining the first superimposed enhancement result, enhances the pertinence and rationality of the method for determining the second superimposed enhancement result, and ultimately improves the accuracy and reliability of the determined small image enhancement effect image.
[0083] In an optional embodiment, determining the image mapping relationship based on the original detail layer and the thumbnail enhancement image may include: Based on the determined spatial division ratio parameters and value range division ratio parameters, the corresponding region division operation is performed on the original detail layer to obtain one or more first sub-regions, and the corresponding region division operation is performed on the small image enhancement effect image to obtain one or more second sub-regions. Each first sub-region has a corresponding second sub-region. For each corresponding first sub-region and second sub-region, the mapping relationship coefficients corresponding to the first sub-region and the second sub-region are determined based on the first pixel information of the first sub-region and the second pixel information of the second sub-region. The image mapping relationship is determined based on all mapping coefficients.
[0084] Optionally, the fitting mapping relationship can be calculated through the "original detail layer - small image enhancement effect image". This can be achieved by calculating the mapping relationship by image region (e.g., spatial segmentation or spatial + value range three-dimensional segmentation, i.e., dividing pixels that meet the same conditions into the same region). Taking spatial + value range segmentation as an example, one segmentation method can be designed as follows: the spatial block size is 16x16 (i.e., spatial segmentation ratio parameter), and the 10-bit value range is segmented into intervals of 128 (i.e., value range segmentation ratio parameter). Assuming the downsampled small image size is 240x135, then the horizontal axis is divided into 15 regions, the vertical axis into 9 regions, and the value range (0~1023) into 8 regions, for a total of 15x9x8 regions. The pixel with coordinates (x=3, y=5)MAX(R, G, B) = 78 belongs to region 0, and the pixel with coordinates (x=13, y=15)MAX(R, G, B) = 78 belongs to region 0. Pixel B) = 278 belongs to region 3, and so on. Each pixel can be divided into the corresponding region according to its coordinates and the value of MAX(R,G,B). This embodiment of the invention does not limit the scope of the region.
[0085] Furthermore, for all pixels in each of the first and second sub-regions, the matrix coefficients of the following mapping relationship are calculated, as shown in Formula 1:
[0086] In this context, the pixels of the "original detail layer" are used as... R_in , G_in , B_in The pixels of the "small image enhancement effect image" are used as R_out , G_out , B_out , and a 00 ~a 33 These are the mapping relationship coefficients calculated by dividing the data into blocks (each block uses a set of coefficients), which are not limited in this embodiment of the invention.
[0087] Furthermore, the mapping relationship coefficient a 00 ~a 33 It can be calculated in the following way: (1) The first method is to calculate the global optimum, where the deviation of each pixel is:
[0088] That is, by minimizing the cumulative deviation of all pixels within the block, the regression value with the smallest deviation is obtained, and the optimal solution 'a' is found. 00 -a 23 ; (2) The second type is a fast algorithm, which first counts all pixels in the block according to a specific method. R_in , G_in ,B_ in and R_out , G_out , B_out The value is then used to calculate a using the in / out statistical values. 00 -a 23 The value of can be adjusted by adding a correction term during the calculation process to improve smoothness, as shown in the following formula: Where A is the statistical input pixel matrix, B is the statistical output mapping matrix, and M is the number of pixels to be calculated (a). 00 -a 23 The matrix is I, which is a 3x4 identity matrix. The λ and γ correction terms are adjustment parameters, which are not limited in the embodiments of the present invention.
[0089] As can be seen, this optional embodiment can perform corresponding region division operations on the original detail layer and the small image enhancement effect image according to the spatial division ratio parameter and the value range division ratio parameter, and determine the mapping relationship coefficients of the relevant first sub-region and second sub-region based on pixel information, thereby determining the image mapping relationship. This is beneficial to improving the targeting and fit of the determined first sub-region and second sub-region, improving the accuracy and reliability of the determined mapping relationship coefficients, and thus improving the accuracy and reliability of the determined image mapping relationship.
[0090] In another optional embodiment, the above-described process of performing corresponding mapping operations on the original input image according to the image mapping relationship to obtain an output image with enhanced image display effect may include: For each pixel in the original input image, determine the second coordinate information of the pixel based on the original detail layer, based on the first coordinate information of the pixel based on the original input image. Based on the second coordinate information of the pixel, determine the first sub-region corresponding to the pixel, and based on the image mapping relationship and the first sub-region corresponding to the pixel, determine the mapping relationship coefficient corresponding to the pixel. The enhanced output result of the pixel is determined based on the mapping coefficient and primary color component value information corresponding to the pixel. Based on the enhanced output results of all pixels, determine the output image after image display enhancement.
[0091] Optionally, when applying this image mapping relationship to the original input image, a 00 ~a 33 As previously calculated, referring to Formula 1 above, R_in , G_in , B_in The pixel values of the original input image (normal resolution), and R_ out , G_out , B_out As the pixel value of the output image after the image display effect is enhanced; further, the large image mapping process is illustrated as follows: each pixel point pix_in of the original input image is mapped as follows: (1) Input the coordinates (x, y) and MAX(R, G, B) of pix_in in the original image, first divide (x, y) by the sampling step size to obtain the corresponding coordinates in the small image, and determine the region to which pix_in belongs based on the aforementioned region division method; (2) Input the R / G / B values of pix_in and the corresponding region a 00 ~a 33 The coefficients are used to calculate the enhanced output (R_out, G_out, B_out) of the pixel. This embodiment of the invention is not limited to these coefficients.
[0092] Optionally, existing technologies that directly apply complex algorithms to large images can cause overly sharp edges and abrupt pixelation. This solution, however, performs complex pixel-by-pixel adjustments on small images, mapping the small image effect to the large image using a three-dimensional linear mapping method. Discrete points with excessive effects are minimized by the regression parameter 'a'. 00 -a 23 The impact is relatively small, and the embodiments of the present invention are not limited thereto.
[0093] As can be seen, this optional embodiment can determine the mapping relationship coefficient based on the second coordinate information of the pixels in the original input image, and determine the enhanced output result of the pixels based on the mapping relationship coefficient and the primary color component value information, thereby obtaining the output image with enhanced image display effect. This is beneficial to improving the comprehensiveness and rationality of the mapping processing method of the original input image, thereby improving the accuracy and reliability of the mapping processing of the original input image, and thus improving the accuracy and reliability of the determined output image.
[0094] In yet another optional embodiment, the above-described performance of predetermined target processing operations on the original input image to obtain the original detail layer may include: Based on the determined downsampling ratio parameters and the determined sampling method, the corresponding downsampling processing operation is performed on the original input image to obtain the downsampled thumbnail result; Perform the corresponding bilateral filtering operation on the downsampled small image result to obtain the original detail layer.
[0095] Optionally, the downsampling ratio parameter can be used, for example, to downsample the original input image by 1 / 8, 1 / 4, or 1 / 16. Furthermore, when the downsampling ratio parameter is 1, it means that it is not necessary to perform downsampling processing on the original input image, but to directly determine the original detail layer of the original input image and perform subsequent image display enhancement operations. This embodiment of the invention does not limit this.
[0096] Optionally, the sampling method can be nearest neighbor interpolation, bilinear interpolation, etc., and the embodiments of the present invention are not limited thereto.
[0097] Optionally, a bilateral filtering operation can be performed. For example, the original detail layer is obtained by subtracting the result of bilateral filtering from the result of the downsampled small image. This embodiment of the invention is not limited to this.
[0098] Optionally, the original detail layers are obtained by subtracting the base layer from the original image. However, other edge-preserving filters, such as guided filters, can also be used as the filtering function. This embodiment of the invention does not limit the scope of the application.
[0099] As can be seen, this optional embodiment can obtain the original detail layer corresponding to the original input image through downsampling processing and bilateral filtering processing, which is beneficial to improving the comprehensiveness, rationality and progressiveness of the original detail layer determination method, and thus improving the accuracy and reliability of the determined original detail layer.
[0100] Example 3 Please see Figure 3 , Figure 3 This is a schematic diagram of the structure of a device for enhancing image display effects disclosed in an embodiment of the present invention. Wherein, Figure 3 The described apparatus may include a server, wherein the server includes a local server or a cloud server, and the embodiments of the present invention are not limited thereto. Figure 3 As shown, the device for enhancing image display effects may include: The image determination module 301 is used to determine the original input image that needs to be enhanced in terms of image display effect, and to perform a predetermined target processing operation on the original input image to obtain the original detail layer.
[0101] The image adjustment module 302 is used to perform corresponding nonlinear contrast adjustment operations on the original detail layer to obtain a first image adjustment result, and to perform corresponding morphology adjustment operations on the original detail layer to obtain a second image adjustment result.
[0102] The image overlay module 303 is used to determine the small image enhancement effect image based on the adjustment results of the first image and the adjustment results of the second image.
[0103] The mapping relationship determination module 304 is used to determine the image mapping relationship based on the original detail layer and the thumbnail enhancement effect image.
[0104] The image mapping processing module 305 is used to perform corresponding mapping processing operations on the original input image according to the image mapping relationship, so as to obtain an output image with enhanced image display effect.
[0105] It is evident that implementation Figure 3 The described device for enhancing image display effects can perform target processing operations on the original input image to obtain an original detail layer, and perform nonlinear contrast adjustment and shape adjustment operations on the original detail layer to obtain a first image adjustment result and a second image adjustment result, thereby determining a small-image enhancement effect image. Based on the original detail layer and the small-image enhancement effect image, an image mapping relationship is determined, and based on the image mapping relationship, i.e., the original input image, an enhanced output image is obtained, thus achieving image display effect enhancement. This is beneficial to improving the comprehensiveness and rationality of an image display enhancement method, thereby improving the local contrast of the image. By performing detail overlay enhancement on the small image and mapping the effect onto the original high-resolution image, it is more suitable for local contrast enhancement of high-resolution images, effectively increasing the spatial scale of brightness and darkness contrast, while reducing the cost of detail layer extraction and processing, resulting in better contrast enhancement effect in local areas.
[0106] In an optional embodiment, the image adjustment module 302 performs a corresponding non-linear contrast adjustment operation on the original detail layer to obtain the first image adjustment result, specifically including: Based on the original detail layer, determine the first property region and / or the second property region; Based on the first property region, determine the first level parameters and the first brightness distribution optimization parameters, and based on the second property region, determine the second level parameters and the second brightness distribution optimization parameters; Based on the first-level parameters and the first brightness distribution optimization parameters, perform corresponding normalization and difference adjustment operations on the first property region to obtain the processing result of the first region; and / or, based on the second-level parameters and the second brightness distribution optimization parameters, perform corresponding normalization and difference adjustment operations on the second property region to obtain the processing result of the second region; The first image adjustment result is determined based on the processing results of the first region and / or the processing results of the second region.
[0107] It is evident that implementation Figure 3 The described apparatus can also determine a first property region and a second property region, and perform targeted normalization and differential adjustment operations on the first property region and the second property region respectively to obtain a first image adjustment result. This is beneficial to improving the targeting, flexibility and diversity of the operation parameters (i.e., hierarchical parameters, brightness distribution optimization parameters) used for nonlinear contrast adjustment operations on the region, and to improving the targeting and fit of the normalization and differential adjustment methods of the region. This is beneficial to improving the accuracy and targeting of the determined first region processing result and the second region processing result, thereby improving the accuracy and reliability of the determined first image adjustment result.
[0108] In another optional embodiment, the image adjustment module 302 performs corresponding normalization and difference adjustment operations on the first property region according to the first level parameters and the first brightness distribution optimization parameters, and the specific method for obtaining the processing result of the first region includes: Based on the first-level parameters, a corresponding normalization operation is performed on the first-property region to obtain a first processing result. Based on the first brightness distribution optimization parameters, a corresponding detail layer difference adjustment operation is performed on the first processing result to obtain a second processing result. Based on the first-level parameters, a corresponding normalization operation is performed on the second processing result to determine the first region processing result.
[0109] It is evident that implementation Figure 3 The described device can also perform a normalization operation based on the first-level parameters and a detail layer difference adjustment operation based on the first brightness distribution optimization parameters to obtain the first region processing result. This is beneficial to improving the comprehensiveness, rationality and progressiveness of the method for determining the first region processing result, and thus beneficial to improving the pertinence and fit of the reference parameters for the normalization operation and the detail layer difference adjustment operation, thereby improving the accuracy and reliability of the determined first region processing result.
[0110] In another optional embodiment, the image adjustment module 302 performs corresponding normalization and difference adjustment operations on the second property region according to the second level parameters and the second brightness distribution optimization parameters, and the specific method for obtaining the processing result of the second region includes: Based on the second-level parameters, the corresponding normalization operation is performed on the second-property region to obtain the third processing result. Based on the second brightness distribution optimization parameters, the corresponding detail layer difference adjustment operation is performed on the third processing result to obtain the fourth processing result. Based on the second-level parameters, the corresponding normalization operation is performed on the fourth processing result to determine the second region processing result.
[0111] It is evident that implementation Figure 3 The described device can also perform normalization operations based on second-level parameters and detail layer difference adjustment operations based on second brightness distribution optimization parameters to obtain second region processing results. This is beneficial to improving the comprehensiveness, rationality, and progressiveness of the method for determining the second region processing results, and further beneficial to improving the pertinence and fit of the reference parameters for normalization operations and detail layer difference adjustment operations, thereby improving the accuracy and reliability of the determined second region processing results.
[0112] In yet another optional embodiment, the image adjustment module 302 determines the first property region and / or the second property region based on the original detail layer in the following specific ways: Based on the original detail layer, the regions with detail values greater than 0 are identified as the first property regions; Based on the original detail layer, the regions with detail values less than 0 are identified as the second property regions.
[0113] It is evident that implementation Figure 3 The described device can also determine the first property region or the second property region based on the comparison between the region detail value and 0, which helps to improve the comprehensiveness and rationality of the method for determining the first property region / second property region, and helps to improve the diversity, flexibility and pertinence of the method for determining the first property region / second property region, thereby helping to improve the accuracy and reliability of the determined first property region and second property region.
[0114] In another optional embodiment, the image adjustment module 302 performs corresponding morphological adjustment operations on the original detail layer to obtain the second image adjustment result in the following specific ways: For each pixel in the original detail layer, the filter type for that pixel is determined based on its detail value. When the filtering type of the pixel is the maximum value filtering type, the corresponding sliding window maximum value filtering operation is performed on the detail layer corresponding to the pixel to obtain the filtering result of the pixel; When the filtering type of the pixel is the minimum value filtering type, the corresponding sliding window minimum value filtering operation is performed on the detail layer corresponding to the pixel to obtain the filtering result of the pixel; The second image adjustment result is determined based on the filtering results of all pixels.
[0115] It is evident that implementation Figure 3 The described device can also determine the filtering type based on the detail value of the pixel, and match the corresponding filtering operation for the maximum value filtering type or the minimum value filtering type to obtain the second image adjustment result. This is beneficial to improving the comprehensiveness and rationality of the original detail layer morphology adjustment method, improving the diversity, flexibility and pertinence of the detail layer filtering processing method, and thus improving the accuracy and reliability of the determined pixel filtering processing result, thereby improving the accuracy and reliability of the determined second image adjustment result.
[0116] In yet another optional embodiment, the image adjustment module 302 determines the filter type of a pixel based on its detail value in the following ways: When the detail value of a pixel is greater than 0, the filtering type of the pixel is determined to be the maximum value filtering type; and / or, when the detail value of a pixel is less than 0, the filtering type of the pixel is determined to be the minimum value filtering type.
[0117] It is evident that implementation Figure 3The described device can also determine the filter type of a pixel based on the comparison between the detail value of the pixel and 0, which helps to improve the comprehensiveness and rationality of the method for determining the filter type of the pixel, and helps to improve the diversity, flexibility and pertinence of the method for determining the filter type of the pixel, thereby helping to improve the accuracy and reliability of the determined filter type of the pixel.
[0118] In another optional embodiment, the image overlay module 303 determines the method of the small image enhancement effect image based on the first image adjustment result and the second image adjustment result, specifically including: Determine the preset local contrast overlay coefficient and the preset overall image brightness adjustment parameters; Based on the local contrast overlay coefficient, the first image adjustment result, and the second image adjustment result, the first overlay enhancement result is determined, and based on the overall image brightness adjustment parameters and the determined downsampled thumbnail result of the original input image, the second overlay enhancement result is determined. Based on the first and second overlay enhancement results, the image with enhanced small image effect is determined.
[0119] It is evident that implementation Figure 3 The described apparatus can also determine a first superimposed enhancement result based on the local contrast superposition coefficient, the first image adjustment result, and the second image adjustment result, and determine a second superimposed enhancement result based on the overall image brightness adjustment parameters and the downsampled small image result, thereby determining the small image enhancement effect image. This is beneficial to improving the comprehensiveness and rationality of the method for determining the small image enhancement effect image, the pertinence and rationality of the method for determining the first superimposed enhancement result, and the pertinence and rationality of the method for determining the second superimposed enhancement result, thereby improving the accuracy and reliability of the determined small image enhancement effect image.
[0120] In another optional embodiment, the mapping relationship determination module 304 determines the image mapping relationship based on the original detail layer and the thumbnail enhancement effect image in the following specific ways: Based on the determined spatial division ratio parameters and value range division ratio parameters, the corresponding region division operation is performed on the original detail layer to obtain one or more first sub-regions, and the corresponding region division operation is performed on the small image enhancement effect image to obtain one or more second sub-regions. Each first sub-region has a corresponding second sub-region. For each corresponding first sub-region and second sub-region, the mapping relationship coefficients corresponding to the first sub-region and the second sub-region are determined based on the first pixel information of the first sub-region and the second pixel information of the second sub-region. The image mapping relationship is determined based on all mapping coefficients.
[0121] It is evident that implementation Figure 3 The described device can also perform corresponding region division operations on the original detail layer and the thumbnail enhancement image according to the spatial division ratio parameter and the value range division ratio parameter, and determine the mapping relationship coefficients of the relevant first sub-region and second sub-region based on pixel information, thereby determining the image mapping relationship. This is beneficial to improving the targeting and fit of the determined first sub-region and second sub-region, improving the accuracy and reliability of the determined mapping relationship coefficients, and thus improving the accuracy and reliability of the determined image mapping relationship.
[0122] In another optional embodiment, the image mapping processing module 305 performs corresponding mapping processing operations on the original input image according to the image mapping relationship to obtain an output image with enhanced image display effect. Specifically, this includes: For each pixel in the original input image, determine the second coordinate information of the pixel based on the original detail layer, based on the first coordinate information of the pixel based on the original input image. Based on the second coordinate information of the pixel, determine the first sub-region corresponding to the pixel, and based on the image mapping relationship and the first sub-region corresponding to the pixel, determine the mapping relationship coefficient corresponding to the pixel. The enhanced output result of the pixel is determined based on the mapping coefficient and primary color component value information corresponding to the pixel. Based on the enhanced output results of all pixels, determine the output image after image display enhancement.
[0123] It is evident that implementation Figure 3 The described device can also determine the mapping relationship coefficient based on the second coordinate information of the pixels in the original input image, and determine the enhanced output result of the pixels based on the mapping relationship coefficient and the primary color component value information, thereby obtaining an output image with enhanced image display effect. This is beneficial to improving the comprehensiveness and rationality of the mapping processing method of the original input image, thereby improving the accuracy and reliability of the mapping processing of the original input image, and thus improving the accuracy and reliability of the determined output image.
[0124] In another optional embodiment, the image determination module 301 performs a predetermined target processing operation on the original input image to obtain the original detail layer, specifically including: Based on the determined downsampling ratio parameters and the determined sampling method, the corresponding downsampling processing operation is performed on the original input image to obtain the downsampled thumbnail result; Perform the corresponding bilateral filtering operation on the downsampled small image result to obtain the original detail layer.
[0125] It is evident that implementation Figure 3The described apparatus can also obtain the original detail layer corresponding to the original input image through downsampling and bilateral filtering operations, which helps to improve the comprehensiveness, rationality and progressiveness of the original detail layer determination method, and thus helps to improve the accuracy and reliability of the determined original detail layer.
[0126] Example 4 Please see Figure 4 , Figure 4 This is a schematic diagram of another device for enhancing image display effects disclosed in an embodiment of the present invention. Figure 4 The described apparatus may include a server, wherein the server includes a local server or a cloud server, and the embodiments of the present invention are not limited thereto. Figure 4 As shown, the device may include: Memory 401 storing executable program code; Processor 402 coupled to memory 401; Furthermore, it may also include an input interface 403 coupled to the processor 402 and an output interface 404; The processor 402 calls the executable program code stored in the memory 401 to execute the steps in the method for enhancing image display effect described in Embodiment 1 or Embodiment 2.
[0127] Example 5 This invention discloses a computer storage medium storing a computer program for electronic data interchange, wherein the computer program causes a computer to perform the steps of a method for enhancing image display effects described in Embodiment 1 or Embodiment 2.
[0128] Example 6 This invention discloses a computer program product, which includes a non-transitory computer-readable storage medium storing a computer program, and the computer program is operable to cause a computer to perform the steps of a method for enhancing image display effects described in Embodiment 1 or Embodiment 2.
[0129] The device embodiments described above are merely illustrative. The modules described as separate components may or may not be physically separate. The components shown as modules may or may not be physical modules; that is, they may be located in one place or distributed across multiple network modules. Some or all of the modules can be selected to achieve the purpose of this embodiment according to actual needs. Those skilled in the art can understand and implement this without any creative effort.
[0130] Through the detailed description of the above embodiments, those skilled in the art can clearly understand that each implementation method can be implemented by means of software plus necessary general-purpose hardware platforms, and of course, it can also be implemented by hardware. Based on this understanding, the above technical solutions, in essence or the part that contributes to the prior art, can be embodied in the form of a software product. This computer software product can be stored in a computer-readable storage medium, including read-only memory (ROM), random access memory (RAM), programmable read-only memory (PROM), erasable programmable read-only memory (EPROM), one-time programmable read-only memory (OTPROM), electrically-Erasable Programmable Read-Only Memory (EEPROM), compact disc read-only memory (CD-ROM) or other optical disc storage, disk storage, magnetic tape storage, or any other computer-readable medium that can be used to carry or store data.
[0131] Finally, it should be noted that the method and apparatus for enhancing image display effect disclosed in the embodiments of the present invention are merely preferred embodiments of the present invention and are only used to illustrate the technical solutions of the present invention, not to limit it. Although the present invention has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that modifications can still be made to the technical solutions described in the foregoing embodiments, or equivalent substitutions can be made to some of the technical features. Such modifications or substitutions do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of the present invention.
Claims
1. A method for enhancing image display effects, characterized in that, The method includes: Identify the original input image that needs image display enhancement, and perform predetermined target processing operations on the original input image to obtain the original detail layer; Perform a corresponding nonlinear contrast adjustment operation on the original detail layer to obtain a first image adjustment result, and perform a corresponding morphology adjustment operation on the original detail layer to obtain a second image adjustment result; Based on the first image adjustment result and the second image adjustment result, determine the image with the small image enhancement effect; Based on the original detail layer and the thumbnail enhancement image, determine the image mapping relationship; Based on the image mapping relationship, the original input image is subjected to corresponding mapping processing operations to obtain an output image with enhanced image display effect.
2. The method for enhancing image display effect according to claim 1, characterized in that, The step of performing a corresponding nonlinear contrast adjustment operation on the original detail layer to obtain a first image adjustment result includes: Based on the original detail layer, determine the first property region and / or the second property region; Based on the first property region, determine the first level parameters and the first brightness distribution optimization parameters, and based on the second property region, determine the second level parameters and the second brightness distribution optimization parameters; Based on the first-level parameters and the first brightness distribution optimization parameters, perform corresponding normalization and difference adjustment operations on the first property region to obtain the first region processing result; and / or, based on the second-level parameters and the second brightness distribution optimization parameters, perform corresponding normalization and difference adjustment operations on the second property region to obtain the second region processing result; The first image adjustment result is determined based on the processing results of the first region and / or the processing results of the second region.
3. The method for enhancing image display effect according to claim 2, characterized in that, The step of performing corresponding normalization and difference adjustment operations on the first property region based on the first level parameters and the first brightness distribution optimization parameters to obtain the first region processing result includes: Based on the first level parameters, a corresponding normalization operation is performed on the first property region to obtain a first processing result. Based on the first brightness distribution optimization parameters, a corresponding detail layer difference adjustment operation is performed on the first processing result to obtain a second processing result. Based on the first level parameters, a corresponding normalization operation is performed on the second processing result to determine the processing result of the first region. Furthermore, the step of performing corresponding normalization and difference adjustment operations on the second property region based on the second-level parameters and the second brightness distribution optimization parameters to obtain the second region processing result includes: Based on the second-level parameters, a corresponding normalization operation is performed on the second property region to obtain a third processing result. Based on the second brightness distribution optimization parameters, a corresponding detail layer difference adjustment operation is performed on the third processing result to obtain a fourth processing result. Based on the second-level parameters, a corresponding normalization operation is performed on the fourth processing result to determine the second region processing result. And, determining the first property region and / or the second property region based on the original detail layer includes: Based on the original detail layer, regions with detail values greater than 0 are identified as the first property regions; Based on the original detail layer, regions with detail values less than 0 are identified as second property regions.
4. The method for enhancing image display effect according to claim 1, characterized in that, The step of performing corresponding morphological adjustment operations on the original detail layer to obtain the second image adjustment result includes: For each pixel in the original detail layer, the filtering type of the pixel is determined based on the detail value of that pixel; When the filtering type of the pixel is the maximum value filtering type, the corresponding sliding window maximum value filtering operation is performed on the detail layer corresponding to the pixel to obtain the filtering result of the pixel; When the filtering type of the pixel is the minimum value filtering type, the corresponding sliding window minimum value filtering operation is performed on the detail layer corresponding to the pixel to obtain the filtering result of the pixel; The second image adjustment result is determined based on the filtering results of all the pixels. And, determining the filter type of the pixel based on its detail value includes: When the detail value of a pixel is greater than 0, the filtering type of the pixel is determined to be the maximum value filtering type; and / or, when the detail value of a pixel is less than 0, the filtering type of the pixel is determined to be the minimum value filtering type.
5. A method for enhancing image display effect according to any one of claims 1-4, characterized in that, The step of determining the small image enhancement effect image based on the first image adjustment result and the second image adjustment result includes: Determine the preset local contrast overlay coefficient and the preset overall image brightness adjustment parameters; Based on the local contrast overlay coefficient, the first image adjustment result, and the second image adjustment result, a first overlay enhancement result is determined, and based on the overall image brightness adjustment parameters and the determined downsampled thumbnail result of the original input image, a second overlay enhancement result is determined. Based on the first and second overlay enhancement results, the image with enhanced small image effect is determined.
6. The method for enhancing image display effect according to claim 5, characterized in that, The step of determining the image mapping relationship based on the original detail layer and the thumbnail enhancement image includes: Based on the determined spatial division ratio parameters and value range division ratio parameters, the original detail layer is subjected to a corresponding region division operation to obtain one or more first sub-regions, and the small image enhancement effect image is subjected to a corresponding region division operation to obtain one or more second sub-regions. Each first sub-region has a corresponding second sub-region. For each corresponding first sub-region and second sub-region, the mapping relationship coefficients corresponding to the first sub-region and the second sub-region are determined based on the first pixel information of the first sub-region and the second pixel information of the second sub-region. The image mapping relationship is determined based on all the aforementioned mapping coefficients; And, the step of performing corresponding mapping processing operations on the original input image according to the image mapping relationship to obtain an output image with enhanced image display effect includes: For each pixel in the original input image, the second coordinate information of the pixel based on the original detail layer is determined according to the first coordinate information of the pixel based on the original input image. Based on the second coordinate information of the pixel, the first sub-region corresponding to the pixel is determined, and based on the image mapping relationship and the first sub-region corresponding to the pixel, the mapping relationship coefficient corresponding to the pixel is determined. The enhanced output result of the pixel is determined based on the mapping coefficient and primary color component value information corresponding to the pixel. Based on the enhanced output results of all the pixels, determine the output image after image display enhancement.
7. The method for enhancing image display effect according to claim 6, characterized in that, The step of performing a predetermined target processing operation on the original input image to obtain the original detail layer includes: Based on the determined downsampling ratio parameters and the determined sampling method, the original input image is subjected to corresponding downsampling processing operations to obtain downsampled thumbnail results; Perform the corresponding bilateral filtering operation on the downsampled small image result to obtain the original detail layer.
8. A device for enhancing image display effects, characterized in that, The device includes: The image determination module is used to determine the original input image that needs to be enhanced in terms of image display effect, and to perform a predetermined target processing operation on the original input image to obtain the original detail layer; The image adjustment module is used to perform corresponding non-linear contrast adjustment operations on the original detail layer to obtain a first image adjustment result, and to perform corresponding shape adjustment operations on the original detail layer to obtain a second image adjustment result; The image overlay module is used to determine the small image enhancement effect image based on the adjustment results of the first image and the adjustment results of the second image; The mapping relationship determination module is used to determine the image mapping relationship based on the original detail layer and the small image enhancement effect image; The image mapping processing module is used to perform corresponding mapping processing operations on the original input image according to the image mapping relationship, so as to obtain an output image with enhanced image display effect.
9. A device for enhancing image display effects, characterized in that, The device includes: Memory containing executable program code; A processor coupled to the memory; The processor calls the executable program code stored in the memory to execute a method for enhancing image display effects as described in any one of claims 1-7.
10. A computer storage medium, characterized in that, The computer storage medium stores computer instructions, which, when invoked, are used to execute a method for enhancing image display effects as described in any one of claims 1-7.