High dynamic range infrared image detail enhancement method and device
Through layered processing and fusion technology, the problem of information retention and detail loss in high dynamic range infrared images in 8-bit grayscale space is solved, achieving visual effects with high contrast and clear local details.
Patent Information
- Application Number
- CN202410685539.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-30
- Publication Date
- 2024-09-17
AI Technical Summary
It is difficult with existing technology to maintain the overall information of high dynamic range infrared images without distortion while retaining detailed information, especially when converting high dynamic range infrared images into 8-bit grayscale space. Commonly used methods include linear mapping, histogram statistics and transformation. Domain methods each have limitations and cannot fully meet the performance requirements of optoelectronic imaging equipment.
Layered processing is used to divide the infrared image into a base layer and a detail layer. The base layer is adjusted through a linear mapping method of statistical segmentation. The detail layer is adjusted by combining filtering denoising and local detail enhancement methods. Finally, fusion processing is performed to obtain a composite image, ensuring The image retains information within the 8-bit grayscale range.
It achieves the information retention of high dynamic range infrared images within the 8-bit grayscale range, improves visual contrast and local detail clarity, and is suitable for human visual perception and subsequent processing.
Smart Images

Figure CN118657679A
Abstract
Description
Technical Field
[0001] The present application relates to the field of optoelectronic technology image processing, and in particular, to a high dynamic range infrared image detail enhancement method and a high dynamic range infrared image detail enhancement device. Background Art
[0002] Infrared imaging is widely used in optoelectronic systems such as precision guidance, search and tracking, surveillance and early warning, and the performance of an infrared imaging system is usually distinguished by its detection range and minimum equivalent temperature difference index. The first is the detection range, which is often called the dynamic range, which refers to the range in which the detector can detect infrared radiation signals. The minimum equivalent temperature difference refers to the minimum temperature difference that the detector can detect. Unlike visible light, in nature, the dynamic range of infrared radiation signals in large-scale scenes is usually wide, while the difference in infrared radiation of objects in the background may be relatively small. Therefore, a higher bit width ADC (analog-to-digital converter 12bit, 14bit, 16bit, etc.) is usually required to collect infrared signals, which means that infrared images usually have a high dynamic range.
[0003] At present, most video image display device interfaces require 8-bit width, and due to the limitations of the human visual system on grayscale, it is usually necessary to convert such high dynamic range grayscale images into 8-bit grayscale space. However, the difficulty of such high dynamic range grayscale conversion is that, on the one hand, it is necessary to ensure that the overall information of the high dynamic range image is not distorted, and on the other hand, it is necessary to be able to retain the detailed information in the infrared image so that the observer can see the details of the local target while obtaining the overall image information, providing a basis for subsequent target recognition, tracking, behavior analysis, etc.
[0004] For this high dynamic range infrared image enhancement problem, the commonly used methods include linear mapping, histogram statistics, and transform domain-based methods. These methods have their own advantages and have achieved good results in some specific applications, but they also have their own limitations and are difficult to fully meet the performance requirements of optoelectronic imaging equipment. For example, the method based on linear mapping is simple to implement, but it only works well when the grayscale dynamic range is small, and the local details of the target are easy to blur; the method based on histogram statistics resets the grayscale through the cumulative distribution function of the original image. Although it can achieve a visual effect of grayscale balance, it will significantly change the brightness of the original image in some cases, resulting in over-enhancement of the high-frequency grayscale area of the image, and grayscale merging will occur in the low-frequency grayscale area, resulting in local detail loss; the method based on transform domain first uses the transform function to transform the image into the transform domain, and then uses the properties of the signal in different transform domains to enhance the image details. Usually, this type of method requires multiple conversions between the spatial domain and the transform domain, with high computational complexity and poor real-time performance. Summary of the invention
[0005] The embodiments of the present application provide a high dynamic range infrared image detail enhancement method and a high dynamic range infrared image detail enhancement device. The technical solution of the present application can compress the original infrared image with a high dynamic range to an 8-bit grayscale range. The compressed infrared image can fully retain the information in the original image data, with high contrast, clear local details and good visual effect.
[0006] Other features and advantages of the present application will become apparent from the following detailed description, or may be learned in part by the practice of the present application.
[0007] According to a first aspect of an embodiment of the present application, a method for enhancing details of a high dynamic range infrared image is provided, comprising:
[0008] Acquire high dynamic range infrared images and perform preprocessing;
[0009] Separating the preprocessed image into a base layer image and a detail layer image by filtering;
[0010] Adjusting the base layer image based on a statistical segmented linear mapping method;
[0011] Adjusting the detail layer image based on a filtering denoising method, an image dynamic range compression method and a local detail enhancement method;
[0012] The adjusted base layer image and detail layer image are fused to obtain a composite image and output it.
[0013] In some embodiments of the present application, based on the above-mentioned solution, the step of acquiring a high dynamic range infrared image and performing preprocessing includes:
[0014] Collect the original image data of infrared detector through high bit width ADC;
[0015] The original image data of the infrared detector is subjected to non-uniformity correction and blind pixel replacement in sequence.
[0016] In some embodiments of the present application, based on the above solution, separating the preprocessed image into a base layer image and a detail layer image by filtering includes:
[0017] Using a gradient domain image guided filter to filter the preprocessed image to obtain the base layer image;
[0018] The detail layer image is obtained by subtracting the base layer image from the preprocessed image.
[0019] In some embodiments of the present application, based on the above-mentioned solution, the linear mapping method based on statistical segmentation adjusts the base layer image, including:
[0020] Performing histogram statistics on the grayscale distribution of the base layer image to obtain a grayscale histogram;
[0021] The low gray threshold g of the front and rear ends of the gray histogram that accounts for a certain percentage of the total pixels is counted respectively. l and high gray threshold g h ;
[0022] The grayscale dynamic range of the base layer image is mapped to grayscale levels between 0 and 255 using a piecewise linear mapping method.
[0023] In some embodiments of the present application, based on the above scheme, in the process of mapping the grayscale dynamic range of the base layer image to grayscale levels between 0 and 255 using a piecewise linear mapping method, the piecewise linear mapping formula used is as follows:
[0024]
[0025] In formula (1), g i is the gray value of the i-th pixel in the base layer image; B i is the gray value of the i-th pixel in the base layer image after gray mapping; g l is the low grayscale threshold calculated based on the base layer histogram; g h is the high grayscale threshold calculated based on the base layer histogram; g min is the minimum grayscale value of the base layer image; g max is the maximum grayscale value of the base layer image; G min is the minimum gray value after gray mapping; G max is the maximum grayscale value after grayscale mapping; G l It is the low gray value point after the preset gray mapping; G h It is a high gray value point after the preset grayscale mapping.
[0026] In some embodiments of the present application, based on the above-mentioned solution, the method of adjusting the detail layer image based on the filtering denoising method, the image dynamic range compression method and the local detail enhancement method includes:
[0027] Using nonlinear cross-shaped five-point median filtering to filter the detail layer image;
[0028] The minimum and maximum grayscale values of the detail layer image after statistical filtering are used, and the grayscale dynamic range of the detail layer image is compressed to between 0 and 255 grayscale levels using a one-stage linear mapping method;
[0029] The detail layer image after grayscale dynamic range compression is re-grayscaled using contrast-constrained adaptive histogram equalization.
[0030] In some embodiments of the present application, based on the above-mentioned solution, the step of re-grayscale mapping the detail layer image after grayscale dynamic range compression by using restricted contrast adaptive histogram equalization includes:
[0031] Divide the detail layer image after grayscale dynamic range compression into a×b grids of the same size;
[0032] Perform local histogram equalization on each image block in the grid;
[0033] Set the histogram platform threshold and evenly trim the part that exceeds the platform threshold;
[0034] The information of multiple blocks in the neighborhood is used to fit the grayscale using bilinear interpolation.
[0035] In some embodiments of the present application, based on the above-mentioned solution, the adjusted base layer image and detail layer image are fused to obtain a composite image and output it, including:
[0036] The weighting coefficient α of the base layer image and the fusion coefficient 1-α of the detail layer image are calculated using the grayscale information of the base layer image;
[0037] Based on the adjusted base layer image and its weighting coefficient α, as well as the adjusted detail layer image and its fusion coefficient 1-α, synthesis processing is performed to obtain a synthesized image and output it.
[0038] In some embodiments of the present application, based on the above-mentioned solution, the weighting coefficient α of the base layer image is calculated by using the grayscale information of the base layer image, including:
[0039] Calculate the grayscale mean of the base layer image
[0040] The weighting coefficient α of the base layer image is calculated using formula (2);
[0041]
[0042] In formula (2), T is a preset parameter and N is the total number of pixels.
[0043] According to a second aspect of an embodiment of the present application, a high dynamic range infrared image detail enhancement device is provided, comprising:
[0044] A preprocessing unit, used for acquiring infrared images with a high dynamic range and performing preprocessing;
[0045] An image separation unit, used for separating the preprocessed image into a base layer image and a detail layer image by filtering;
[0046] A first adjustment unit, configured to adjust the base layer image based on a statistical segmented linear mapping method;
[0047] A second adjustment unit, configured to adjust the detail layer image based on a filtering denoising method, an image dynamic range compression method, and a local detail enhancement method;
[0048] The fusion output unit is used to fuse the adjusted base layer image and detail layer image to obtain a composite image and output it.
[0049] The technical solution of the present application adopts a layered processing method to divide the original image into a base layer image and a detail layer image, and processes the two parts respectively in a targeted manner; the base layer image is subjected to grayscale conversion by a linear mapping method based on statistical segmentation, which improves the visual contrast while compressing the dynamic range; the detail layer image is subjected to filtering denoising, dynamic range adjustment, and histogram equalization with limited contrast, which suppresses noise while enhancing local details; finally, the synthesized output image effectively enhances the local detail information with weak contrast while improving the overall visual effect of the image, making the image more conducive to human visual perception and subsequent processing.
[0050] It should be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present application. BRIEF DESCRIPTION OF THE DRAWINGS
[0051] The drawings herein are incorporated into the specification and constitute a part of the specification, showing embodiments consistent with the present application, and together with the specification, are used to explain the principles of the present application. Obviously, the drawings described below are only some embodiments of the present application, and for ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work. In the drawings:
[0052] Figure 1 A schematic diagram of a process for enhancing details of a high dynamic range infrared image according to an embodiment of the present application is shown;
[0053] Figure 2 A block diagram of a high dynamic range infrared image detail enhancement device according to an embodiment of the present application is shown;
[0054] Figure 3 A block diagram of an electronic device according to an embodiment of the present application is shown;
[0055] Figure 4 A schematic diagram of the structure of a computer system suitable for implementing an electronic device of an embodiment of the present application is shown. DETAILED DESCRIPTION
[0056] Example embodiments will now be described more fully with reference to the accompanying drawings. However, example embodiments can be implemented in a variety of forms and should not be construed as limited to the examples set forth herein; rather, these embodiments are provided so that this application will be more comprehensive and complete and fully convey the concept of the example embodiments to those skilled in the art.
[0057] In addition, described feature, structure or characteristic can be combined in one or more embodiments in any suitable manner. In the following description, many specific details are provided to provide a full understanding of the embodiments of the present application. However, those skilled in the art will appreciate that the technical scheme of the present application can be put into practice without one or more of the specific details, or other methods, components, devices, steps, etc. can be adopted. In other cases, known methods, devices, realizations or operations are not shown or described in detail to avoid blurring the various aspects of the application.
[0058] The block diagrams shown in the accompanying drawings are merely functional entities and do not necessarily correspond to physically independent entities. That is, these functional entities may be implemented in software form, or in one or more hardware modules or integrated circuits, or in different networks and / or processor devices and / or microcontroller devices.
[0059] The flowcharts shown in the accompanying drawings are only exemplary and do not necessarily include all the contents and operations / steps, nor must they be executed in the order described. For example, some operations / steps can be decomposed, and some operations / steps can be combined or partially combined, so the actual execution order may change according to actual conditions.
[0060] In order to make the purpose, technical solution and advantages of the present invention clearer, the technical solution in the embodiment of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiment of the present invention. Obviously, the described embodiment is only a part of the embodiment of the present invention, not all the embodiments. Based on the embodiment of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0061] Some embodiments of the present application will be described in detail below in conjunction with the accompanying drawings. In the absence of conflict, the following embodiments and features in the embodiments may be combined with each other.
[0062] See also Figure 1 , shows a flow chart of a method for detail enhancement of a high dynamic range infrared image according to an embodiment of the present application.
[0063] like Figure 1As shown, a method for enhancing details of a high dynamic range infrared image is presented, which specifically includes steps S100 to S500.
[0064] Step S100, acquiring an infrared image with a high dynamic range and performing preprocessing.
[0065] It can be understood that preprocessing can improve the reliability of later image separation.
[0066] In some feasible embodiments, based on the above solution, the step of acquiring a high dynamic range infrared image and performing preprocessing includes:
[0067] Collect the original image data of infrared detector through high bit width ADC;
[0068] The original image data of the infrared detector is subjected to non-uniformity correction and blind pixel replacement in sequence.
[0069] Specifically, the high bit width ADC may be an ADC with a bit width of 14 bits.
[0070] Continue to refer Figure 1 , step S200, separating the preprocessed image into a base layer image and a detail layer image by filtering.
[0071] It can be understood that separating images by filtering can ensure that the details of the filtered image are smoothed while retaining large-scale edges.
[0072] In some feasible embodiments, based on the above solution, separating the preprocessed image into a base layer image and a detail layer image by filtering includes:
[0073] Using a gradient domain image guided filter to filter the preprocessed image to obtain the base layer image;
[0074] The detail layer image is obtained by subtracting the base layer image from the preprocessed image.
[0075] It should be noted that the detail layer image is obtained by subtracting the image after filtering from the image before filtering. However, if the subtraction operation produces a grayscale value less than zero, a gain needs to be added as a whole.
[0076] Continue to refer Figure 1 , step S300, adjusting the base layer image based on a statistical segmented linear mapping method.
[0077] It can be understood that this step can adjust the dynamic range of the base layer image and enhance its visual contrast.
[0078] In some feasible embodiments, based on the above scheme, the statistical segmentation-based linear mapping method adjusts the base layer image, including:
[0079] Performing histogram statistics on the grayscale distribution of the base layer image to obtain a grayscale histogram;
[0080] The low gray threshold g of the front and rear ends of the gray histogram that accounts for a certain percentage of the total pixels is counted respectively. l and high gray threshold g h ;
[0081] The grayscale dynamic range of the base layer image is mapped to grayscale levels between 0 and 255 using a piecewise linear mapping method.
[0082] It should be noted that in the process of performing histogram statistics on the grayscale distribution of the base layer image, in order to speed up the grayscale histogram statistics and reduce the memory requirements of the algorithm, multiple grayscale levels can be combined into one grayscale level (for example, 4 grayscale levels are combined here, and the memory requirements are reduced to 1 / 4 of the original). In the histogram statistics process, the minimum grayscale value g of the base layer is naturally obtained min and the maximum gray value g max .
[0083] It should be noted that, in this embodiment, the grayscale histogram is used to obtain the segmented grayscale threshold (low grayscale threshold g l , high gray threshold g h ), and then the grayscale histogram is divided into a low grayscale segment, an intermediate segment, and a highlight grayscale segment. Specifically, in this embodiment, the proportion of low grayscale segment pixels to total pixels is set to 0.5%, and the proportion of highlight grayscale segment pixels to total pixels is set to 2%.
[0084] In some feasible embodiments, based on the above scheme, in the process of mapping the grayscale dynamic range of the base layer image to grayscale levels between 0 and 255 using a piecewise linear mapping method, the piecewise linear mapping formula used is as follows:
[0085]
[0086] In formula (1), g i is the gray value of the i-th pixel in the base layer image; B i is the gray value of the i-th pixel in the base layer image after gray mapping; g l is the low grayscale threshold calculated based on the base layer histogram; g h is the high grayscale threshold calculated based on the base layer histogram; g min is the minimum grayscale value of the base layer image; g max is the maximum grayscale value of the base layer image; G min is the minimum gray value after gray mapping; G max is the maximum grayscale value after grayscale mapping; G lIt is the low gray value point after the preset gray mapping; G h It is a high gray value point after the preset grayscale mapping.
[0087] Specifically, in this embodiment, G min Can be directly set to 0, G max Can be directly set to 255, G l Set to 15, G h Set to 255.
[0088] Continue to refer Figure 1 , step S400, adjusting the detail layer image based on a filtering denoising method, an image dynamic range compression method and a local detail enhancement method.
[0089] It can be understood that this step can adjust the dynamic range of the detail layer image, enhance local details with weak contrast, and suppress high-frequency noise.
[0090] In some feasible embodiments, based on the above scheme, the method of adjusting the detail layer image based on the filtering denoising method, the image dynamic range compression method and the local detail enhancement method includes:
[0091] Using nonlinear cross-shaped five-point median filtering to filter the detail layer image;
[0092] The minimum and maximum grayscale values of the detail layer image after statistical filtering are used, and the grayscale dynamic range of the detail layer image is compressed to between 0 and 255 grayscale levels using a one-stage linear mapping method;
[0093] The detail layer image after grayscale dynamic range compression is re-grayscaled using contrast-constrained adaptive histogram equalization.
[0094] It can be understood that the detail layer image is filtered using a cross-shaped five-point median filter to eliminate salt and pepper noise and high-frequency isolated noise.
[0095] It can be understood that the minimum and maximum grayscale values of the detail layer image after statistical filtering are used, and the grayscale dynamic range of the detail layer image is compressed to between 0 and 255 grayscale levels using a one-step linear mapping method. This can significantly reduce the amount of computational overhead of heavy grayscale mapping in subsequent steps while ensuring a small loss of local details.
[0096] It can be understood that the local details can be enhanced by re-grayscale mapping the detail layer image after grayscale dynamic range compression using restricted contrast adaptive histogram equalization.
[0097] In some feasible embodiments, based on the above scheme, the step of re-grayscale mapping the detail layer image after grayscale dynamic range compression by using restricted contrast adaptive histogram equalization includes:
[0098] Divide the detail layer image after grayscale dynamic range compression into a×b grids of the same size;
[0099] Perform local histogram equalization on each image block in the grid;
[0100] Set the histogram platform threshold and evenly trim the part that exceeds the platform threshold;
[0101] The information of multiple blocks in the neighborhood is used to fit the grayscale using bilinear interpolation.
[0102] It can be understood that setting the histogram platform threshold and uniformly trimming the part exceeding the platform threshold can limit the excessive amplification of local contrast; and using the information of multiple blocks in the neighborhood and fitting the grayscale by bilinear interpolation can effectively avoid the occurrence of block effects.
[0103] Continue to refer Figure 1 , step S500, fusing the adjusted base layer image and detail layer image to obtain a composite image and output it.
[0104] It can be understood that, in this embodiment, the final output composite image is an image with a bit width of 8 bits.
[0105] In some feasible embodiments, based on the above solution, the step of fusing the adjusted base layer image and detail layer image to obtain and output a composite image includes:
[0106] The weighting coefficient α of the base layer image and the fusion coefficient 1-α of the detail layer image are calculated using the grayscale information of the base layer image;
[0107] Based on the adjusted base layer image and its weighting coefficient α, as well as the adjusted detail layer image and its fusion coefficient 1-α, synthesis processing is performed to obtain a synthesized image and output it.
[0108] It should be noted that the specific process of the synthesis processing is that the adjusted base layer image and detail layer image are multiplied by their weighting coefficients and fusion coefficients respectively and then added to obtain the synthesized image.
[0109] Exemplarily, to facilitate understanding of the synthesis process, a mathematical formula is used below to illustrate: 9(adjusted base layer image×α)+(adjusted detail layer image×(1-α))=synthesized image.
[0110] In some feasible embodiments, based on the above solution, the weighting coefficient α of the base layer image is calculated by using the grayscale information of the base layer image, including:
[0111] Calculate the grayscale mean of the base layer image
[0112] The weighting coefficient α of the base layer image is calculated using formula (2);
[0113]
[0114] In formula (2), T is a preset parameter and N is the total number of pixels.
[0115] It can be understood that α is limited to between 0.3 and 0.7, when α<0.3, α=0.3, and when α>0.7, α=0.7.
[0116] In summary, the image obtained after processing by the method provided by the technical solution of the present application improves the overall visual effect of the image while effectively enhancing the local detail information of weak contrast, making the image more conducive to human visual perception and subsequent processing.
[0117] The following describes an apparatus embodiment of the present application, which can be used to perform a high dynamic range infrared image detail enhancement method in the above embodiment of the present application. For details not disclosed in the apparatus embodiment of the present application, please refer to the above method embodiment of the present application.
[0118] Reference Figure 2 As shown, a high dynamic range infrared image detail enhancement device 200 according to an embodiment of the present application includes: a preprocessing unit 201, an image separation unit 202, a first adjustment unit 203, a second adjustment unit 204 and a fusion output unit 205.
[0119] Wherein, the preprocessing unit 201 is used to obtain an infrared image with a high dynamic range and perform preprocessing;
[0120] An image separation unit 202 is used to separate the preprocessed image into a base layer image and a detail layer image by filtering;
[0121] A first adjustment unit 203, configured to adjust the base layer image based on a statistical segmented linear mapping method;
[0122] A second adjustment unit 204, configured to adjust the detail layer image based on a filtering denoising method, an image dynamic range compression method, and a local detail enhancement method;
[0123] The fusion output unit 205 is used to fuse the adjusted base layer image and detail layer image to obtain a composite image and output it.
[0124] like Figure 3 As shown, an embodiment of the present application also provides an electronic device 300, including a memory 310, a processor 320, and a computer program 311 stored in the memory 310 and executable on the processor, and when the processor 320 executes the computer program 311, the steps of any one of the above-mentioned high dynamic range infrared image detail enhancement methods are implemented.
[0125] Since the electronic device introduced in this embodiment is a device used to implement a high dynamic range infrared image detail enhancement device in the embodiment of the present application, based on the method introduced in the embodiment of the present application, technical personnel in this field can understand the specific implementation mode of the electronic device of this embodiment and its various variations. Therefore, how the electronic device implements the method in the embodiment of the present application is not introduced in detail here. As long as the equipment used by technical personnel in this field to implement the method in the embodiment of the present application is within the scope of protection of this application.
[0126] During the specific implementation process, when the computer program 311 is executed by a processor, any implementation method in the embodiments corresponding to the first aspect can be implemented.
[0127] Figure 4 A schematic diagram of the structure of a computer system suitable for implementing an electronic device of an embodiment of the present application is shown.
[0128] It should be noted that Figure 4 The computer system 400 of the electronic device shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present application.
[0129] like Figure 4 As shown, the computer system 400 includes a central processing unit (CPU) 401, which can perform various appropriate actions and processes according to the program stored in the read-only memory (ROM) 402 or the program loaded from the storage part 408 to the random access memory (RAM) 403, such as executing the method described in the above embodiment. In the RAM 403, various programs and data required for system operation are also stored. The CPU 401, ROM 402 and RAM 403 are connected to each other through a bus 404. An input / output (I / O) interface 405 is also connected to the bus 404.
[0130] The following components are connected to the I / O interface 405: an input section 406 including a keyboard, a mouse, etc.; an output section 407 including a cathode ray tube (CRT), a liquid crystal display (LCD), etc., and a speaker, etc.; a storage section 408 including a hard disk, etc.; and a communication section 409 including a network interface card such as a LAN (Local Area Network) card, a modem, etc. The communication section 409 performs communication processing via a network such as the Internet. A drive 410 is also connected to the I / O interface 405 as needed. A removable medium 411, such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, etc., is installed on the drive 410 as needed so that a computer program read therefrom is installed into the storage section 408 as needed.
[0131] In particular, according to an embodiment of the present application, the process described above with reference to the flowchart can be implemented as a computer software program. For example, an embodiment of the present application includes a computer program product, which includes a computer program carried on a computer-readable medium, and the computer program includes a program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from a network through a communication section 409, and / or installed from a removable medium 411. When the computer program is executed by a central processing unit (CPU) 401, various functions defined in the system of the present application are executed.
[0132] It should be noted that the computer-readable medium shown in the embodiment of the present application may be a computer-readable signal medium or a computer-readable storage medium or any combination of the above two. The computer-readable storage medium may be, for example, - but not limited to - an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: 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), a 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 of the above. In the present application, a computer-readable storage medium may be any tangible medium containing or storing a program, which may be used by an instruction execution system, device or device or used in combination with it. In the present application, a computer-readable signal medium may include a data signal propagated in a baseband or as part of a carrier wave, wherein a computer-readable program code is carried. 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 computer-readable storage media, which may send, propagate, or transmit programs for use by or in conjunction with an instruction execution system, apparatus, or device. The program code contained on the computer-readable medium may be transmitted using any appropriate medium, including but not limited to: wireless, wired, etc., or any suitable combination of the above.
[0133] The flowchart and block diagram in the accompanying drawings illustrate the possible architecture, functions and operations of the system, method and computer program product according to various embodiments of the present application. Wherein, each box in the flowchart or block diagram can represent a module, a program segment, or a part of the code, and the above-mentioned module, 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 alternative implementations, the functions marked in the box can also occur in a different order from the order marked in the accompanying drawings. For example, two 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 box in the block diagram or flowchart, and the combination of boxes in the block diagram or flowchart 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.
[0134] The units involved in the embodiments described in this application may be implemented by software or hardware, and the units described may also be set in a processor. The names of these units do not, in some cases, constitute limitations on the units themselves.
[0135] As another aspect, the present application further provides a computer program product or a computer program, the computer program product or the computer program including computer instructions, the computer instructions being stored in a computer-readable storage medium. A processor of a computer device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the computer device executes a high dynamic range infrared image detail enhancement method described in the above embodiment.
[0136] As another aspect, the present application also provides a computer-readable medium, which may be included in the electronic device described in the above embodiment; or may exist independently without being assembled into the electronic device. The above computer-readable medium carries one or more programs, and when the above one or more programs are executed by an electronic device, the electronic device implements a high dynamic range infrared image detail enhancement method described in the above embodiment.
[0137] It should be noted that, although several modules or units of the equipment for action execution are mentioned in the above detailed description, this division is not mandatory. In fact, according to the embodiments of the present application, the features and functions of two or more modules or units described above can be embodied in one module or unit. On the contrary, the features and functions of one module or unit described above can be further divided into being embodied by multiple modules or units.
[0138] Through the description of the above implementation methods, it is easy for those skilled in the art to understand that the example implementation methods described here can be implemented by software or by combining software with necessary hardware. Therefore, the technical solution according to the implementation methods of the present application can be embodied in the form of a software product, which can be stored in a non-volatile storage medium (which can be a CD-ROM, a USB flash drive, a mobile hard disk, etc.) or on a network, and includes several instructions to enable a computing device (which can be a personal computer, a server, a touch terminal, or a network device, etc.) to execute the method according to the implementation methods of the present application.
[0139] Those skilled in the art will readily appreciate other embodiments of the present application after considering the specification and practicing the embodiments disclosed herein. The present application is intended to cover any variations, uses or adaptations of the present application, which follow the general principles of the present application and include common knowledge or customary techniques in the art that are not disclosed in the present application. It should be understood that the present application is not limited to the precise structures described above and shown in the accompanying drawings, and various modifications and changes can be made without departing from the scope thereof. The scope of the present application is limited only by the appended claims.
Claims
1. A method for enhancing details of high dynamic range infrared images, characterized in that: include: Acquire high dynamic range infrared images and perform preprocessing; Separating the preprocessed image into a base layer image and a detail layer image by filtering; Adjusting the base layer image based on a statistical segmented linear mapping method; Adjusting the detail layer image based on a filtering denoising method, an image dynamic range compression method and a local detail enhancement method; The adjusted base layer image and detail layer image are fused to obtain a composite image and output it.
2. The method according to claim 1, characterized in that The step of acquiring an infrared image with a high dynamic range and performing preprocessing comprises: Collect the original image data of infrared detector through high bit width ADC; The original image data of the infrared detector is subjected to non-uniformity correction and blind pixel replacement in sequence.
3. The method according to claim 1, characterized in that The method of separating the preprocessed image into a base layer image and a detail layer image by filtering includes: Using a gradient domain image guided filter to filter the preprocessed image to obtain the base layer image; The detail layer image is obtained by subtracting the base layer image from the preprocessed image.
4. The method according to claim 1, characterized in that: The linear mapping method based on statistical segmentation adjusts the base layer image, including: Performing histogram statistics on the grayscale distribution of the base layer image to obtain a grayscale histogram; The low gray threshold g of the front and rear ends of the gray histogram that accounts for a certain percentage of the total pixels is counted respectively. l and high gray threshold g h ; The grayscale dynamic range of the base layer image is mapped to grayscale levels between 0 and 255 using a piecewise linear mapping method.
5. The method according to claim 4, characterized in that In the process of mapping the grayscale dynamic range of the base layer image to grayscale levels between 0 and 255 using a piecewise linear mapping method, the piecewise linear mapping formula used is as follows: In formula (1), g i is the gray value of the i-th pixel in the base layer image; B i is the gray value of the i-th pixel in the base layer image after gray mapping; g l is the low grayscale threshold calculated based on the base layer histogram; g h is the high grayscale threshold calculated based on the base layer histogram; g min is the minimum grayscale value of the base layer image; g max is the maximum grayscale value of the base layer image; G min is the minimum gray value after gray mapping; G max is the maximum grayscale value after grayscale mapping; G l It is the low gray value point after the preset gray mapping; G h It is a high gray value point after the preset grayscale mapping.
6. The method according to claim 1, characterized in that The method of adjusting the detail layer image based on the filtering denoising method, the image dynamic range compression method and the local detail enhancement method includes: Using nonlinear cross-shaped five-point median filtering to filter the detail layer image; The minimum and maximum grayscale values of the detail layer image after statistical filtering are used, and the grayscale dynamic range of the detail layer image is compressed to between 0 and 255 grayscale levels using a one-stage linear mapping method; The detail layer image after grayscale dynamic range compression is re-grayscaled using contrast-constrained adaptive histogram equalization.
7. The method according to claim 6, characterized in that The step of performing re-grayscale mapping on the detail layer image after grayscale dynamic range compression by using the restricted contrast adaptive histogram equalization comprises: Divide the detail layer image after grayscale dynamic range compression into a×b grids of the same size; Perform local histogram equalization on each image block in the grid; Set the histogram platform threshold and evenly trim the part that exceeds the platform threshold; The information of multiple blocks in the neighborhood is used to fit the grayscale using bilinear interpolation.
8. The method according to claim 5, characterized in that The step of fusing the adjusted base layer image and detail layer image to obtain and output a composite image comprises: The weighting coefficient α of the base layer image and the fusion coefficient 1-α of the detail layer image are calculated using the grayscale information of the base layer image; Based on the adjusted base layer image and its weighting coefficient α, as well as the adjusted detail layer image and its fusion coefficient 1-α, synthesis processing is performed to obtain a synthesized image and output it.
9. The method according to claim 8, characterized in that The step of calculating the weighting coefficient α of the base layer image by using the grayscale information of the base layer image comprises: Calculate the grayscale mean of the base layer image The weighting coefficient α of the base layer image is calculated using formula (2); In formula (2), T is a preset parameter and N is the total number of pixels.
10. A high dynamic range infrared image detail enhancement device, characterized in that: include: A preprocessing unit, used for acquiring infrared images with a high dynamic range and performing preprocessing; An image separation unit, used for separating the preprocessed image into a base layer image and a detail layer image by filtering; A first adjustment unit, configured to adjust the base layer image based on a statistical segmented linear mapping method; A second adjustment unit, configured to adjust the detail layer image based on a filtering denoising method, an image dynamic range compression method, and a local detail enhancement method; The fusion output unit is used to fuse the adjusted base layer image and detail layer image to obtain a composite image and output it.
Citation Information
Patent Citations
Infrared image detail enhancement method based on hierarchical compression
CN112215785A
Image enhancement method and device, electronic equipment and medium
CN112348763A
Infrared image dynamic range compression method and system
CN113496531A
Infrared image enhancement method based on weighted guide filtering
CN114092353A
Infrared image dynamic compression and detail enhancement method, storage medium and device
CN114494042A
Cited By
Image fusion method and device and related equipment
CN119359569A
Intelligent focus puncture positioning method and device for ultrasonic image of remote fibular ligament
CN119970169A
Infrared image dynamic range compression method based on histogram detail compensation
CN120147440A
An infrared image dynamic range compression method based on histogram detail compensation
CN120147440B
Infrared image enhancement method and device, equipment, storage medium and product
CN122335637A
