Image color band processing method and device, electronic equipment and storage medium
By identifying critical pixels in the color banding region of an image and using preset graphics for judgment, the decolorization process of pixels on the test image card is avoided, thus solving the problem of image blurring in existing technologies and improving image quality and user experience.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- SHENZHEN SKYWORTH RGB ELECTRONICS CO LTD
- Filing Date
- 2022-12-29
- Publication Date
- 2026-07-21
AI Technical Summary
Existing debanding techniques may mistakenly identify pixels on the test image as bands and remove them, resulting in blurred images and affecting the user's viewing experience.
By acquiring the brightness value of the image to be processed, identifying the color banding region, and extracting the critical pixel group from it, the system determines whether the pixel is a test image card pixel based on a preset graphic, and only performs color banding removal processing on non-test image card regions.
This effectively avoids the banding process on the test image pixels, improves the image quality after banding removal, and enhances the user viewing experience.
Smart Images

Figure CN116012247B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of image processing technology, and in particular to an image color band processing method, apparatus, electronic device and storage medium. Background Technology
[0002] Banding occurs in smooth, gradient areas where the color changes are small, resulting in insufficient encoded values to quantize these colors. This causes the gradient to appear as color levels on the display. Banding typically appears in darker scenes, color transitions, gradient scenes, dynamic fog, and areas with artificial light. Images with low contrast, blurriness, or darkness generally require image enhancement processing, such as adjusting color levels and increasing contrast. After processing, banding is more likely to appear in gently grading areas (such as the sky), affecting the subjective quality of the image.
[0003] Currently, debanding technology mainly targets the loss of original color depth and the loss of color depth caused by video compression by statistically processing the signal to perform color depth compensation, so as to achieve the color depth requirements of wide color gamut and high contrast display or the signal before compression.
[0004] However, the current process of removing color bands may mistakenly identify some test chart pixels in the image as color bands and remove them, resulting in image blurring, affecting the subjective quality of the image, and thus affecting the user's viewing experience. Summary of the Invention
[0005] In view of this, embodiments of the present invention provide an image banding processing method, apparatus, electronic device, and storage medium, which effectively avoids banding removal processing on the pixels of the test image card, improves the image quality after banding removal, and thus greatly enhances the user's viewing experience.
[0006] In a first aspect, embodiments of the present invention provide an image color banding processing method, wherein the method includes:
[0007] Obtain the brightness value of each pixel in the image to be processed;
[0008] The color band region of the image to be processed is determined based on the brightness value of each pixel;
[0009] Obtain the critical pixel group from the color band region. The critical pixel group includes multiple critical pixels located at the boundary between two adjacent brightness regions with different brightness values; wherein, the brightness region is located within the color band region.
[0010] If a preset number of critical pixels in a critical pixel group are not in a preset graphic, the brightness area is debanded; where the preset graphic is the graphic of the test chart.
[0011] In one possible implementation, determining the color banding region of the image to be processed based on the brightness value of each pixel includes:
[0012] Multiple target pixels are determined from multiple pixels based on their brightness values; wherein the brightness difference between any two adjacent target pixels is within a preset brightness range.
[0013] Obtain the first pixel position of each target pixel in the image to be processed;
[0014] The pixel region consisting of the first pixel position of multiple target pixels is defined as the color band region.
[0015] In one possible implementation, obtaining the critical pixel group from the color band region includes:
[0016] Multiple brightness regions are determined from the color band region based on the brightness value of each target pixel; wherein, each brightness region includes target pixels with the same brightness value;
[0017] Multiple target pixels at the boundary between any two adjacent brightness regions are defined as the critical pixel group.
[0018] In one possible implementation, multiple brightness regions are determined from the color banding region based on the brightness value of each target pixel, including:
[0019] Multiple first pixels are determined from multiple target pixels based on the brightness value of each target pixel; wherein any two adjacent first pixels have the same brightness value;
[0020] Obtain the position of the second pixel of each first pixel in the image to be processed;
[0021] The pixel region consisting of the second pixel positions of multiple first pixel points is defined as the luminance region.
[0022] Secondly, embodiments of the present invention provide an image color banding processing apparatus, wherein the apparatus includes:
[0023] The first acquisition module is used to acquire the brightness value of each pixel in the image to be processed;
[0024] The determination module is used to determine the color band region of the image to be processed based on the brightness value of each pixel.
[0025] The second acquisition module is used to acquire a critical pixel group from the color band region. The critical pixel group includes multiple critical pixels located at the boundary between two adjacent brightness regions with different brightness values; wherein, the brightness region is located in the color band region.
[0026] The color banding module is used to remove color banding from the luminance area when a preset number of critical pixels in the critical pixel group are not in the preset graphic; wherein, the preset graphic is the graphic of the test graphic card.
[0027] In one possible implementation, the determining module is further configured to:
[0028] Multiple target pixels are determined from multiple pixels based on their brightness values; wherein the brightness difference between any two adjacent target pixels is within a preset brightness range.
[0029] Obtain the first pixel position of each target pixel in the image to be processed;
[0030] The pixel region consisting of the first pixel position of multiple target pixels is defined as the color band region.
[0031] In one possible implementation, the second acquisition module is further configured to:
[0032] Multiple brightness regions are determined from the color band region based on the brightness value of each target pixel; wherein, each brightness region includes target pixels with the same brightness value;
[0033] Multiple target pixels at the boundary between any two adjacent brightness regions are defined as a critical pixel group.
[0034] In one possible implementation, the second acquisition module is further configured to:
[0035] Multiple first pixels are determined from multiple target pixels based on the brightness value of each target pixel; wherein any two adjacent first pixels have the same brightness value;
[0036] Obtain the position of the second pixel of each first pixel in the image to be processed;
[0037] The pixel region consisting of the second pixel positions of multiple first pixel points is defined as the luminance region.
[0038] Thirdly, embodiments of the present invention provide an electronic device, comprising: a processor and a memory, wherein the processor is configured to execute an image ribbon processing program stored in the memory to implement the above-described image ribbon processing method.
[0039] Fourthly, embodiments of the present invention provide a storage medium, wherein the storage medium stores one or more programs, which can be executed by one or more processors to implement the above-described image color band processing method.
[0040] This invention provides an image color banding processing method, apparatus, electronic device, and storage medium, comprising: acquiring the brightness value of each pixel in an image to be processed; determining a color banding region of the image to be processed based on the brightness value of each pixel; acquiring a critical pixel group from the color banding region, the critical pixel group including multiple critical pixels located at the boundary between two adjacent brightness regions with different brightness values; wherein the brightness region is located within the color banding region; and performing color banding removal processing on the brightness region when a predetermined number of critical pixels in the critical pixel group are not in a predetermined graphic; wherein the predetermined graphic is a graphic of a test chart. This invention can effectively identify whether a brightness region is a pixel region on a test chart based on whether a preset number of critical pixels in a critical pixel group are on a preset graphic. Specifically, when the preset number of critical pixels are not on the preset graphic, i.e., the brightness region is not a pixel region on the test chart, the brightness region is debanded. Conversely, when the preset number of critical pixels are on the preset graphic, i.e., the brightness region is a pixel region on the test chart, the brightness region is not debanded. This effectively identifies the pixel region on the test chart, avoids debanding the pixels on the test chart, improves the image quality of the debanded image, and thus greatly enhances the user's viewing experience. Attached Figure Description
[0041] Figure 1 A flowchart illustrating an embodiment of an image color banding processing method provided by this invention;
[0042] Figure 2 A schematic diagram of an image color band provided in an embodiment of the present invention;
[0043] Figure 3 A schematic diagram of another image color band provided in an embodiment of the present invention;
[0044] Figure 4 A block diagram illustrating an embodiment of an image color band processing apparatus provided by this invention;
[0045] Figure 5 This is a schematic diagram of the structure of an electronic device provided in an embodiment of the present invention. Detailed Implementation
[0046] To make the objectives, technical solutions, and advantages of the embodiments of the present invention clearer, the technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present invention, 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.
[0047] To facilitate understanding of the embodiments of the present invention, further explanations and descriptions will be provided below with reference to the accompanying drawings and specific embodiments. These embodiments do not constitute a limitation on the embodiments of the present invention.
[0048] This invention provides an image color banding processing method, see [link to relevant documentation]. Figure 1 This is a flowchart illustrating an embodiment of an image color banding processing method provided by the present invention. Figure 1 As shown, the process may include the following steps:
[0049] Step 101: Obtain the brightness value of each pixel in the image to be processed;
[0050] The image to be processed is either a grayscale image or a color image with brightness, and there is no limitation on this.
[0051] Step 102: Determine the color band region of the image to be processed based on the brightness value of each pixel;
[0052] In this embodiment, the color band area is an area with obvious color gradations. For ease of understanding, Figure 2 A schematic diagram of an image color band is shown. Figure 2 The image in the middle left is a color banding image without color banding processing. The area enclosed by the white box is the color banding region. Figure 2 It is clear from the image that there are color gradations in this color band area.
[0053] Step 103: Obtain the critical pixel group from the color band region. The critical pixel group includes multiple critical pixels located at the boundary between two adjacent brightness regions with different brightness values; wherein, the brightness region is located in the color band region.
[0054] For ease of understanding, Figure 3 A schematic diagram of another type of image color banding is shown, such as... Figure 3 As shown, the entire image is a color band area, through Figure 3 The differences in brightness between color levels are clearly visible. Each color level represents a brightness region. Taking the leftmost brightness region 1 and its adjacent brightness region 2 as an example, the pixels at the boundary between brightness region 1 and brightness region 2 are called critical pixels. For easier understanding, as shown below... Figure 2 As shown, the location of the dashed line is the critical position between brightness region 1 and brightness region 2. The pixels on the dashed line are critical pixels. All critical pixels form the critical pixel group of brightness region 1 and brightness region 2. Figure 2 The locations of the critical pixel groups at the boundary between any two adjacent brightness regions are the same as those described above, and will not be repeated here.
[0055] Step 104: When a preset number of critical pixels in the critical pixel group are not in the preset graphic, perform desaturation processing on the brightness area; wherein, the preset graphic is the graphic of the test graphic card.
[0056] In practical applications, if a preset number of critical pixels in the critical pixel group are on the preset graphic, it means that the two adjacent brightness areas are pixel areas on the test graphic card. Therefore, the two adjacent brightness areas are not debanded to effectively avoid debanding the pixels on the test graphic card, which would cause the image to become blurry and affect the subjective quality of the image.
[0057] If a predetermined number of critical pixels in the critical pixel group are not on the predetermined pattern, it means that two adjacent brightness regions are not pixel regions on the test chart. Therefore, debanding can be performed on these two adjacent brightness regions. For ease of understanding, Figure 2 The image on the right is the image after color banding processing of the left image. It can be seen that the right image effectively reduces color levels, improves image quality, and thus greatly enhances the user's viewing experience. In this embodiment, the aforementioned color banding removal is existing technology and will not be elaborated upon or limited here.
[0058] The specific values of the aforementioned preset quantities can be set according to actual needs and are not limited here; the preset graphics can be composed of straight lines, curves, etc., and the specific preset graphics are related to the test chart and are not limited here.
[0059] This invention provides an image color banding processing method, comprising: acquiring the brightness value of each pixel in an image to be processed; determining a color banding region of the image to be processed based on the brightness value of each pixel; acquiring a critical pixel group from the color banding region, the critical pixel group including multiple critical pixels located at the boundary between two adjacent brightness regions with different brightness values; wherein the brightness region is located within the color banding region; and performing color banding removal processing on the brightness region when a predetermined number of critical pixels in the critical pixel group are not located on a predetermined graphic; wherein the predetermined graphic is a graphic of a test graphic. This invention can effectively identify whether a brightness region is a pixel region on a test graphic based on whether a predetermined number of critical pixels in the critical pixel group are located on the predetermined graphic. Specifically, when a predetermined number of critical pixels in the critical pixel group are located on the predetermined graphic, the method can determine whether the brightness region is a pixel region on a test graphic.
[0060] When the critical number of pixels is not on the preset graphic (i.e., the brightness area is not the same as the pixel area on the test chart), perform debanding on the brightness area. Conversely, when the critical number of pixels is on the preset graphic...
[0061] When the brightness area corresponds to the pixel area on the test chart, no debanding is performed on the brightness area. This effectively identifies the pixel area of the test chart and avoids debanding the pixels on the test chart.
[0062] Improving the image quality after desaturation significantly enhances the user's viewing experience.
[0063] In some embodiments, step 102 above can be implemented by the following steps: Step A1, determining multiple target pixels from multiple pixels based on brightness values;
[0064] Among them, the brightness difference between any two adjacent target pixels is within the preset brightness range.
[0065] Specifically, it is obtained by calculating the difference in brightness values between every two adjacent pixels in a dataset.
[0066] The brightness difference is used to determine target pixels. If the brightness difference is within a preset brightness range, then these two adjacent pixels are considered target pixels. This process continues until all target pixels are identified from a pool of pixels. The preset brightness range is...
[0067] The degree range can be set according to actual needs and is not limited here.
[0068] Step A2: Obtain the first pixel position of each target pixel in the image to be processed;
[0069] Step A3: The pixel region consisting of the first pixel positions of multiple target pixels is determined as the color band region.
[0070] In step A3, the first pixel positions of each target pixel are connected, and the connected pixel area is defined as the color banding region. This embodiment of the application can determine the position of the color banding region in the image to be processed through the brightness values of the pixels, thus facilitating the removal of color banding from the color banding region.
[0071] In some embodiments, obtaining the critical pixel group from the color band region in step 103 above
[0072] The body can be achieved through the following steps: Step 5B1, determine multiple brightness regions from the color band region based on the brightness value of each target pixel;
[0073] Since the brightness of each brightness region is the same, the brightness values of the target pixels within each brightness region are identical. That is, from multiple target pixels, all adjacent pixels with the same brightness value are found; the region formed by the locations of these found pixels is the brightness region. Based on the above...
[0074] The specific process for determining each brightness region is as follows: Based on the brightness value 5 of each target pixel, multiple first pixels are determined from multiple target pixels; among them, any two adjacent first pixels...
[0075] The brightness values of the pixels are the same; obtain the second pixel position of each first pixel in the image to be processed;
[0076] The pixel region consisting of the second pixel positions of multiple first pixel points is defined as the luminance region.
[0077] If we consider multiple adjacent first pixels with the same brightness value as a group of pixels, then
[0078] Multiple groups of pixels with different brightness values can be identified from the target pixel. Each pixel group 0 includes multiple first pixels with the same brightness value, and these first pixels are adjacent to each other.
[0079] Connect the second pixel positions of each first pixel in each pixel group, and determine the connected pixel area as the brightness area corresponding to that pixel group.
[0080] Step B2: Determine multiple target pixels at the critical point of any two adjacent brightness regions as a critical pixel group.
[0081] 5. The multiple target pixels at the boundary between two adjacent brightness regions are the aforementioned critical pixels.
[0082] For a description of step B2, please refer to [link / reference]. Figure 1 The description of step 103 will not be repeated here.
[0083] See Figure 4 This is an embodiment of an image color band processing device provided by the present invention.
[0084] Figure. Figure 4 As shown, the device includes:
[0085] 0. The first acquisition module 401 is used to acquire the brightness value of each pixel in the image to be processed;
[0086] The determining module 402 is used to determine the color band region of the image to be processed based on the brightness value of each pixel.
[0087] The second acquisition module 403 is used to acquire critical pixel groups from the color band region, and the critical pixels
[0088] A point group includes multiple critical pixels located at the boundary between two adjacent brightness regions with different brightness values; where the brightness region is located in the color band region.
[0089] The color banding processing module 404 is used to perform color banding removal processing on the brightness area when a preset number of critical pixels in the critical pixel group are not in the preset graphic; wherein, the preset graphic is the graphic of the test graphic card.
[0090] An image color banding processing apparatus provided in this embodiment of the invention includes: acquiring the brightness value of each pixel in an image to be processed; determining a color banding region of the image to be processed based on the brightness value of each pixel; acquiring a critical pixel group from the color banding region, the critical pixel group including multiple critical pixels located at the boundary between two adjacent brightness regions with different brightness values; wherein the brightness region is located within the color banding region; and performing color banding removal processing on the brightness region when a predetermined number of critical pixels in the critical pixel group are not in a predetermined graphic; wherein the predetermined graphic is a graphic of a test chart. This invention can effectively identify whether a brightness region is a pixel region on a test chart based on whether a preset number of critical pixels in a critical pixel group are on a preset graphic. Specifically, when the preset number of critical pixels are not on the preset graphic, i.e., the brightness region is not a pixel region on the test chart, the brightness region is debanded. Conversely, when the preset number of critical pixels are on the preset graphic, i.e., the brightness region is a pixel region on the test chart, the brightness region is not debanded. This effectively identifies the pixel region on the test chart, avoids debanding the pixels on the test chart, improves the image quality of the debanded image, and thus greatly enhances the user's viewing experience.
[0091] In one possible implementation, the determining module 402 is further configured to:
[0092] Multiple target pixels are determined from multiple pixels based on their brightness values; wherein the brightness difference between any two adjacent target pixels is within a preset brightness range.
[0093] Obtain the first pixel position of each target pixel in the image to be processed;
[0094] The pixel region consisting of the first pixel position of multiple target pixels is defined as the color band region.
[0095] In one possible implementation, the second acquisition module 403 is further configured to:
[0096] Multiple brightness regions are determined from the color band region based on the brightness value of each target pixel; wherein, each brightness region includes target pixels with the same brightness value;
[0097] Multiple target pixels at the boundary between any two adjacent brightness regions are defined as a critical pixel group.
[0098] In one possible implementation, the second acquisition module 403 is further configured to:
[0099] Multiple first pixels are determined from multiple target pixels based on the brightness value of each target pixel; wherein any two adjacent first pixels have the same brightness value;
[0100] Obtain the position of the second pixel of each first pixel in the image to be processed;
[0101] The pixel region consisting of the second pixel positions of multiple first pixel points is defined as the luminance region.
[0102] Figure 5 This is a schematic diagram of the structure of an electronic device provided in an embodiment of the present invention. Figure 5 The illustrated electronic device 500 includes at least one processor 501, a memory 502, at least one network interface 504, and other user interfaces 503. The various components in the electronic device 500 are coupled together via a bus system 505. It is understood that the bus system 505 is used to implement communication between these components. In addition to a data bus, the bus system 505 also includes a power bus, a control bus, and a status signal bus. However, for clarity, ... Figure 5 The general designated all buses as Bus System 505.
[0103] The user interface 503 may include a display, keyboard, or clicking device (e.g., mouse, trackball, touchpad, or touchscreen).
[0104] It is understood that the memory 502 in the embodiments of the present invention can be volatile memory or non-volatile memory, or may include both volatile and non-volatile memory. The non-volatile memory can be read-only memory (ROM), programmable read-only memory (PROM), erasable programmable read-only memory (EPROM), electrically erasable programmable read-only memory (EEPROM), or flash memory. The volatile memory can be random access memory (RAM), which is used as an external cache. By way of example, but not limitation, many forms of RAM are available, such as Static Random Access Memory (SRAM), Dynamic Random Access Memory (DRAM), Synchronous Dynamic Random Access Memory (SDRAM), Double Data Rate Synchronous Dynamic Random Access Memory (DDRSDRAM), Enhanced Synchronous Dynamic Random Access Memory (ESDRAM), Synchlink Dynamic Random Access Memory (SLDRAM), and Direct Rambus RAM (DRRAM). The memory 502 described herein is intended to include, but is not limited to, these and any other suitable types of memory.
[0105] In some implementations, memory 502 stores elements, executable units or data structures, or subsets thereof, or extended sets thereof: operating system 5021 and application program 5022.
[0106] The operating system 5021 includes various system programs, such as the framework layer, core library layer, and driver layer, used to implement various basic business functions and handle hardware-based tasks. The application program 5022 includes various applications, such as a media player and a browser, used to implement various application functions. The program implementing the method of this embodiment can be included in the application program 5022.
[0107] In this embodiment of the invention, the processor 501 executes the method steps provided in each method embodiment by calling the program or instructions stored in the memory 502, specifically the program or instructions stored in the application program 5022.
[0108] The methods disclosed in the above embodiments of the present invention can be applied to or implemented by processor 501. Processor 501 may be an integrated circuit chip with signal processing capabilities. In the implementation process, each step of the above method can be completed by the integrated logic circuit of the hardware in processor 501 or by instructions in the form of software. The processor 501 may be a general-purpose processor, a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a field-programmable gate array (FPGA), or other programmable logic devices, discrete gate or transistor logic devices, or discrete hardware components. It can implement or execute the methods, steps, and logic block diagrams disclosed in the embodiments of the present invention. The general-purpose processor may be a microprocessor or any conventional processor. The steps of the methods disclosed in the embodiments of the present invention can be directly embodied in the execution of a hardware decoding processor, or executed by a combination of hardware and software units in the decoding processor. The software units may be located in random access memory, flash memory, read-only memory, programmable read-only memory, electrically erasable programmable memory, registers, or other mature storage media in the art. The storage medium is located in memory 502. Processor 501 reads the information in memory 502 and, in conjunction with its hardware, completes the steps of the above method.
[0109] It is understood that the embodiments described herein can be implemented in hardware, software, firmware, middleware, microcode, or a combination thereof. For hardware implementation, the processing unit can be implemented in one or more application-specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DSPDs), programmable logic devices (PLDs), field-programmable gate arrays (FPGAs), general-purpose processors, controllers, microcontrollers, microprocessors, other electronic units for performing the functions described herein, or combinations thereof.
[0110] For software implementation, the techniques described herein can be implemented by units that perform the functions described herein. The software code can be stored in memory and executed by a processor. The memory can be implemented in the processor or external to the processor.
[0111] The electronic device provided in this embodiment may be as follows: Figure 5The electronic device shown can perform the following: Figure 1 All steps of the image color banding processing method are then implemented. Figure 1 For details on the technical effects of the image banding processing method shown, please refer to [link / reference]. Figure 1 The relevant descriptions are presented concisely and will not be elaborated upon here.
[0112] This invention also provides a storage medium (computer-readable storage medium). This storage medium stores one or more programs. The storage medium may include volatile memory, such as random access memory; the memory may also include non-volatile memory, such as read-only memory, flash memory, hard disk, or solid-state drive; the memory may also include combinations of the above types of memory.
[0113] One or more programs in a storage medium can be executed by one or more processors to implement an image ribbon processing method.
[0114] The processor is used to execute the image ribbon processing program stored in the memory to implement the steps of the image ribbon processing method.
[0115] Those skilled in the art will further recognize that the units and algorithm steps of the various examples described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, computer software, or a combination of both. To clearly illustrate the interchangeability of hardware and software, the components and steps of the various examples have been generally described in terms of functionality in the foregoing description. Whether these functions are implemented in hardware or software depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for each specific application, but such implementations should not be considered beyond the scope of this invention.
[0116] The steps of the methods or algorithms described in conjunction with the embodiments disclosed herein can be implemented in hardware, a software module executed by a processor, or a combination of both. The software module can be located in random access memory (RAM), main memory, read-only memory (ROM), electrically programmable ROM, electrically erasable programmable ROM, registers, hard disk, removable disk, CD-ROM, or any other form of storage medium known in the art.
[0117] The specific embodiments described above further illustrate the purpose, technical solution, and beneficial effects of the present invention. It should be understood that the above description is only a specific embodiment of the present invention and is not intended to limit the scope of protection of the present invention. Any modifications, equivalent substitutions, improvements, etc., made within the spirit and principles of the present invention should be included within the scope of protection of the present invention.
Claims
1. A method for processing image color banding, characterized in that, The method includes: Obtain the brightness value of each pixel in the image to be processed; Determining the color band region of the image to be processed based on the brightness value of each pixel includes: Multiple target pixels are determined from the plurality of pixels based on the brightness value; wherein the brightness difference between any two adjacent target pixels is within a preset brightness range. Obtain the first pixel position of each of the target pixels in the image to be processed; The pixel region formed by the first pixel positions of multiple target pixels is defined as the color band region; A critical pixel group is obtained from the color band region, the critical pixel group including multiple critical pixels located at the boundary between two adjacent brightness regions with different brightness values; wherein, the brightness region is located in the color band region; If a predetermined number of critical pixels in the critical pixel group are not in the predetermined pattern, the brightness area is subjected to debanding processing; wherein, the predetermined pattern is the pattern of the test chart.
2. The method according to claim 1, characterized in that, The step of obtaining the critical pixel group from the color band region includes: Multiple brightness regions are determined from the color band region based on the brightness values of each target pixel; wherein each brightness region includes target pixels with the same brightness values; Multiple target pixels at the boundary between any two adjacent brightness regions are defined as a critical pixel group.
3. The method according to claim 2, characterized in that, The step of determining multiple brightness regions from the color band region based on the brightness values of each of the target pixels includes: Multiple first pixels are determined from the multiple target pixels based on the brightness value of each target pixel; wherein any two adjacent first pixels have the same brightness value. Obtain the second pixel position of each of the first pixels in the image to be processed; The pixel region formed by the second pixel positions of multiple first pixel points is defined as the luminance region.
4. An image ribbon processing device, characterized in that, The device includes: The first acquisition module is used to acquire the brightness value of each pixel in the image to be processed; The determining module is used to determine the color band region of the image to be processed based on the brightness value of each pixel. The determining module is further configured to: determine multiple target pixels from multiple pixels based on brightness values; wherein the brightness difference between any two adjacent target pixels is within a preset brightness range; obtain the first pixel position of each target pixel in the image to be processed; and determine the pixel region formed by the first pixel positions of multiple target pixels as a color band region; The second acquisition module is used to acquire a critical pixel group from the color band region, the critical pixel group including multiple critical pixels located at the boundary between two adjacent brightness regions with different brightness values; wherein, the brightness region is located in the color band region; A banding processing module is used to perform banding removal processing on the brightness area when a preset number of critical pixels in the critical pixel group are not in the preset graphic; wherein, the preset graphic is the graphic of the test chart.
5. The apparatus according to claim 4, characterized in that, The second acquisition module is further configured to: Multiple brightness regions are determined from the color band region based on the brightness values of each target pixel; wherein each brightness region includes target pixels with the same brightness values; Multiple target pixels at the boundary between any two adjacent brightness regions are defined as the critical pixel group.
6. The apparatus according to claim 5, characterized in that, The second acquisition module is further configured to: Multiple first pixels are determined from the multiple target pixels based on the brightness value of each target pixel; wherein any two adjacent first pixels have the same brightness value. Obtain the second pixel position of each of the first pixels in the image to be processed; The pixel region formed by the second pixel positions of multiple first pixel points is defined as the luminance region.
7. An electronic device, characterized in that, include: A processor and a memory, the processor being configured to execute an image ribbon processing program stored in the memory to implement the image ribbon processing method according to any one of claims 1 to 3.
8. A storage medium, characterized in that, The storage medium stores one or more programs, which can be executed by one or more processors to implement the image color banding method according to any one of claims 1 to 3.