Shadow region contrast gain method and related equipment
By calculating the gain coefficient of the shadowed area and adjusting the contrast, the problem of low contrast in the shadowed area is solved, significantly improving the image quality and detailed performance of the shadowed area.
Patent Information
- Application Number
- CN202510457881.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-04-11
- Publication Date
- 2025-05-13
- Estimated Expiration
- 2045-04-11
AI Technical Summary
The prior art is difficult to effectively improve the contrast of shadowed areas, resulting in the loss of details of shadowed areas and poor display effect.
By obtaining the shadow center position of the shadow area and the position of the area to be gained, the direction vector and boundary point position are calculated, the gain coefficient of the area to be gained, and the contrast adjustment of the shadow area is made according to the gain coefficient.
Adaptive contrast adjustment of shadowed areas in shadow scenes is realized, which significantly improves image quality and enhances the detailed performance of shadowed areas.
Smart Images

Figure CN119993090A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of graphic display technology, and in particular to a shadow area contrast gain method and related equipment. Background Art
[0002] With the continuous development of display technology, people's requirements for visual effects are constantly increasing. Whether watching videos, playing games or doing other visual activities, they hope to obtain more realistic, clear and smooth picture effects.
[0003] In many practical applications, such as photography, images are often affected by uneven illumination, resulting in low contrast in shadow areas, loss of details, and poor display effects. In the prior art, there is no good way to solve the above problems.
[0004] Therefore, it is hoped that there will be a new shadow area contrast gain method and related equipment that can overcome the above problems. Summary of the invention
[0005] In view of the above problems, the object of the present invention is to provide a shadow area contrast gain method and related equipment, in particular, a convex hull area shadow adaptive contrast gain method, so as to adaptively adjust the contrast of the shadow area of the shadow scene.
[0006] According to one aspect of the present invention, a shadow area contrast gain method is provided, comprising:
[0007] Get the shadow center position of the shadow area;
[0008] According to the position of the area to be gained in the shadow area and the center position of the shadow, a direction vector of the area to be gained is obtained;
[0009] Obtaining the position of the boundary point of the shadow area in the direction where the direction vector is located;
[0010] A gain coefficient of the area to be gained is obtained according to the position of the boundary point, the position of the area to be gained and the position of the center of the shadow.
[0011] Optionally, the shadow area contrast gain method further includes:
[0012] Acquire the brightness of the area to be gained in the shadow area;
[0013] The brightness after gain of the area to be gained is obtained according to the gain coefficient and the brightness.
[0014] Optionally, the shadow center position is ;
[0015] The position of the area to be gained is ;
[0016] The direction vector ;
[0017] The boundary point position is ,in, ;
[0018] The gain factor ;
[0019] The shadow area contrast gain method further includes:
[0020] Get the contrast adjustment base curve of the shadow center position ,
[0021]
[0022] in, is the basic contrast factor, For The brightness value at the position, is the original global mapping curve;
[0023] According to the gain coefficient and the contrast adjustment base curve, the contrast mapping curve of the area to be gained is obtained. .
[0024] Optionally, the shadow area contrast gain method further includes:
[0025] Get the display screen to be gained;
[0026] The shadow area is obtained according to the display picture to be gained.
[0027] Optionally, the shadow area contrast gain method further includes:
[0028] Extracting the shadow area from the display picture to be gained according to the shadow segmentation mask;
[0029] The to-be-gained display picture is gained according to the gain coefficient to obtain a display picture.
[0030] Optionally, the shadow area contrast gain method further includes:
[0031] The shadow area and the shadow center position are acquired from the display picture to be gained according to a priori.
[0032] Optionally, the shadow area contrast gain method further includes:
[0033] Get the display screen to be gained;
[0034] Converting the display picture to be gained from the RGB domain to the YUV domain;
[0035] After acquiring the gain coefficient, obtaining a contrast mapping curve of the area to be gained;
[0036] After mapping the area to be gained according to the contrast mapping curve, the YUV domain is converted to the RGB domain for output.
[0037] Optionally, the shadow area is a convex hull area.
[0038] According to another aspect of the present invention, there is provided a shadow area contrast gain system, comprising:
[0039] An acquisition unit, used for acquiring the shadow center position of the shadow area;
[0040] A vector operation unit, used for obtaining a direction vector of the area to be gained according to the position of the area to be gained in the shadow area and the center position of the shadow;
[0041] A boundary point calculation unit, used to obtain the boundary point position of the shadow area in the direction where the direction vector is located;
[0042] The gain coefficient calculation unit is used to obtain the gain coefficient of the area to be gained according to the position of the boundary point, the position of the area to be gained and the position of the center of the shadow.
[0043] According to another aspect of the present invention, there is provided a chip, comprising:
[0044] Shadow area contrast gain system as described above.
[0045] According to another aspect of the present invention, there is provided a display panel, comprising:
[0046] The shadow area contrast gain system described above,
[0047] Among them, the display panel includes at least one selected from a cathode ray tube display panel, a digital light processing display panel, a liquid crystal display panel, a light emitting diode display panel, an organic light emitting diode display panel, a quantum dot display panel, a Mirco-LED display panel, a Mini-LED display panel, a field emission display panel, a plasma display panel, an electrophoretic display panel or an electrowetting display panel.
[0048] According to another aspect of the present invention, there is provided a display device, comprising:
[0049] A shadow area contrast enhancement system as described above; and
[0050] A display panel is connected to the shadow area contrast gain system to display a display picture gained by the shadow area contrast gain system.
[0051] According to another aspect of the present invention, a computer-readable storage medium is provided, on which a computer program is stored, wherein when the program is executed by a processor, the shadow area contrast gain method as described above is implemented.
[0052] The shadow area contrast gain method and related equipment provided by the present invention obtain the gain coefficient of the area to be gained according to the boundary point position, the position of the area to be gained and the shadow center position, and can perform adaptive contrast adjustment on the shadow area of the shadow scene.
[0053] Furthermore, by enhancing the contrast of the shadow area of the display image according to the gain coefficient, the image quality can be significantly improved, and the details of the shadow area can be enhanced.
[0054] Furthermore, according to the priori recognition of the shadow area, the shadow area can be obtained efficiently and accurately, thereby achieving the gain of the picture.
[0055] Furthermore, by calculating the shadow center position, the adaptability and contrast gain effect of the gain method can be effectively improved.
[0056] Furthermore, the contrast of non-shadow areas remains unchanged during the processing, thus ensuring that the overall visual effect of the image is not affected.
[0057] Furthermore, the image is converted from the RGB domain to the YUV domain and then subjected to gain processing to separate brightness and chromaticity, thereby reducing the amount of data calculation and improving processing efficiency. BRIEF DESCRIPTION OF THE DRAWINGS
[0058] The above and other objects, features and advantages of the present invention will become more apparent through the following description of the embodiments of the present invention with reference to the accompanying drawings, in which:
[0059] Figure 1 A method flow chart of a shadow area contrast gain method according to an embodiment of the present invention is shown;
[0060] Figure 2 A schematic diagram showing the principle of a shadow area contrast gain method according to an embodiment of the present invention is shown;
[0061] Figure 3 A schematic diagram of the structure of a chip according to an embodiment of the present invention is shown;
[0062] Figure 4 A schematic structural diagram of a display device according to an embodiment of the present invention is shown. DETAILED DESCRIPTION
[0063] Various embodiments of the present invention will be described in more detail below with reference to the accompanying drawings. In each of the accompanying drawings, identical elements are represented by identical or similar reference numerals. For the sake of clarity, the various parts in the accompanying drawings are not drawn to scale. In addition, some well-known parts may not be shown in the drawings.
[0064] The specific implementation of the present invention is further described in detail below in conjunction with the accompanying drawings and examples. Many specific details of the present invention, such as the structure, materials, dimensions, processing technology and techniques of the components are described below to provide a clearer understanding of the present invention. However, as those skilled in the art will appreciate, the present invention may be implemented without following these specific details.
[0065] It should be understood that when describing the structure of a component, when a layer or a region is referred to as being "on" or "over" another layer or another region, it may mean that it is directly on the other layer or another region, or that other layers or regions are included between it and the other layer or another region. Moreover, if the component is turned over, the layer or a region will be "below" or "beneath" another layer or another region.
[0066] Figure 1 FIG. 4 is a flowchart of a method for contrast gain in a shadow area according to an embodiment of the present invention. Figure 1 As shown, the shadow area contrast gain method according to an embodiment of the present invention comprises the following steps:
[0067] In step S101, the shadow center position of the shadow area is obtained;
[0068] Get the center position of the shadow in the shadow area. For application scenarios displayed by a display panel, the shadow area is, for example, an area in the image where the local brightness is significantly lower than the surrounding area due to an object blocking the light source (such as the sun, lights, etc.). The shadow area may include self-shadows (shadow areas formed by the object's own structure blocking the light) and projected shadows (shadows projected by the object onto other surfaces), etc. The center position of the shadow may be at least one of the geometric center, optical center, and lowest brightness point of the shadow area. Optionally, the shadow area and the center position of the shadow are obtained from the display screen (image) to be gained based on a priori (prior knowledge or assumptions).
[0069] Optionally, the shaded area is a convex hull area. When the shaded area is a non-convex hull area, the non-convex hull area can be divided to obtain multiple convex hull areas, and then the multiple convex hull areas are processed separately. The convex hull is the smallest convex polygon that contains all given points, and the line connecting any two points is located inside or on the edge of the polygon. In image processing, the convex hull region refers to the geometric operation of converting the outline of a target area in an image into a minimum convex polygon. The convex hull generates a completely convex closed area by eliminating the concave part of the original outline, and is an important tool for shape analysis and feature extraction.
[0070] In step S102, a direction vector of the area to be gained is obtained according to the position of the area to be gained in the shadow area and the center position of the shadow;
[0071] The direction vector of the area to be gained is obtained according to the position of the area to be gained in the shadow area and the center position of the shadow. The area to be gained is, for example, at least a part of the shadow area, which may be a single pixel in the shadow area or a collection of adjacent pixels.
[0072] In step S103, the position of the boundary point of the shadow area in the direction of the direction vector is obtained;
[0073] The position of the boundary point of the shadow area in the direction of the direction vector is obtained. In other words, the position of the boundary point obtained is located on the boundary of the shadow area.
[0074] In step S104, a gain coefficient of the area to be gained is obtained according to the position of the boundary point, the position of the area to be gained and the position of the center of the shadow.
[0075] The gain coefficient of the area to be gained is obtained according to the position of the boundary point, the position of the area to be gained and the center position of the shadow. Further, the display of the area to be gained can be adjusted according to the obtained gain coefficient. It should be noted that the gain described in this application is not limited to a method of increasing the contrast in terms of the contrast of the final display screen, but may also include a method of reducing the contrast.
[0076] The contrast of a picture refers to the degree of difference between the brightest and darkest parts of an image. It determines the sense of hierarchy, detail expression, and overall visual impact of the bright and dark parts of the picture. The higher the contrast, the greater the difference between the bright and dark parts, the brighter and sharper the picture appears, and the three-dimensional sense and clarity can be enhanced. According to the shadow area contrast gain method of an embodiment of the present invention, an adaptive contrast gain in the shadow area can be achieved, and the gain coefficient is adjustable, and the non-shadow area retains the original contrast.
[0077] Optionally, the shadow area contrast gain method further includes: acquiring the brightness of the area to be gained in the shadow area; and obtaining the brightness of the area to be gained after gain according to the gain coefficient and the brightness.
[0078] In an optional embodiment of the present invention, the shadow area contrast gain method further includes: obtaining a display picture to be gained; obtaining the shadow area according to the display picture to be gained. Optionally, extracting the shadow area from the display picture to be gained according to a shadow segmentation mask; and gaining the display picture to be gained according to the gain coefficient to obtain a display picture.
[0079] In an optional embodiment of the present invention, the shadow area contrast gain method further includes:
[0080] Get the display screen to be gained;
[0081] Converting the display picture to be gained from the RGB domain to the YUV domain;
[0082] After acquiring the gain coefficient, obtaining a contrast mapping curve of the area to be gained;
[0083] After mapping the area to be gained according to the contrast mapping curve, the YUV domain is converted to the RGB domain for output.
[0084] Among them, in the RGB domain, RGB is the abbreviation of the three colors red, green, and blue; the RGB color mode can produce various colors by superimposing red, green, and blue light of different intensities. YUV (domain) is a color encoding method, Y represents brightness (Luma), U and V correspond to Cb (blue chromaticity component) and Cr (red chromaticity component), respectively, representing chromaticity (Chroma), which is used to describe the color and saturation of the image.
[0085] Figure 2 The schematic diagram of the principle of the shadow area contrast gain method according to an embodiment of the present invention is shown. Figure 2 , taking a specific embodiment as an example, the shadow area contrast gain method of the present application is described.
[0086] The shadow area contrast gain method described in the present application can first obtain the shadow area and the shadow center position through the shadow adaptive contrast gain algorithm. The shadow adaptive contrast gain algorithm, for example, includes a priori, and the shadow area (shadow area segmentation priori mask) and the shadow center position can be obtained according to the priori In image shadow processing, prior refers to prior knowledge or assumptions obtained through experience, physical laws or data statistics, which are used to guide the algorithm to detect, remove or gain shadows more efficiently and accurately. These priors are usually based on the observation and modeling of shadow characteristics (such as brightness, color, shape, distribution, etc.).
[0087] Known shadow center position , set the contrast adjustment base curve at the center of the shadow , and at the same time satisfy:
[0088]
[0089] in, is the basic contrast factor; For The brightness value at the position; is the original global mapping curve. Optionally, the original global mapping curve is, for example, an S-curve mapping.
[0090] Of course, the above is only a specific way to obtain the shadow area and the shadow center position, and is not limited to this. The shadow area and the shadow center position can also be obtained by other ways.
[0091] like Figure 2 As shown, according to the priori and the original image (the display image to be gained), the display image (the image after gain processing) can be obtained.
[0092] Specifically, the shadow area contrast gain method includes the following steps:
[0093] Step 1: Color gamut conversion.
[0094] Convert the color space of the original image (the image to be displayed) from RGB to YUV domain.
[0095] Step 2: Shadow area segmentation.
[0096] According to the shadow mask and the original image, the shadow (local) area is obtained.
[0097] Step 3: Calculate the shadow center position.
[0098] Get the shadow center position through the shadow area If the shadow center position is known, this step can be omitted.
[0099] Step 4: Calculate the adaptive gain parameters of each pixel in the shadow area (area to be gained).
[0100] Assume that the current pixel (area to be gained) is located at , current pixel brightness , calculate the current pixel direction vector .
[0101] Get the boundary point position of the current direction in the shadow area through the direction vector ,in, .
[0102] The adaptive gain coefficient is calculated by the shadow area boundary point position of the current pixel position and the current pixel point. .
[0103] Step 5: Calculate the contrast mapping curve of the current pixel position.
[0104] According to the adaptive gain coefficient of the current position and the contrast adjustment base curve of the shadow center position, the contrast mapping curve of the current pixel position is calculated:
[0105] .
[0106] Step 6: Color gamut conversion.
[0107] After mapping, the YUV domain is converted to the RGB domain for output.
[0108] According to another aspect of the present invention, a shadow area contrast gain system is provided, for example, for implementing the shadow area contrast gain method described above. The shadow area contrast gain system includes an acquisition unit, a vector operation unit, a boundary point operation unit and a gain coefficient operation unit.
[0109] Specifically, the acquisition unit is used to acquire the shadow center position of the shadow area.
[0110] The vector operation unit is used to obtain the direction vector of the area to be gained according to the position of the area to be gained in the shadow area and the center position of the shadow.
[0111] The boundary point calculation unit is used to obtain the boundary point position of the shadow area in the direction of the direction vector.
[0112] The gain coefficient calculation unit is used to obtain the gain coefficient of the area to be gained according to the position of the boundary point, the position of the area to be gained and the position of the center of the shadow.
[0113] According to another aspect of the present invention, a (display) chip is provided, which includes the shadow area contrast gain system as described above.
[0114] Figure 3 FIG. 2 shows a schematic diagram of the structure of a chip according to an embodiment of the present invention. Figure 3 As shown, the chip according to the embodiment of the present invention includes an acquisition unit 801 , a vector operation unit 802 , a boundary point operation unit 803 and a gain coefficient operation unit 804 .
[0115] Specifically, the acquisition unit 801 acquires the shadow center position of the shadow area. The vector operation unit 802 obtains the direction vector of the area to be gained according to the position of the area to be gained in the shadow area and the shadow center position. The boundary point operation unit 803 obtains the boundary point position of the shadow area in the direction of the direction vector. The gain coefficient operation unit 804 obtains the gain coefficient of the area to be gained according to the boundary point position, the position of the area to be gained and the shadow center position. According to another aspect of the present invention, a display panel is provided. The display panel includes the shadow area contrast gain system as described above. The display panel includes at least one selected from a cathode ray tube display panel, a digital light processing display panel, a liquid crystal display panel, a light emitting diode display panel, an organic light emitting diode display panel, a quantum dot display panel, a Mirco-LED display panel, a Mini-LED display panel, a field emission display panel, a plasma display panel, an electrophoretic display panel or an electrowetting display panel.
[0116] According to another aspect of the present invention, a display device is provided. The display device comprises the shadow region contrast gain system as described above and a display panel. The display panel is connected to the shadow region contrast gain system to display a display picture after being enhanced by the shadow region contrast gain system.
[0117] Figure 4 FIG. 2 shows a schematic diagram of the structure of a display device according to an embodiment of the present invention. Figure 4 As shown, the display device 9 according to the embodiment of the present invention includes a display panel 901 , a processor 902 and a memory 903 .
[0118] One or more computer programs are stored in the memory 903. When the one or more computer programs are executed by the processor 902, the processor 902 implements the shadow area contrast gain method described above. The display panel 901 displays the display picture processed by the shadow area contrast gain method.
[0119] According to another aspect of the present invention, a computer-readable storage medium is provided, on which a computer program is stored, wherein the program, when executed by a processor, implements the shadow area contrast gain method described above. The computer-readable storage medium according to an embodiment of the present invention includes but is not limited to the above-mentioned memory 903, which may be a unit directly connected to the chip (processor 902), or an independent unit whose main function is storage. The computer storage medium of the embodiment of the present disclosure may adopt any combination of one or more computer-readable media. The computer-readable medium may be a computer-readable signal medium or a computer-readable storage medium. The computer-readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination thereof. The computer program code for executing the operation of the embodiment of the present disclosure may be written in one or more programming languages or a combination thereof, and the programming language includes an object-oriented programming language (such as Java, Smalltalk, C++), and also includes a conventional procedural programming language such as "C" language or a similar programming language.
[0120] It should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the statement "comprise a ..." do not exclude the presence of other identical elements in the process, method, article or device including the elements.
[0121] According to the embodiments of the present invention as described above, these embodiments do not describe all the details in detail, nor do they limit the invention to the specific embodiments described. Obviously, many modifications and changes can be made based on the above description. This specification selects and specifically describes these embodiments in order to better explain the principles and practical applications of the present invention, so that those skilled in the art can make good use of the present invention and the modified use based on the present invention. The present invention is limited only by the claims and their full scope and equivalents.
Claims
1. A shadow area contrast gain method, comprising: Get the shadow center position of the shadow area; According to the position of the area to be gained in the shadow area and the center position of the shadow, a direction vector of the area to be gained is obtained; Obtaining the position of the boundary point of the shadow area in the direction where the direction vector is located; A gain coefficient of the area to be gained is obtained according to the position of the boundary point, the position of the area to be gained and the position of the center of the shadow.
2. The shadow area contrast gain method according to claim 1, wherein: The shadow area contrast gain method further includes: Acquire the brightness of the area to be gained in the shadow area; The brightness after gain of the area to be gained is obtained according to the gain coefficient and the brightness.
3. The shadow area contrast gain method according to claim 1, wherein: The center position of the shadow is ; The position of the area to be gained is ; The direction vector ; The boundary point position is ,in, ; The gain factor ; The shadow area contrast gain method further includes: Get the contrast adjustment base curve of the shadow center position , in, is the basic contrast factor, For The brightness value at the position, is the original global mapping curve; According to the gain coefficient and the contrast adjustment base curve, the contrast mapping curve of the area to be gained is obtained. .
4. The shadow area contrast gain method according to claim 1, wherein: The shadow area contrast gain method further includes: Get the display screen to be gained; The shadow area is obtained according to the display picture to be gained.
5. The shadow area contrast gain method according to claim 4, wherein: The shadow area contrast gain method further includes: Extracting the shadow area from the display picture to be gained according to the shadow segmentation mask; The to-be-gained display picture is gained according to the gain coefficient to obtain a display picture.
6. The shadow area contrast gain method according to claim 1, wherein: The shadow area contrast gain method further includes: The shadow area and the shadow center position are acquired from the display picture to be gained according to a priori.
7. The shadow area contrast gain method according to claim 1, wherein: The shadow area contrast gain method further includes: Get the display screen to be gained; Converting the display picture to be gained from the RGB domain to the YUV domain; After acquiring the gain coefficient, obtaining a contrast mapping curve of the area to be gained; After mapping the area to be gained according to the contrast mapping curve, the YUV domain is converted to the RGB domain for output.
8. The shadow area contrast gain method according to claim 1, wherein: The shaded area is the convex hull area.
9. A shadow area contrast gain system, comprising: An acquisition unit, used for acquiring the shadow center position of the shadow area; A vector operation unit, used for obtaining a direction vector of the area to be gained according to the position of the area to be gained in the shadow area and the center position of the shadow; A boundary point calculation unit, used to obtain the boundary point position of the shadow area in the direction where the direction vector is located; The gain coefficient calculation unit is used to obtain the gain coefficient of the area to be gained according to the position of the boundary point, the position of the area to be gained and the position of the center of the shadow.
10. A chip, comprising: The shadow area contrast enhancement system of claim 9.
11. A display panel, comprising: The shadow area contrast enhancement system of claim 9, Among them, the display panel includes at least one selected from a cathode ray tube display panel, a digital light processing display panel, a liquid crystal display panel, a light emitting diode display panel, an organic light emitting diode display panel, a quantum dot display panel, a Mirco-LED display panel, a Mini-LED display panel, a field emission display panel, a plasma display panel, an electrophoretic display panel or an electrowetting display panel.
12. A display device, comprising: The shadow area contrast gain system as claimed in claim 9; as well as A display panel is connected to the shadow area contrast gain system to display a display picture gained by the shadow area contrast gain system.
13. A computer-readable storage medium having a computer program stored thereon, wherein: When the program is executed by a processor, the shadow area contrast gain method according to any one of claims 1 to 8 is implemented.
Citation Information
Patent Citations
Lens shadow correction method in image sensor
CN111818239A
Solid-state imaging apparatus and shading correction method
JP2004297449A
Program capable of improving contrast of shading portion, and improvement method of contrast of shading portion
JP2005348081A
Image signal processing method and image signal processing device
JP2016046764A
Image processing apparatus and method
KR101821650B1
Cited By
Contrast enhancement method and device for shadow region, model training method and device and medium
CN120374479A
Shadow area contrast enhancement method, model training method, device and medium
CN120374479B