Method, device, electronic device and storage medium for suppressing image pot lid effect

By layering the image of infrared thermal imaging equipment and image calculation, efficiently suppressing the pot lid effect while protecting image details, solving the problem of efficiency and detail loss in the prior art.

CN113962870BActive Publication Date: 2025-07-29ZHEJIANG UNIVIEW TECH CO LTD
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202010697797.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-07-20
Publication Date
2025-07-29
Estimated Expiration
2040-07-20

AI Technical Summary

Technical Problem

The existing pot lid effect suppression algorithm is difficult to ensure the pot lid suppression effect and efficiency at the same time, and image details are easily lost during the suppression process.

Method used

By layering the original image, a smooth image and a detailed image are obtained, and the smooth image is subjected to a pot lid suppression process using the image calculation method. Finally, the detail image and the target image are fused to obtain the final image that removes the pot lid effect.

Benefits of technology

The complexity of the pot lid suppression algorithm is reduced, the suppression efficiency is improved, the detailed information of the image is maintained, and different scenarios are adapted to different scenarios, which solves the problem of image detail loss during the pot lid effect suppression process.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113962870B_ABST
    Figure CN113962870B_ABST
Patent Text Reader

Abstract

An embodiment of the present invention discloses an image pot lid effect suppression method, device, electronic device, and storage medium. The method includes: obtaining an original image to be processed, and performing hierarchical processing on the original image to obtain a smoothed image and a detail image; performing pot lid suppression processing on the smoothed image through image operation to obtain a target image; and fusing the detail image and the target image to obtain a final image after removing the pot lid effect. In the embodiment of the present invention, only by performing arithmetic processing on the smoothed image after layering through image operation can the effect of suppressing the pot lid be achieved, reducing the complexity of the pot lid suppression algorithm, improving the efficiency of suppressing the pot lid effect, having good scene adaptability, and at the same time, only performing pot lid suppression processing on the smoothed image to protect the image details, solving the problem of image detail loss while suppressing the pot lid effect.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The embodiments of the present invention relate to the technical field of video surveillance, and in particular, to an image pot cover effect suppression method, device, electronic device, and storage medium. Background Art

[0002] With the development of infrared focal plane technology, infrared thermal imaging devices are increasingly applied to military, medical, security surveillance, agriculture and other fields. The non-uniformity problem in infrared thermal imaging systems seriously affects the quality of thermal imaging images, such as the appearance of the pot cover effect in images. Among them, non-uniformity refers to the inconsistent output of each unit when the focal plane array is irradiated by uniform external light intensity, which is manifested as spatial noise or fixed pattern noise in the image; the pot cover effect refers to the phenomenon that when the infrared thermal imaging device is in use, the temperature of the optical system lens barrel rises, resulting in a higher temperature at the edge of the lens than at the center, or the thermal radiation of the lens barrel reaches the detector through the optical lens, causing the gray level to gradually increase from the center to the edge of the image.

[0003] Currently, corresponding algorithms for removing the pot cover effect have emerged for the pot cover effect problem. The common pot cover removal algorithm is to obtain the pot cover image through a established mathematical model, and then subtract the pot cover image from the original image to obtain the image after removing the pot cover. However, this method still has certain deficiencies: it cannot balance the algorithm complexity and the pot cover suppression effect, that is, it is difficult for this method to ensure both the pot cover suppression effect and efficiency at the same time. Summary of the Invention

[0004] The embodiments of the present invention provide an image pot cover effect suppression method, device, electronic device, and storage medium to achieve the purpose of simultaneously ensuring the suppression effect and efficiency of the pot cover effect of the image.

[0005] In a first aspect, the embodiments of the present invention provide an image pot cover effect suppression method, including:

[0006] Obtain the original image to be processed, and perform hierarchical processing on the original image to obtain a smoothed image and a detail image;

[0007] Perform pot cover suppression processing on the smoothed image through image operations to obtain a target image;

[0008] Fuse the detail image and the target image to obtain the final image after removing the pot cover effect.

[0009] In a second aspect, the embodiments of the present invention provide an image pot cover effect suppression device, including:

[0010] A hierarchical processing module, configured to obtain the original image to be processed, and perform hierarchical processing on the original image to obtain a smoothed image and a detail image;

[0011] A lid removal processing module, configured to perform lid suppression processing on a smoothed image through image operations to obtain a target image;

[0012] A fusion module, configured to fuse the detail image and the target image to obtain a final image after lid removal.

[0013] Thirdly, an embodiment of the present invention further provides an electronic device, including:

[0014] One or more processors;

[0015] A storage device, configured to store one or more programs,

[0016] When the one or more programs are executed by the one or more processors, the one or more processors implement the image lid effect suppression method according to any embodiment of the present invention.

[0017] Fourthly, an embodiment of the present invention further provides a computer-readable storage medium, on which a computer program is stored, and when the program is executed by a processor, the image lid effect suppression method according to any embodiment of the present invention is implemented.

[0018] In the embodiment of the present invention, after the image with a lid is layered, a low-frequency smoothed image and a high-frequency detail image are obtained. Then, through image operations, the smoothed image is processed, so that the lid suppression effect can be achieved, the complexity of the lid suppression algorithm is reduced, the efficiency of suppressing the lid effect is improved, and the scene adaptability is good. At the same time, only the smoothed image is processed for lid suppression, protecting the image details and solving the problem of image detail loss while suppressing the lid effect. BRIEF DESCRIPTION OF THE DRAWINGS

[0019] Figure 1 It is a flowchart of the image lid effect suppression method in the first embodiment of the present invention;

[0020] Figure 2 It is a flowchart of the image lid effect suppression method in the second embodiment of the present invention;

[0021] Figure 3 It is a schematic structural diagram of the image lid effect suppression device in the third embodiment of the present invention;

[0022] Figure 4 It is a schematic structural diagram of the electronic device in the fourth embodiment of the present invention. DETAILED DESCRIPTION OF THE EMBODIMENTS

[0023] The present invention will be further described in detail below in conjunction with the accompanying drawings and embodiments. It is to be understood that the specific embodiments described herein are only used to explain the present invention, rather than to limit the present invention. It should also be noted that, for ease of description, only parts related to the present invention, rather than all structures, are shown in the accompanying drawings.

[0024] Example 1

[0025] Figure 1 This is a flowchart of a method for suppressing the pot lid effect in an image provided in Example 1 of the present invention. This embodiment can be applied to suppressing the pot lid effect in images captured in real time by an infrared thermal imaging device. The method can be performed by an image pot lid effect suppression device, which can be implemented in software and / or hardware and can be integrated into an electronic device, such as an infrared thermal imaging device.

[0026] like Figure 1 As shown in FIG, the method for suppressing the pot lid effect of an image specifically includes the following steps:

[0027] S101: Acquire an original image to be processed, and perform layered processing on the original image to obtain a smoothed image and a detail image.

[0028] The original image to be processed refers to an image of a pot lid captured by an infrared thermal imaging device, and the pot lid refers to the brighter area surrounding the image. An image can be decomposed into two layers: a base layer and a detail layer. The base layer contains low-frequency information, reflecting large-scale intensity variations; the detail layer contains high-frequency information, reflecting small-scale details. Therefore, the original image is processed in layers, resulting in a smoothed image composed of the low-frequency information in the base layer and a detailed image composed of the high-frequency information in the detail layer.

[0029] In an optional embodiment, the original image is subjected to layered processing to obtain a smoothed image and a detail image, including S1011-S1012:

[0030] S1011. Perform low-pass filtering on the original image to obtain a smoothed image.

[0031] Among them, the low-pass filter can be selected as mean filter, median filter, Gaussian filter, etc. It should be noted that the filter kernel size and parameters are not specifically limited here. For example, the filter kernel size is 3*3, 5*5, or 7*7... and so on. Exemplarily, the embodiment of the present invention uses Gaussian filtering. The Gaussian template of the Gaussian filtering algorithm can be obtained by establishing a (2k+1)×(2k+1) matrix M, and the element value of the (i, j) position can be determined as follows:

[0032]

[0033] Where k is the radius of the Gaussian template. In the embodiment of the present invention, a template of size 3*3 is adopted, so k is 1, and σ is a custom parameter. The larger σ is, the greater the filtering intensity; the smaller σ is, the smaller the filtering intensity. In the embodiment of the present invention, σ is 0.8. Then, each pixel in the original image is scanned with the Gaussian template to obtain the filtered smoothed image. Specifically, during implementation, according to the Gaussian template, the original image is first extended at the boundary. Optionally, the extended boundary width is equal to the template radius k, and the extended boundary is filled with zeros. When scanning the first pixel of the original image, the first pixel is corresponded to the center position of the Gaussian template, and the average value of the weighted sum of the pixels around the first pixel is calculated as the pixel value of the first pixel point. And so on, scan the other pixel points in the original image in turn to obtain the final filtered image (i.e., the smoothed image).

[0034] S1012. Subtract the smoothed image from the original image to obtain the detail image.

[0035] Since the original image is composed of the smoothed image and the detail image, after the underlying smoothed image is extracted, the detail image can be directly obtained by subtracting the smoothed image from the original image.

[0036] In another alternative embodiment, when extracting the detail image composed of high-frequency detail information, the edge extraction filter (including Laplacian filtering, Sobel filtering, LOG filtering, etc.) can be directly used to extract the high-frequency details to obtain the detail image.

[0037] S102. Through the way of image operation, perform the lid suppression process on the smoothed image to obtain the target image.

[0038] In the prior art, when calculating the lid model by the method of iteratively solving polynomial parameters, since the algorithm efficiency is negatively correlated with the number of iterations, it is difficult to ensure both better effect and efficiency when suppressing the lid effect by using the mathematical model. In the embodiment of the present invention, in order to reduce the complexity of the algorithm for suppressing the lid effect and improve the efficiency of suppressing the lid effect, the inventor creatively proposes to adopt the way of image operation to replace the existing method of suppressing the lid effect by using the mathematical model.

[0039] Among them, the image operation includes: inversion operation, exclusion operation, multiplication operation. Optionally, through the way of image operation, performing the lid suppression process on the smoothed image to obtain the target image includes S1021-S1023:

[0040] S1021. According to the preset inversion operation formula, perform the inversion operation on the smoothed image to obtain the first image.

[0041] Since the pot lid effect refers to the increase in the temperature of the lens barrel of an optical system, resulting in a higher temperature at the edge of the lens than at the center, or the thermal radiation of the lens barrel reaching the detector through the optical lens, making the brightness at the edge of the image higher than that in the central region. Therefore, performing pot lid suppression processing on the image is essentially to darken the brighter regions at the edge of the image. And performing an inversion operation on the smoothed image, changing the overly bright pixels in the smoothed image to overly dark pixels, that is, darkening the pot lid region, so that the pot lid can be prominently displayed, enabling the pot lid region to be significantly suppressed after subsequent exclusion operations. At the same time, changing the overly dark pixels in the smoothed image to overly bright pixels. In an alternative embodiment, the inversion operation formula is as follows:

[0042] I m 2(i, j) = (2 bite - 1) - I m 1(i, j);

[0043] Where, I m 1(i, j) is the pixel value of the smoothed image at the position (i, j), and I m 2(i, j) is the pixel value of the first image at the position (i, j), bite is the image bit width of the smoothed image. It should be noted that the brightness or chromaticity value of the image is stored in a variable with the bit width bit. For example, when bite = 8, the range of the brightness or chromaticity value is 0 - 255. According to the above formula, performing an inversion operation on the smoothed image means recalculating the pixel values of the pixel points at each position of the smoothed image according to the above formula to obtain the first image.

[0044] S1022. Perform an exclusion operation on the smoothed image and the first image according to a preset exclusion operation formula to obtain a second image.

[0045] In an alternative embodiment, the exclusion operation formula is as follows:

[0046] I m 3(i, j) = I m 2(i, j) + I m 1(i, j) - I m 2(i, j) × I m 1(i, j) / 2 bite-1 ;

[0047] Where, I m 3(i, j) is the pixel value of the second image at the position (i, j), I m 1(i, j) is the pixel value of the smoothed image at the position (i, j), I m2(i, j) is the pixel value of the first image at the position (i, j), and bite is the image bit width. Through the above formula, the operation between the white pixels in the first image and the pixels of the smoothed image results in the complementary color of the pixels of the smoothed image, the operation between the black pixels in the first image and the pixels of the smoothed image results in the pixels of the smoothed image, and the mixing of the gray pixels in the first image and the pixels of the smoothed image results in a gray color between the pixels of the first image and the pixels of the smoothed image. That is, the gray pixel value in the obtained second image is between the pixel of the first image and the pixel of the smoothed image. Thus, relative to the smoothed image, the contrast of the pot lid area in the second image is reduced, that is, the pot lid effect is suppressed.

[0048] S1023. According to the preset multiplication operation formula, perform a multiplication operation on the second image and the smoothed image to obtain the target image.

[0049] In the second image obtained through S1022, although the pot lid effect is suppressed, the brightness of the image in the second image is still relatively large. Therefore, the multiplication operation will make the smoothed image become darker in a non-linear manner, that is, the smoothed image is darkened according to the pixel value to further enhance the effect of suppressing the pot lid effect.

[0050] In an optional implementation manner, the multiplication operation formula is as follows:

[0051] I m 4(i, j) = I m 3(i, j) × I m 1(i, j) / 2 bite-1 ;

[0052] where, I m 4(i, j) is the pixel value of the target image at the position (i, j), I m 3(i, j) is the pixel value of the second image at the position (i, j), I m 1(i, j) is the pixel value of the smoothed image at the position (i, j), and bite is the image bit width.

[0053] S103. Fuse the detail image and the target image to obtain the final image after removing the pot lid effect.

[0054] After obtaining the target image with the pot lid effect removed through step S102, only need to fuse the detail image and the target image, for example, add the pixel values of the corresponding pixel points of the detail image and the target image to obtain the final image after removing the pot lid effect.

[0055] In the embodiment of the present invention, after the image with a pot lid is layered, a low-frequency smooth image and a high-frequency detail image are obtained. Then, through image operations, the smooth image is processed, and the pot lid suppression effect can be achieved. Thus, the complexity of the pot lid suppression algorithm is reduced, the efficiency of suppressing the pot lid effect is improved, and the scene adaptability is good. At the same time, only the smooth image is processed for pot lid suppression, protecting the image details and solving the problem of image detail loss while suppressing the pot lid effect.

[0056] Embodiment 2

[0057] Figure 2 The flowchart of the image pot lid effect suppression method provided by the second embodiment of the present invention is shown in the figure. This embodiment is optimized on the basis of the above embodiment. Refer to Figure 2 , and the method includes:

[0058] S201. Obtain the original image to be processed, and perform layering processing on the original image to obtain a smooth image and a detail image.

[0059] S202. Perform pot lid suppression processing on the smooth image through image operations to obtain a target image.

[0060] Optionally, perform an inversion operation on the smooth image according to a preset inversion operation formula to obtain a first image; perform an exclusion operation on the smooth image and the first image according to a preset exclusion operation formula to obtain a second image; perform a multiplication operation on the second image and the smooth image according to a preset multiplication operation formula to obtain a target image.

[0061] S203. Perform contrast enhancement processing on the target image according to a preset contrast stretching algorithm.

[0062] In the target image obtained through the above steps, although the pot lid effect is effectively suppressed, the overall brightness of the obtained target image is low, especially the original non-pot lid area becomes darker. Therefore, it is necessary to enhance the brightness of the original non-pot lid area. Optionally, a contrast stretching algorithm can be used to perform brightness enhancement processing on the target image. Common contrast stretching algorithms include: linear stretching algorithm, gamma transformation, logarithmic transformation, histogram equalization, etc. Exemplarily, in this embodiment, gamma transformation is used for contrast stretching, and the formula of gamma transformation is as follows:

[0063] I m 5(i, j) = a × I m 4(i, j) γ ;

[0064] where, I m 5(i, j) represents the pixel value of the target image after contrast stretching at the position (i, j), and Im 4(i, j) is the pixel value of the target image at the (i, j) position, a is the magnification factor, and γ is the gamma coefficient. Among them, the gamma coefficient determines the gray-scale mapping method between the input image and the output image. When γ > 1, the contrast of the high-gray-scale area of the image is enhanced, the contrast of the low-gray-scale area is reduced, and the overall brightness of the image is reduced. When 0 < γ < 1, the contrast of the low-gray-scale area of the image is enhanced, the contrast of the high-gray-scale area is reduced, and the overall brightness of the image increases. When γ = 1, the original image remains unchanged. In this embodiment, a is taken as 1 and γ is taken as 0.67, that is, the contrast of the low-gray-scale area (the original non-lid area) is enhanced, and the overall brightness of the image is increased. Thus, the problem of low overall image brightness is solved, and the overall picture effect is improved.

[0065] S204. Perform detail enhancement processing on the detail image, and perform an addition operation on the detail image after the detail enhancement processing and the target image to obtain the final image after removing the lid effect.

[0066] In the embodiment of the present invention, the local contrast of the image can also be improved by improving the detail information in the detail image. Among them, when improving the detail information in the detail image, optionally, the detail enhancement coefficient is used to enhance the detail information. Therefore, when obtaining the final image after removing the lid effect, only the detail image needs to be subjected to detail enhancement processing, and an addition operation is performed on the detail image after the detail enhancement processing and the target image. Specifically, it can be carried out according to the following formula:

[0067] I m Out(i, j) = I m 5(i, j) + k × I m Detail(i, j);

[0068] Among them, I m Out(i, j) is the pixel value of the final lid suppression image at the (i, j) position, I m 5(i, j) is the pixel value of the target image after contrast stretching at the (i, j) position, I m Detail(i, j) is the pixel value of the detail image at the (i, j) position, k is the detail enhancement coefficient, and the larger k is, the larger the detail image fusion ratio is and the richer the image details are.

[0069] In the embodiment of the present invention, in addition to reducing the complexity of removing the lid effect and improving the efficiency of removing the lid effect, the contrast enhancement algorithm is used to solve the problem of poor image contrast after lid suppression, and at the same time, the local contrast of the music image can be improved by improving the detail information in the detail image.

[0070] Embodiment III

[0071] Figure 3It is a schematic structural diagram of the image pot cover effect suppression device in the third embodiment of the present invention. This embodiment is applicable to suppressing the pot cover effect in the images collected in real time by an infrared thermal imaging device. Refer to Figure 3 , the device includes:

[0072] A layering processing module 301, configured to obtain an original image to be processed, and perform layering processing on the original image to obtain a smoothed image and a detail image;

[0073] A pot cover removal processing module 302, configured to perform pot cover suppression processing on the smoothed image through image operations to obtain a target image;

[0074] A fusion module 303, configured to fuse the detail image and the target image to obtain a final image after removing the pot cover.

[0075] In the embodiment of the present invention, after layering the image with a pot cover, a low-frequency smoothed image and a high-frequency detail image are obtained. Then, through image operations, the smoothed image is processed, and the pot cover suppression effect can be achieved, reducing the complexity of the pot cover suppression algorithm, improving the efficiency of suppressing the pot cover effect, and having good scene adaptability. At the same time, only the smoothed image is processed for pot cover suppression, protecting the image details and solving the problem of image detail loss while suppressing the pot cover effect.

[0076] Based on the above embodiment, optionally, the layering processing module includes:

[0077] A smoothed image acquisition unit, configured to perform low-pass filtering on the original image to obtain a smoothed image;

[0078] A detail image acquisition unit, configured to subtract the smoothed image from the original image to obtain a detail image.

[0079] Based on the above embodiment, optionally, the pot cover removal processing module is specifically configured to:

[0080] Perform a negation operation on the smoothed image according to a preset negation operation formula to obtain a first image;

[0081] Perform an exclusion operation on the smoothed image and the first image according to a preset exclusion operation formula to obtain a second image;

[0082] Perform a multiplication operation on the second image and the smoothed image according to a preset multiplication operation formula to obtain a target image.

[0083] Based on the above embodiment, optionally, the negation operation formula is as follows:

[0084] I m 2(i, j) = (2 bite -1) - Im 1(i, j);

[0085] Among them, I m 1(i, j) is the pixel value of the smoothed image at position (i, j), I m 2(i, j) is the pixel value of the first image at position (i, j), and bite is the image bit width of the smoothed image.

[0086] Based on the above embodiment, optionally, the elimination operation formula is as follows:

[0087] I m 3(i, j)=I m 2(i, j)+I m 1(i, j)-I m 2(i, j)×I m 1(i, j) / 2 bite-1 ;

[0088] Among them, I m 3(i, j) is the pixel value of the second image at position (i, j), and bite is the image bit width.

[0089] Based on the above embodiment, optionally, the multiplication formula is as follows:

[0090] I m 4(i, j)=I m 3(i, j)×I m 1(i, j) / 2 bite-1 ;

[0091] Among them, I m 4(i, j) is the pixel value of the target image at position (i, j).

[0092] Based on the above embodiment, optionally, the device further includes:

[0093] The contrast enhancement module is used to perform contrast enhancement processing on the target image according to a preset contrast stretching algorithm before fusing the detail image and the target image.

[0094] Based on the above embodiment, optionally, the fusion module is specifically configured to:

[0095] The detail image is enhanced, and the detail image after the detail enhancement processing is added to the target image to obtain the final image after removing the pot cover effect.

[0096] The apparatus for suppressing the pot effect in an image provided by an embodiment of the present invention can execute the method for suppressing the pot effect in an image provided by any embodiment of the present invention, and has the corresponding functional modules and beneficial effects of the execution method.

[0097] Example 4

[0098] Figure 4 FIG. 5 is a schematic structural diagram of an electronic device provided in Example 4 of the present invention. Figure 4 FIG. 6 shows a block diagram of an exemplary electronic device 12 suitable for implementing the embodiments of the present invention. In this embodiment, the electronic device is optionally an infrared thermal imaging device. Figure 4 The shown electronic device 12 is merely an example and should not impose any limitation on the functions and usage scope of the embodiments of the present invention.

[0099] As Figure 4 shown, the electronic device 12 is presented in the form of a general-purpose computing device. The components of the electronic device 12 may include, but are not limited to: one or more processors or processing units 16, a system memory 28, and a bus 18 connecting different system components (including the system memory 28 and the processing unit 16).

[0100] The bus 18 represents one or more of several types of bus structures, including a memory bus or memory controller, a peripheral bus, a graphics acceleration port, a processor, or a local bus using any of the multiple bus structures. By way of example, these architectures include, but are not limited to, Industry Standard Architecture (ISA) bus, Micro Channel Architecture (MAC) bus, Enhanced ISA bus, Video Electronics Standards Association (VESA) local bus, and Peripheral Component Interconnect (PCI) bus.

[0101] The electronic device 12 typically includes a variety of computer system readable media. These media can be any available media accessible by the electronic device 12, including volatile and non-volatile media, removable and non-removable media.

[0102] The system memory 28 may include computer system readable media in the form of volatile memory, such as random access memory (RAM) 30 and / or cache memory 32. The electronic device 12 may further include other removable / non-removable, volatile / non-volatile computer system storage media. By way of example only, a storage system 34 may be used to read and write non-removable, non-volatile magnetic media ( Figure 4 not shown, commonly referred to as a "hard disk drive"). Although Figure 4Not shown in the figure, a disk drive for reading and writing a removable non-volatile disk (such as a "floppy disk") and an optical disk drive for reading and writing a removable non-volatile optical disk (such as a CD-ROM, DVD-ROM or other optical medium) can be provided. In these cases, each drive can be connected to the bus 18 through one or more data medium interfaces. The memory 28 may include at least one program product having a set (such as at least one) of program modules configured to perform the functions of the embodiments of the present invention.

[0103] A program / utilities 40 having a set (at least one) of program modules 42 can be stored, for example, in the memory 28. Such program modules 42 include, but are not limited to, an operating system, one or more application programs, other program modules, and program data. Each or some combination of these examples may include the implementation of a network environment. The program modules 42 generally perform the functions and / or methods in the embodiments described in the present invention.

[0104] The electronic device 12 can also communicate with one or more external devices 14 (such as a keyboard, a pointing device, a display 24, etc.), and can also communicate with one or more devices that enable a user to interact with the electronic device 12, and / or communicate with any device that enables the electronic device 12 to communicate with one or more other computing devices (such as a network card, a modem, etc.). Such communication can be carried out through the input / output (I / O) interface 22. In addition, the electronic device 12 can also communicate with one or more networks (such as a local area network (LAN), a wide area network (WAN) and / or a public network, such as the Internet) through the network adapter 20. As shown in the figure, the network adapter 20 communicates with other modules of the electronic device 12 through the bus 18. It should be understood that although not shown in the figure, other hardware and / or software modules can be used in combination with the electronic device 12, including but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, and data backup storage systems, etc.

[0105] The processing unit 16 executes various functional applications and data processing by running the programs stored in the system memory 28, for example, implementing the image lid effect suppression method provided by the embodiments of the present invention. The method includes:

[0106] Obtain the original image to be processed, and perform hierarchical processing on the original image to obtain a smoothed image and a detailed image;

[0107] Perform lid suppression processing on the smoothed image by means of image operation to obtain a target image;

[0108] Fuse the detailed image and the target image to obtain the final image after removing the lid effect.

[0109] Example 5

[0110] A fifth embodiment of the present invention further provides a computer-readable storage medium having a computer program stored thereon. When the program is executed by a processor, the method for suppressing the pot lid effect of an image provided in the embodiment of the present invention is implemented. The method includes:

[0111] Obtaining the original image to be processed, and performing layered processing on the original image to obtain a smooth image and a detail image;

[0112] Through image operation, the smooth image is subjected to pot-lid suppression processing to obtain the target image;

[0113] The detail image and the target image are fused to obtain the final image after removing the pot cover effect.

[0114] The computer storage medium of the embodiment of the present invention 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 component, or any combination thereof. More specific examples (a non-exhaustive list) of computer-readable storage media include: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination thereof. In this document, a computer-readable storage medium may be any tangible medium containing or storing a program that can be used by or in combination with an instruction execution system, device or device.

[0115] Computer-readable signal media may include data signals propagated in baseband or as part of a carrier wave, which carry computer-readable program code. Such propagated data signals may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. Computer-readable signal media may also be any computer-readable medium other than a computer-readable storage medium, which may send, propagate, or transmit a program for use by or in conjunction with an instruction execution system, apparatus, or device.

[0116] Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.

[0117] Computer program code for performing the operations of the present invention may be written in one or more programming languages or combinations thereof, including object-oriented programming languages such as Java, Smalltalk, C++, and also including conventional procedural programming languages such as the "C" language or similar programming languages. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer, or entirely on the remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., through the Internet using an Internet service provider).

[0118] Note that the above is only a preferred embodiment of the present invention and the technical principles applied. Those skilled in the art will understand that the present invention is not limited to the specific embodiments here, and various obvious changes, re-adjustments, and substitutions can be made by those skilled in the art without departing from the protection scope of the present invention. Therefore, although the present invention has been described in more detail through the above embodiments, the present invention is not limited to the above embodiments. Without departing from the concept of the present invention, more other equivalent embodiments may be included, and the scope of the present invention is determined by the scope of the appended claims.

Claims

1. A method for suppressing the pot lid effect of an image, characterized in that: Including: Obtain the original image to be processed, and perform layering processing on the original image to obtain a smoothed image and a detailed image; Perform pot lid suppression processing on the smoothed image by means of image operation to obtain a target image; Fuse the detailed image and the target image to obtain the final image after removing the pot lid effect; Wherein, the image operation includes: inversion operation, exclusion operation, multiplication operation; Wherein, performing pot lid suppression processing on the smoothed image by means of image operation to obtain a target image includes: Perform an inversion operation on the smoothed image according to a preset inversion operation formula to obtain a first image; Perform an exclusion operation on the smoothed image and the first image according to a preset exclusion operation formula to obtain a second image; Perform a multiplication operation on the second image and the smoothed image according to a preset multiplication operation formula to obtain a target image; Wherein, the inversion operation formula is as follows: I m 2(i, j) = (2 bite - 1) - I m 1 * i, j); Among them, I m 1(i, j) is the pixel value of the smoothed image at the position (i, j), and I m 2(i, j) is the pixel value of the first image at the position (i, j), and bite is the image bit width of the smoothed image; Wherein, the exclusion operation formula is as follows: Among them, I m 3(i, j) is the pixel value of the second image at the position (i, j); Wherein, the multiplication operation formula is as follows: I m 4(i, j) = I m 3(i, j) × I m 1(i, j) / 2 bite-1 ; Among them, I m 4(i, j) is the pixel value of the target image at the position (i, j).

2. The method according to claim 1, characterized in that, Performing layering processing on the original image to obtain a smoothed image and a detailed image includes: Perform low-pass filtering processing on the original image to obtain the smoothed image; Subtract the smoothed image from the original image to obtain the detailed image.

3. The method according to claim 1, wherein Before fusing the detailed image and the target image, the method further includes: Perform contrast enhancement processing on the target image according to a preset contrast stretching algorithm.

4. The method according to claim 1, wherein Fusing the detailed image and the target image to obtain the final image after removing the pot lid includes: Perform detail enhancement processing on the detailed image, and perform an addition operation on the detailed image after detail enhancement processing and the target image to obtain the final image after removing the pot lid effect.

5. A device for suppressing the pot lid effect of an image, characterized in that: Including: A layering processing module, configured to obtain the original image to be processed, and perform layering processing on the original image to obtain a smoothed image and a detailed image; A pot lid removal processing module, configured to perform pot lid suppression processing on the smoothed image by means of image operation to obtain a target image; A fusion module, configured to fuse the detailed image and the target image to obtain the final image after removing the pot lid; Wherein, the image operation includes: inversion operation, exclusion operation, multiplication operation; Wherein, the pot lid removal processing module is specifically configured to: Perform an inversion operation on the smoothed image according to a preset inversion operation formula to obtain a first image; Perform an exclusion operation on the smoothed image and the first image according to a preset exclusion operation formula to obtain a second image; Perform a multiplication operation on the second image and the smoothed image according to a preset multiplication operation formula to obtain a target image; Wherein, the inversion operation formula is as follows: I m 2(i, j) = (2 bite - 1) - I m 1(i, j); Among them, I m 1(i, j) is the pixel value of the smoothed image at the position (i, j), and I m 2(i, j) is the pixel value of the first image at the position (i, j), and bite is the image bit width of the smoothed image; Wherein, the exclusion operation formula is as follows: Among them, I m 3(i, j) is the pixel value of the second image at the position (i, j); Wherein, the multiplication operation formula is as follows: I m 4(i, j) = I m 3(i, j) × I m 1(i, j) / 2 bite-1 ; Among them, I m 4(i, j) is the pixel value of the target image at the position (i, j).

6. An electronic device, characterized in that, Including: One or more processors; A storage device, configured to store one or more programs, When the one or more programs are executed by the one or more processors, the one or more processors implement the image pot lid effect suppression method as described in any one of claims 1-4.

7. A computer-readable storage medium having a computer program stored thereon, characterized in that, When the program is executed by a processor, it implements the method for suppressing the image pot lid effect as described in any one of claims 1-4.

Citation Information

Patent Citations

  • FPGA (field programmable gate array)-based infrared image detail enhancing system and method

    CN103177429A