Infrared image processing method and device, electronic equipment and readable storage medium

The background and detail layer of infrared image are separated by parallel guide filters, and combined with histogram equalization and sharpening filtering, the background and details of infrared image are enhanced simultaneously, solving the problem that the details are ignored in traditional methods. Improves image contrast and detail clarity.

CN118967515AInactive Publication Date: 2024-11-15安徽光智科技有限公司
View PDF 0 Cites 1 Cited by

Patent Information

Application Number
CN202411161150.0
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-08-22
Publication Date
2024-11-15
Estimated Expiration
Not applicable · inactive patent

AI Technical Summary

Technical Problem

Traditional infrared image processing methods cannot effectively improve the details of infrared images, resulting in low image contrast, excessive noise, and excessive enhancement of background areas, neglecting the enhancement of the details areas, and failing to obtain an ideal infrared image enhancement effect.

Method used

The infrared image is divided into background layer and detail layer by parallel guide filter, and histogram equalization and Laplace operator sharpening filtering are performed separately. Combined with adaptive brightness adjustment, the background is adjusted through CLAHE and DSIHE algorithms. The layer is equalized, and the detail layer is sharpened and filtered using the Laplacian operator, and finally the weighted fusion is used to generate the target infrared image.

Benefits of technology

While maintaining background information, it significantly improves the contrast of the details and texture edge details of the infrared image, solving the enhancement problem that the details are ignored in traditional methods, and improving the overall contrast and detail clarity of the image.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118967515A_ABST
    Figure CN118967515A_ABST
Patent Text Reader

Abstract

The invention provides an infrared image processing method and apparatus, an electronic device and a readable storage medium. The method comprises the steps of obtaining a to-be-enhanced infrared image; filtering the to-be-enhanced infrared image based on a parallel guide filter to obtain a first image and a second image; performing first preset enhancement processing on the first image to obtain a first target image; performing second preset enhancement processing on the first image and the second image to obtain a second target image; and performing adaptive brightness adjustment processing according to the first target image and the second target image to obtain a target infrared image. According to the method, the to-be-enhanced infrared image is divided into two parts through the guide filter, and histogram equalization processing and Laplace operator sharpening filtering processing are respectively performed on the first image and the second image, so that the detail part of the infrared image can be effectively enhanced while the background layer image is enhanced in a balanced manner.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of infrared image processing technology, and in particular to an infrared image processing method, device, electronic equipment and readable storage medium. Background Art

[0002] With the rapid development of infrared imaging technology, it is now widely used in various fields. Infrared imaging technology has the advantages of real-time observation, but because infrared imaging is affected by external environmental interference, transmission distance and small radiation dynamic range, compared with visible light images, infrared images have low contrast, blurred image details and excessive noise.

[0003] Infrared image enhancement is an important step in the visualization process. However, traditional image enhancement algorithms will cause excessive enhancement of the background area of ​​the image when processing infrared images, ignore the enhancement of the detail area, and fail to obtain the ideal infrared image enhancement effect. Summary of the invention

[0004] In order to solve the above technical problems, the embodiments of the present application provide an infrared image processing method, device, electronic device and readable storage medium capable of simultaneously enhancing the background area and detail area of ​​an infrared image. The specific scheme is as follows: In a first aspect, an embodiment of the present application provides an infrared image processing method, comprising: Acquire the infrared image to be enhanced; Filtering the infrared image to be enhanced based on parallel guided filters to obtain a first image and a second image; Performing a first preset enhancement process on the first image to obtain a first target image, wherein the first preset enhancement process includes a histogram equalization process; Performing a second preset enhancement process on the first image and the second image to obtain two target images, wherein the second preset enhancement process includes a Laplacian operator sharpening filter process; Adaptive brightness adjustment processing is performed according to the first target image and the second target image to obtain a target infrared image.

[0005] According to a specific implementation of the embodiment of the present application, the guided filter includes a first filter and a second filter, and the parallel-based guided filter filters the infrared image to be enhanced to obtain the first image and the second image, including: Performing filtering processing on the infrared image to be enhanced based on the first filter to obtain the first image, wherein the first image is a background layer image; The infrared image to be enhanced is filtered based on the second filter to obtain the second image, wherein the second image is a noise-filtered image.

[0006] According to a specific implementation of the embodiment of the present application, performing a first preset enhancement process on the first image to obtain a first target image includes: Performing contrast-limited adaptive histogram equalization processing on the first image to obtain a first intermediate image; Performing equal-area binary subimage histogram equalization processing on the first image to obtain a second intermediate image; The first intermediate image and the second intermediate image are linearly superimposed to obtain the first target image.

[0007] According to a specific implementation of the embodiment of the present application, performing contrast-restricted adaptive histogram equalization processing on the first image to obtain a first intermediate image includes: Dividing the first image into a plurality of sub-blocks according to a preset sub-block size; Perform histogram equalization on each sub-block; Performing contrast limiting processing on the equalized sub-block according to a preset contrast limiting threshold; Smoothing is performed on pixel values ​​between the sub-blocks to obtain the first intermediate image.

[0008] According to a specific implementation of the embodiment of the present application, performing equal-area binary subimage histogram equalization processing on the first image to obtain the second intermediate image includes: dividing the first image into two sub-images; Perform histogram equalization on the two sub-images respectively; The two equalized sub-images are merged into one image to obtain the second intermediate image.

[0009] According to a specific implementation of the embodiment of the present application, performing a second preset enhancement process on the first image and the second image to obtain two target images includes: Calculate a third image according to the first image and the second image; The third image is subjected to sharpening filtering processing based on a Laplacian operator to obtain the second target image.

[0010] According to a specific implementation of the embodiment of the present application, the step of performing adaptive brightness adjustment processing according to the first target image and the second target image to obtain a target infrared image includes: Performing weighted superposition on the first target image and the second target image to obtain an enhanced infrared image; The enhanced infrared image is brightness adjusted to obtain the target infrared image.

[0011] In a second aspect, an embodiment of the present application provides an infrared image processing device, including: An acquisition module, used for acquiring the infrared image to be enhanced; A filtering module, used for filtering the infrared image to be enhanced based on a parallel guided filter to obtain a first image and a second image; A first enhancement module, configured to perform a first preset enhancement process on the first image to obtain a first target image, wherein the first preset enhancement process includes a histogram equalization process; A second enhancement module, configured to perform a second preset enhancement process on the first image and the second image to obtain two target images, wherein the second preset enhancement process includes a Laplacian operator sharpening filter process; The adjustment module is used to perform adaptive brightness adjustment processing according to the first target image and the second target image to obtain a target infrared image.

[0012] In a third aspect, an embodiment of the present application provides an electronic device, the electronic device comprising: at least one processor; and, a memory communicatively connected to the at least one processor; wherein, The memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to execute the infrared image processing method in the aforementioned first aspect or any implementation of the first aspect.

[0013] In a fourth aspect, an embodiment of the present application further provides a non-transitory computer-readable storage medium, which stores computer instructions, and the computer instructions are used to enable the computer to execute the infrared image processing method in the aforementioned first aspect or any implementation of the first aspect.

[0014] In summary, the present embodiment provides an infrared image processing method, device, electronic device and readable storage medium, including: obtaining an infrared image to be enhanced; filtering the infrared image to be enhanced based on a parallel guided filter to obtain a first image and a second image; performing a first preset enhancement process on the first image to obtain a first target image; performing a second preset enhancement process on the first image and the second image to obtain two target images; performing adaptive brightness adjustment process according to the first target image and the second target image to obtain a target infrared image. The present invention divides the infrared image to be enhanced into two parts through a guided filter, and performs histogram equalization processing and Laplace operator sharpening filter processing on the first image and the second image respectively, which can effectively enhance the details of the infrared image while evenly enhancing the background layer image. BRIEF DESCRIPTION OF THE DRAWINGS

[0015] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings required for use in the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present disclosure. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.

[0016] Figure 1 A schematic diagram of an application scenario of an infrared image processing method provided in an embodiment of the present application; Figure 2 A schematic diagram of an algorithm model of an infrared image processing method provided in an embodiment of the present application; Figure 3 A schematic diagram of the filtering process steps provided in the embodiment of the present application; Figure 4 A schematic diagram of a first image provided in an embodiment of the present application; Figure 5 A schematic diagram of a third image provided in an embodiment of the present application; Figure 6 A schematic diagram of the steps for obtaining a first target image provided in an embodiment of the present application; Figure 7 A schematic diagram of a first target image provided in an embodiment of the present application; Figure 8 A schematic diagram of a process flow for obtaining a first intermediate image provided in an embodiment of the present application; Fig. 9 A schematic diagram of a process flow for obtaining a second intermediate image provided in an embodiment of the present application; Fig.10 A schematic diagram of the steps for obtaining a second target image provided in an embodiment of the present application; Fig.11 A schematic diagram of a second target image provided in an embodiment of the present application; Fig.12 A schematic diagram of the steps for obtaining an infrared image of a target provided in an embodiment of the present application; Fig.13 A schematic diagram of an infrared image of a target provided in an embodiment of the present application; Fig.14 A schematic diagram of a device module of an infrared image processing device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0017] The embodiments of the present application are described in detail below with reference to the accompanying drawings.

[0018] The following describes the embodiments of the present disclosure through specific examples, and those skilled in the art can easily understand other advantages and effects of the present disclosure from the contents disclosed in this specification. Obviously, the described embodiments are only a part of the embodiments of the present disclosure, rather than all of the embodiments. The present disclosure can also be implemented or applied through other different specific embodiments, and the details in this specification can also be modified or changed in various ways based on different viewpoints and applications without departing from the spirit of the present disclosure. It should be noted that the following embodiments and features in the embodiments can be combined with each other without conflict. Based on the embodiments in the present disclosure, all other embodiments obtained by ordinary technicians in the field without making creative work are within the scope of protection of the present disclosure.

[0019] It should be noted that various aspects of the embodiments within the scope of the appended claims are described below. It should be apparent that the aspects described herein may be embodied in a wide variety of forms, and any specific structure and / or function described herein is merely illustrative. Based on the present disclosure, it should be understood by those skilled in the art that an aspect described herein may be implemented independently of any other aspect, and two or more of these aspects may be combined in various ways. For example, any number of aspects described herein may be used to implement the device and / or practice the method. In addition, other structures and / or functionalities other than one or more of the aspects described herein may be used to implement this device and / or practice this method.

[0020] It should also be noted that the illustrations provided in the following embodiments are only schematic illustrations of the basic concept of the present disclosure. The drawings only show components related to the present disclosure rather than being drawn according to the number, shape and size of components in actual implementation. In actual implementation, the type, quantity and proportion of each component may be changed arbitrarily, and the component layout may also be more complicated.

[0021] Additionally, in the following description, specific details are provided to facilitate a thorough understanding of the examples. However, it will be understood by those skilled in the art that the aspects described may be practiced without these specific details.

[0022] As mentioned in the previous background technology section, in the field of image enhancement, histogram equalization (HE) is one of the most classic algorithms, but the details in the background area of ​​the infrared image processed by the traditional HE algorithm are blurred and cannot achieve the ideal enhancement effect. Although histogram equalization can enhance the overall contrast of the infrared image, it cannot effectively highlight the edge features of the image. In the application scenarios of infrared images such as face recognition, image recognition of details is very important.

[0023] This embodiment proposes an infrared image processing algorithm, which can not only effectively enhance the background part of the infrared image, but also specifically enhance the detail part of the infrared image to provide an infrared image with image texture edge details.

[0024] refer to Figure 1 The embodiment of the present application provides an infrared image processing method, which is described by taking the method applied to a computer device for enhancing infrared images as an example, and includes the following steps: S101, obtaining an infrared image to be enhanced.

[0025] In this embodiment, the infrared image to be enhanced is an input image input to the infrared image processing model. The infrared image to be enhanced can be obtained by shooting with an infrared camera, or can be directly called from a database, a server or a memory. The acquisition method of the infrared image to be enhanced can be determined according to the needs of the actual application scenario.

[0026] Furthermore, the infrared image processing model is an image processing model that can automatically execute the following steps S102-S105, including multiple guided filters, algorithm modules, and stacking devices. The specific structure of the infrared image processing model in this embodiment can be as follows: Figure 2 shown.

[0027] S102, filtering the infrared image to be enhanced based on parallel guided filters to obtain a first image and a second image.

[0028] In this embodiment, the parallel guided filters include at least a first filter and a second filter. The first filter and the second filter can filter the infrared image to be enhanced at the same time and obtain the corresponding first image and second image.

[0029] Among them, the guided filtering calculation formulas of the first filter and the second filter are as follows: in, Represents the guide image China-Israel The window area with the center point as the and yes The linear coefficient in the region, yes Regional variance, is the regularization factor.

[0030] In one embodiment, if Figure 2 As shown, the first filter may be the guide filter 1 in the figure, and the second filter may be the guide filter 2 in the figure. The input image is the infrared image to be enhanced. After the infrared image to be enhanced is acquired, the first filter and the second filter are respectively input to filter the infrared image to be enhanced through the parallel guide filters.

[0031] S103, performing a first preset enhancement process on the first image to obtain a first target image, wherein the first preset enhancement process includes a histogram equalization process.

[0032] In this embodiment, the first preset enhancement processing includes histogram equalization processing algorithms such as a contrast limited adaptive histogram equalization (CLAHE) algorithm and a dual sub-image histogram equalization (DSIHE) algorithm.

[0033] The first target image corresponds to the enhanced background layer image. This embodiment can effectively limit the contrast of the image by executing the CLAHE algorithm on the first image to avoid over-enhancement of the background layer image. This embodiment can also effectively avoid contrast reduction by executing the DSIHE algorithm on the first image.

[0034] In this embodiment, by performing the first preset enhancement process on the first image, an infrared image with a balanced enhancement of the background layer can be provided.

[0035] S104, performing a second preset enhancement process on the first image and the second image to obtain two target images, wherein the second preset enhancement process includes a Laplacian operator sharpening filter process.

[0036] In this embodiment, the second preset enhancement processing mainly includes Laplacian operator sharpening filter processing and other algorithms for enhancing the detail layer of the infrared image.

[0037] The second target image corresponds to the enhanced detail layer image. This embodiment performs sharpening filtering on the second image based on the Laplacian operator, which can effectively enhance the details of the infrared image. The Laplacian operator in this embodiment adds the rubbing difference between the four-field pixels and the center pixel to the original pixel value, thereby highlighting the texture edge detail information of the image.

[0038] S105, performing adaptive brightness adjustment processing according to the first target image and the second target image to obtain a target infrared image.

[0039] In this embodiment, after obtaining the enhanced background layer image and detail layer image, that is, the first target image and the second target image, it is necessary to weightedly fuse the first target image and the second target image and perform brightness adjustment processing to obtain a target infrared image that meets the requirements of the actual application scenario.

[0040] It should be noted that the algorithm for weighted fusion of the first target image and the second target image in this embodiment can be to use a cuckoo search algorithm to search globally to obtain the optimal solution of the weight, and then perform a weighted sum calculation based on the weight corresponding to the first target image and the weight corresponding to the second target image. The weighted fusion algorithm in this embodiment can also be adaptively configured according to the actual application scenario.

[0041] In summary, this embodiment provides an infrared image processing method, which combines histogram enhancement and Laplacian operator, and uses guided filtering to divide the infrared image to be enhanced into a background layer and a detail layer, that is, a first image and a second image. For the background layer image, the CLAHE algorithm and the DSIHE algorithm are used for enhancement processing and then fused, which can effectively improve the image contrast. For the detail layer image, the Laplacian operator is used to enhance the details and improve the overall details of the image. Finally, the first target image and the second target image are fused to improve the overall brightness and generate the final target infrared image. Not only the texture detail information highlighted by infrared is highlighted, but also the background information can be effectively retained, which is beneficial to the subsequent recognition application of infrared images.

[0042] In one embodiment, Figure 3 As shown, the infrared image to be enhanced is filtered based on parallel guided filters to obtain a first image and a second image, including: S301, filtering the infrared image to be enhanced based on a first filter to obtain a first image, wherein the first image is a background layer image.

[0043] S302: Filter the infrared image to be enhanced based on a second filter to obtain a second image, wherein the second image is a noise-filtered image.

[0044] In this embodiment, the image is layered through two guided filters. Compared with bilateral filtering, the time complexity of the guided filtering algorithm is independent of the window size, and it is faster when processing large photos. In addition, the guided filter can overcome the gradient flipping phenomenon that occurs in bilateral filtering and can better preserve the details on the image.

[0045] In this embodiment, the infrared image to be enhanced is filtered by the first filter and the second filter respectively. The infrared image to be enhanced can be input into the first filter and the second filter respectively, or input into the first filter and the second filter at the same time. This embodiment does not limit the specific steps of the first filter and the second filter receiving the infrared image to be enhanced, and can be adaptively configured according to the actual application scenario.

[0046] For example, in a face infrared recognition scenario, after the infrared image to be enhanced is collected by an infrared camera, the first image (background layer image) obtained by filtering with a first filter is as follows: Figure 4 As shown, after the second image is filtered by the second filter, the third image (detail layer image) is calculated based on the first image and the second image. Figure 5 shown.

[0047] In one embodiment, Figure 6 As shown, performing a first preset enhancement process on the first image to obtain a first target image includes: S601, performing contrast-limited adaptive histogram equalization processing on a first image to obtain a first intermediate image.

[0048] S602: Perform equal-area binary sub-image histogram equalization processing on the first image to obtain a second intermediate image.

[0049] S603: Linearly superimpose the first intermediate image and the second intermediate image to obtain a first target image.

[0050] In this embodiment, the first image corresponds to the background layer image. The first preset enhancement processing performed on the background layer image includes processing the background layer image separately by the CLAHE algorithm and the DSIHE algorithm to obtain a first intermediate image and a second intermediate image. After obtaining the first intermediate image and the second intermediate image, linear weighted fusion is performed on the two intermediate images, which can significantly enhance the contrast of the entire image and avoid the problem of excessive background noise.

[0051] It should be noted that the weights in this embodiment are the optimal solutions obtained by the global search of the cuckoo search algorithm, which can improve the performance and accuracy of the overall infrared image enhancement algorithm.

[0052] For example, in a face infrared recognition scenario, the first target image is obtained by fusion of the first intermediate image obtained by the CLAHE algorithm and the second intermediate image obtained by the DSIHE algorithm, such as Figure 7 shown.

[0053] In one embodiment, Figure 8 As shown, performing contrast-limited adaptive histogram equalization processing on the first image to obtain a first intermediate image includes: S801: Divide a first image into a plurality of sub-blocks according to a preset sub-block size, such as N*N pixel blocks.

[0054] S802: Perform histogram equalization processing on each sub-block.

[0055] S803: Perform contrast limiting processing on the equalized sub-block according to a preset contrast limiting threshold.

[0056] S804: Smoothing the pixel values ​​between the sub-blocks to obtain a first intermediate image.

[0057] In this embodiment, the CLAHE algorithm can enhance the local contrast of the image and make the details clearer by adaptively processing each sub-block in the image. By limiting the contrast, it is also possible to avoid amplifying noise while enhancing the image contrast. And while enhancing the image contrast, the overall brightness of the image can be kept unchanged.

[0058] The preset contrast limit threshold may also be a preset grayscale probability distribution threshold. The CLAHE algorithm divides the entire image into multiple non-overlapping sub-blocks, sets a grayscale probability distribution threshold for each sub-block, removes the histogram portion that exceeds the threshold and evenly distributes it over the entire grayscale, while reducing the high grayscale of the histogram, it can increase the proportion of the low grayscale of the histogram, and highlight the image details.

[0059] In one embodiment, Fig. 9 As shown, the first image is subjected to equal-area binary sub-image histogram equalization processing to obtain a second intermediate image, including: S901, dividing a first image into two sub-images; S902, performing histogram equalization processing on the two sub-images respectively; S903: Merge the two equalized sub-images into one image to obtain a second intermediate image.

[0060] In this embodiment, the DSIHE algorithm divides the image into two sub-images according to the median brightness of the image, and performs histogram equalization processing on the two sub-images respectively, which can well maintain the average information content of the input image.

[0061] In actual applications, the global histogram equalization algorithm may merge low-frequency gray levels during processing, resulting in loss of details. The DSIHE algorithm reduces this problem by segmenting the image and processing the sub-images independently.

[0062] In one embodiment, Fig.10 As shown, the first image and the second image are subjected to a second preset enhancement process to obtain two target images, including: S1001, calculating and obtaining a third image according to the first image and the second image; S1002, performing sharpening filtering processing on the third image based on a Laplacian operator to obtain a second target image.

[0063] In this embodiment, the first image corresponds to the detail layer image, the second image corresponds to the noise-filtered image, and the third image corresponds to the detail layer image. In this embodiment, the corresponding detail layer image is obtained by subtracting the second image from the first image. Figure 5 shown.

[0064] During the sharpening filter processing, a Laplacian image corresponding to the third image is calculated by a Laplacian operator, and then the third image and the Laplacian image are combined to obtain a corresponding sharpening filter result, ie, a second target image.

[0065] For example, in the face infrared recognition scenario, the second target image obtained by performing sharpening filtering on the third image by the Laplacian operator is as follows: Fig.11 shown.

[0066] like Fig.12 As shown, adaptive brightness adjustment processing is performed according to the first target image and the second target image to obtain a target infrared image, including: S1201, performing weighted superposition on the first target image and the second target image to obtain an enhanced infrared image; S1202, adjusting the brightness of the enhanced infrared image to obtain a target infrared image.

[0067] In this embodiment, since the image enhancement process and the segmentation process may cause certain brightness differences in the infrared image, it is necessary to further perform adaptive brightness adjustment on the enhanced infrared image after weighted superposition of the first target image and the second target image to obtain a target infrared image that meets actual needs.

[0068] It should be noted that the adaptive brightness adjustment in this embodiment can be configured with reference to the needs of actual application scenarios, and is not specifically limited here.

[0069] In this embodiment, the target infrared image after weighted fusion and adaptive brightness adjustment is as follows: Fig.13 shown.

[0070] In summary, this embodiment provides an infrared image processing method, which effectively solves the problem of neglecting the enhancement of detail parts in the existing infrared image processing methods. By layering the image through guided filtering, the speed is faster when processing large photos, and the details on the image can be better retained. The background layer image is processed separately by the CLAHE algorithm and the DSIHE algorithm and then weighted fused, which can significantly enhance the overall contrast of the image while avoiding the problem of excessive background noise. For the detail layer image, the intermediate result of the guided filtering is used to generate a noise-filtered image, and then the detail layer image is calculated based on the background layer image and the noise-filtered image, and then processed based on the Laplacian operator, which can highlight the texture detail information of the image while retaining the background information.

[0071] Based on the same inventive concept, the embodiment of the present application also provides an infrared image processing device for implementing the infrared image processing method involved above. The implementation scheme for solving the problem provided by the device is similar to the implementation scheme recorded in the above method, so the specific limitations in one or more infrared image processing device embodiments provided below can refer to the limitations of the infrared image processing method above, and will not be repeated here.

[0072] In one embodiment, reference Fig.14 This embodiment further provides an infrared image processing device 1400, including: an acquisition module 1410, a filtering module 1420, a first enhancement module 1430, a second enhancement module 1440 and an adjustment module 1450, wherein: An acquisition module 1410 is used to acquire an infrared image to be enhanced; A filtering module 1420 is used to filter the infrared image to be enhanced based on parallel guided filters to obtain a first image and a second image; A first enhancement module 1430, configured to perform a first preset enhancement process on the first image to obtain a first target image, wherein the first preset enhancement process includes a histogram equalization process; The second enhancement module 1440 is used to perform a second preset enhancement process on the first image and the second image to obtain two target images, wherein the second preset enhancement process includes a Laplacian operator sharpening filter process; The adjustment module 1450 is used to perform adaptive brightness adjustment processing according to the first target image and the second target image to obtain a target infrared image.

[0073] In one embodiment, the filtering module 1420 is specifically used to filter the infrared image to be enhanced based on a first filter to obtain a first image, wherein the first image is a background layer image; and filter the infrared image to be enhanced based on a second filter to obtain a second image, wherein the second image is a noise-filtered image.

[0074] In one embodiment, the first enhancement module 1430 is specifically used to perform contrast-limited adaptive histogram equalization processing on the first image to obtain a first intermediate image; perform equal-area binary subgraph histogram equalization processing on the first image to obtain a second intermediate image; and linearly superimpose the first intermediate image and the second intermediate image to obtain a first target image.

[0075] In one of the embodiments, the first enhancement module 1430 is specifically used to divide the first image into multiple sub-blocks according to a preset sub-block size; perform histogram equalization on each sub-block; perform contrast limiting on the equalized sub-block according to a preset contrast limiting threshold; and smooth the pixel values ​​between the sub-blocks to obtain a first intermediate image.

[0076] In one embodiment, the first enhancement module 1430 is specifically configured to divide the first image into two sub-images; perform histogram equalization on the two sub-images respectively; and merge the two equalized sub-images into one image to obtain a second intermediate image.

[0077] In one embodiment, the second enhancement module 1440 is specifically configured to calculate a third image based on the first image and the second image; and perform a sharpening filter process on the third image based on a Laplacian operator to obtain a second target image.

[0078] In one embodiment, the adjustment module 1450 is specifically configured to perform weighted superposition on the first target image and the second target image to obtain an enhanced infrared image; and perform brightness adjustment on the enhanced infrared image to obtain a target infrared image.

[0079] In summary, this embodiment provides an infrared image processing device, which effectively solves the problem of neglecting the enhancement of detail parts in the existing infrared image processing methods. By layering the image through guided filtering, the speed is faster when processing large photos, and the details on the image can be better preserved. The background layer image is processed separately by the CLAHE algorithm and the DSIHE algorithm and then weighted fused, which can significantly enhance the overall contrast of the image while avoiding the problem of excessive background noise. For the detail layer image, the intermediate result of guided filtering is used to generate a noise-filtered image, and then the detail layer image is calculated based on the background layer image and the noise-filtered image, and then processed based on the Laplacian operator, which can highlight the texture detail information of the image while retaining the background information.

[0080] Fig.14 The specific implementation of the device shown can refer to the specific implementation of the aforementioned method embodiment, which will not be repeated here.

[0081] In addition, an embodiment of the present application further provides an electronic device, the electronic device comprising: at least one processor; and, a memory communicatively connected to the at least one processor; wherein, The memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can execute the infrared image processing method in the aforementioned method embodiment.

[0082] An embodiment of the present application further provides a non-transitory computer-readable storage medium, which stores computer instructions, and the computer instructions are used to enable the computer to execute the infrared image processing method in the aforementioned method embodiment.

[0083] The electronic devices in the embodiments of the present application may include, but are not limited to, mobile terminals such as mobile phones, laptop computers, digital broadcast receivers, PDAs (personal digital assistants), PADs (tablet computers), PMPs (portable multimedia players), vehicle-mounted terminals (such as vehicle-mounted navigation terminals), etc., and fixed terminals such as digital TVs, desktop computers, etc.

[0084] It should be noted that the computer-readable medium disclosed above may be a computer-readable signal medium or a computer-readable storage medium or any combination of the above two. Examples of computer-readable storage media may be, but are not limited to, electrical, magnetic, optical, electromagnetic, infrared, or semiconductor systems, devices or components, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to, electrical connections with one or more wires, portable computer disks, hard disks, random access memories (RAM), read-only memories (ROM), erasable programmable read-only memories (EPROM or flash memory), optical fibers, portable compact disk read-only memories (CD-ROM), optical storage devices, magnetic storage devices, or any suitable combination of the above.

[0085] In the present disclosure, 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, apparatus, or device. In the present disclosure, a computer-readable signal medium may include a data signal propagated in a baseband or as part of a carrier wave, which carries a 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. A computer-readable signal medium 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 combination with an instruction execution system, apparatus, or device. The program code contained on the computer-readable medium may be transmitted using any suitable medium, including but not limited to: wires, optical cables, RF (radio frequency), etc., or any suitable combination of the above.

[0086] The computer-readable medium may be included in the electronic device, or may exist independently without being incorporated into the electronic device.

[0087] The computer-readable medium carries one or more programs. When the one or more programs are executed by the electronic device, the electronic device: obtains at least two Internet Protocol addresses; sends a node evaluation request including the at least two Internet Protocol addresses to a node evaluation device, wherein the node evaluation device selects an Internet Protocol address from the at least two Internet Protocol addresses and returns it; receives the Internet Protocol address returned by the node evaluation device; wherein the obtained Internet Protocol address indicates an edge node in a content distribution network.

[0088] Alternatively, the computer-readable medium carries one or more programs, and when the one or more programs are executed by the electronic device, the electronic device: receives a node evaluation request including at least two Internet Protocol addresses; selects an Internet Protocol address from the at least two Internet Protocol addresses; and returns the selected Internet Protocol address; wherein the received Internet Protocol address indicates an edge node in a content distribution network.

[0089] Computer program code for performing the operations of the present disclosure may be written in one or more programming languages ​​or a combination thereof, including object-oriented programming languages ​​such as Java, Smalltalk, C++, and conventional procedural programming languages ​​such as "C" or similar programming languages. The program code may be executed entirely on the user's computer, partially on the user's computer, as a separate software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In cases involving 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., via the Internet using an Internet service provider).

[0090] The flow chart and block diagram in the accompanying drawings illustrate the possible architecture, function and operation of the system, method and computer program product according to various embodiments of the present disclosure. In this regard, each square box in the flow chart or block diagram can represent a module, a program segment or a part of a code, and the module, the program segment or a part of the code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some implementations as replacements, the functions marked in the square box can also occur in a sequence different from that marked in the accompanying drawings. For example, two square boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each square box in the block diagram and / or flow chart, and the combination of the square boxes in the block diagram and / or flow chart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.

[0091] The units involved in the embodiments described in the present application may be implemented by software or hardware. The name of the unit does not limit the unit itself in some cases. For example, the first acquisition unit may also be described as a "unit for acquiring at least two Internet Protocol addresses".

[0092] It should be understood that various parts of the present disclosure may be implemented in hardware, software, firmware, or a combination thereof.

[0093] The above is only a specific implementation of the present disclosure, but the protection scope of the present disclosure is not limited thereto. Any changes or substitutions that can be easily thought of by a person skilled in the art within the technical scope disclosed in the present disclosure should be included in the protection scope of the present disclosure. Therefore, the protection scope of the present disclosure should be based on the protection scope of the claims.

Claims

1. A method for processing infrared images, It is characterized in that include: Acquire the infrared image to be enhanced; Filtering the infrared image to be enhanced based on parallel guided filters to obtain a first image and a second image; Performing a first preset enhancement process on the first image to obtain a first target image, wherein the first preset enhancement process includes a histogram equalization process; Performing a second preset enhancement process on the first image and the second image to obtain two target images, wherein the second preset enhancement process includes a Laplacian operator sharpening filter process; Adaptive brightness adjustment processing is performed according to the first target image and the second target image to obtain a target infrared image.

2. The method according to claim 1, It is characterized in that The guided filter comprises a first filter and a second filter, and the parallel-based guided filter filters the infrared image to be enhanced to obtain the first image and the second image, comprising: Performing filtering processing on the infrared image to be enhanced based on the first filter to obtain the first image, wherein the first image is a background layer image; The infrared image to be enhanced is filtered based on the second filter to obtain the second image, wherein the second image is a noise-filtered image.

3. The method according to claim 1, It is characterized in that The performing a first preset enhancement process on the first image to obtain a first target image includes: Performing contrast-limited adaptive histogram equalization processing on the first image to obtain a first intermediate image; Performing equal-area binary subimage histogram equalization processing on the first image to obtain a second intermediate image; The first intermediate image and the second intermediate image are linearly superimposed to obtain the first target image.

4. The method according to claim 3, It is characterized in that The step of performing contrast-limited adaptive histogram equalization processing on the first image to obtain a first intermediate image includes: Dividing the first image into a plurality of sub-blocks according to a preset sub-block size; Perform histogram equalization on each sub-block; Performing contrast limiting processing on the equalized sub-block according to a preset contrast limiting threshold; Smoothing is performed on pixel values ​​between the sub-blocks to obtain the first intermediate image.

5. The method according to claim 3, It is characterized in that The step of performing equal-area binary sub-image histogram equalization processing on the first image to obtain a second intermediate image includes: dividing the first image into two sub-images; Perform histogram equalization on the two sub-images respectively; The two equalized sub-images are merged into one image to obtain the second intermediate image.

6. The method according to claim 1, It is characterized in that The performing a second preset enhancement process on the first image and the second image to obtain two target images includes: Calculate a third image according to the first image and the second image; The third image is subjected to sharpening filtering processing based on a Laplacian operator to obtain the second target image.

7. The method according to claim 1, It is characterized in that The step of performing adaptive brightness adjustment processing according to the first target image and the second target image to obtain a target infrared image includes: Performing weighted superposition on the first target image and the second target image to obtain an enhanced infrared image; The enhanced infrared image is brightness adjusted to obtain the target infrared image.

8. An infrared image processing device, It is characterized in that include: An acquisition module, used for acquiring the infrared image to be enhanced; A filtering module, used for filtering the infrared image to be enhanced based on a parallel guided filter to obtain a first image and a second image; A first enhancement module, configured to perform a first preset enhancement process on the first image to obtain a first target image, wherein the first preset enhancement process includes a histogram equalization process; A second enhancement module, configured to perform a second preset enhancement process on the first image and the second image to obtain two target images, wherein the second preset enhancement process includes a Laplacian operator sharpening filter process; The adjustment module is used to perform adaptive brightness adjustment processing according to the first target image and the second target image to obtain a target infrared image.

9. An electronic device, It is characterized in that include: at least one processor; as well as, a memory communicatively connected to the at least one processor; wherein, The memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can execute the infrared image processing method described in any one of claims 1-7.

10. A non-transitory computer-readable storage medium, It is characterized in that The non-transitory computer-readable storage medium stores computer instructions, which are used to enable the computer to execute the infrared image processing method described in any one of claims 1-7.

Citation Information

Cited By

  • Infrared image detail enhancement method and device for reducing edge blur

    CN119295360A