Infrared image enhancement method and system based on image pyramid

Through an infrared image enhancement method based on image pyramid, combined with Gaussian blur and Laplacian pyramid algorithm, the contrast and detail information of high dynamic range infrared images are improved, and the poor contrast and detail enhancement effects in the existing technology are solved. problem, the display speed is improved.

CN118447212BActive Publication Date: 2024-10-22GUOKE TIANCHENG BEIJING TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410895145.6
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-07-05
Publication Date
2024-10-22
Estimated Expiration
2044-07-05

AI Technical Summary

Technical Problem

The existing technology is difficult to effectively improve the contrast and detail information of high dynamic range infrared images, and the contrast and detail enhancement effects are not good, and the calculation amount is large, which affects the display speed.

Method used

The infrared image enhancement method based on the image pyramid is used to collect original images in real time through the image acquisition unit. The first enhancement unit performs regional stretching enhancement and seamless splicing fusion, and the second enhancement unit performs grayscale decomposition and multi-exposure fusion enhancement. The output unit performs multi-exposure fusion processing, combines Gaussian blur and Laplacian pyramid algorithms, and calculates pixel fusion weights to improve image quality.

Benefits of technology

It effectively improves the contrast of infrared images, retains detailed information, reduces the amount of calculation, and increases the display speed.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118447212B_ABST
    Figure CN118447212B_ABST
Patent Text Reader

Abstract

The infrared image enhancement method and system based on the image pyramid include: an image acquisition unit performs image acquisition on the target range in real time to obtain an original image; a first enhancement unit performs regional stretching enhancement on the original image, obtains the stretched enhanced regional image, seamlessly splices and fuses the stretched enhanced regional image, and outputs a first enhanced image; a second enhancement unit obtains the grayscale decomposition image sequence of the original image, performs multi-exposure fusion enhancement on the original image according to the grayscale decomposition image sequence, and outputs a second enhanced image; an output unit performs multi-exposure fusion enhancement on the first enhanced image and the second enhanced image, obtains a fusion result image, and outputs the fusion result image. The present invention solves the problems of low contrast and detail enhancement of infrared images, improves the overall contrast of high dynamic range infrared images, and retains the details of the image; performs multi-exposure fusion enhancement on image classification, and improves the display speed.
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 enhancement technology, and more specifically, to an infrared image enhancement method and system based on an image pyramid. Background Art

[0002] With the improvement of image signal processor processing power, various complex algorithms can be run in real time in infrared imaging systems. High-performance infrared imaging systems generally use 14-bit or higher A / D to sample and quantize the signal output by the infrared focal plane detector, thereby obtaining high dynamic range (HDR) infrared image data. However, general display devices can only display 8-bit grayscale range. Therefore, while compressing the dynamic range of high dynamic infrared images, obtaining a base layer with good inter-regional contrast and a detail layer with rich texture information is the key to improving the quality of infrared images.

[0003] Therefore, the problems existing in the prior art need to be further improved and developed. Summary of the invention

[0004] (I) Purpose of the invention: In order to solve the problems existing in the above-mentioned prior art, the purpose of the present invention is to provide an infrared image enhancement method and system based on image pyramid.

[0005] (II) Technical solution: In order to solve the above technical problems, this technical solution provides an infrared image enhancement method based on image pyramid, comprising the following steps:

[0006] Step 1: The image acquisition unit acquires images of the target range in real time to obtain an original image;

[0007] Step 2: The first enhancement unit performs regional stretching enhancement on the original image, obtains the images of the stretched enhanced regions, seamlessly splices and fuses the images of the stretched enhanced regions, and outputs a first enhanced image;

[0008] Step 3: After the second enhancement unit obtains the grayscale decomposition image sequence of the original image, it performs multi-exposure fusion enhancement on the original image according to the grayscale decomposition image sequence and outputs a second enhanced image;

[0009] Step 4: The output unit performs multi-exposure fusion enhancement on the first enhanced image and the second enhanced image, obtains a fusion result image, and then outputs the fusion result image.

[0010] Wherein, the step 2 specifically includes:

[0011] Step 21, dividing the original image into regions to obtain a plurality of region images;

[0012] Step 22, performing histogram stretching enhancement on the multiple partition images respectively, and performing normalization processing, to obtain multiple partition enhanced images;

[0013] Step 23: seamlessly merge the multiple partition enhanced images corresponding to the same original image to obtain a first enhanced image.

[0014] Among them, when performing the seamless fusion, first, multiple partitioned enhanced images corresponding to the same original image are divided into two left and right images or two upper and lower images; secondly, different stitching masks M are set, and the Gaussian blur algorithm is used to blur and normalize the stitching gaps in the mask to obtain the target mask; then, the corresponding target mask is linearly fused with the partitioned enhanced image to be stitched; after gradually stitching and fusing different regions, the output image after regional enhancement can be obtained: the first enhanced image.

[0015] Wherein, the step three specifically includes the following steps:

[0016] Step 31, obtaining a grayscale decomposition image sequence of the original image; specifically, first, traversing the original image to obtain an image range, and obtaining a histogram of the original image; then, truncating the original image into several parts according to different grayscale levels in the histogram, that is, decomposing it into several frames of images, and obtaining a grayscale decomposition image sequence G; finally, normalizing each image in the grayscale decomposition image sequence G to an 8-bit range;

[0017] Step 32, calculating the pixel fusion weight of the grayscale decomposition image sequence;

[0018] Step 33, after the grayscale decomposition image sequence is fused at the pixel level according to the pixel fusion weight, a multi-scale smoothing process is performed to obtain a second enhanced image; specifically, the following steps include: calculating the proportion of each pixel point during fusion according to the pixel fusion weight to obtain the fusion weight; obtaining the weight image sequence corresponding to the grayscale decomposition image sequence according to the fusion weight; performing hierarchical smoothing process on the weight image sequence W corresponding to the grayscale decomposition image sequence using a Gaussian pyramid to obtain a corresponding pyramid image sequence; hierarchically extracting image details of the grayscale decomposition image sequence using a Laplace pyramid to obtain a corresponding Laplace pyramid image sequence; and reconstructing and fusion, i.e., performing linear fusion iterations on the weight image sequence and the Laplace pyramid image sequence to obtain a second enhanced image.

[0019] Wherein, in the step 32, the pixel fusion weight includes a contrast weight and an exposure weight.

[0020] Contrast weight setting: Use the Laplacian operator to extract the gradient information of the image as the image contrast weight. The smaller the gradient information, the smaller the proportion of the pixel in the fusion. On the contrary, the larger the gradient information, the larger the proportion of the pixel. For the k-th image IK in the input grayscale decomposition image sequence G, the image contrast is calculated using the following formula 3:

[0021] (3)

[0022] Among them, C(IK) represents the contrast weight of the K-th frame image, IK represents the K-th frame image in the grayscale decomposition image sequence, Represents the gradient information of the K-th frame image, Represents the absolute value of the gradient information of the K-th frame image;

[0023] Exposure weight setting: The calculation of exposure weight is shown in formula 4.

[0024] (4)

[0025] Where E is the exposure weight, k,i,j represents the kth frame image coordinates (i, j), Set to 0.2, Setting it to 0.5 or 0.6 means the brightness is close to the middle value.

[0026] Among them, the multi-exposure fusion enhancement in step four is the same as the multi-exposure fusion enhancement step in step three. In step four, the first enhanced image and the second enhanced image are used as the grayscale decomposition image sequence G. At this time, the fusion result image output after multi-exposure fusion enhancement is the fusion result image.

[0027] Wherein, in the step 1, when the image acquisition unit acquires images of the target range, an acquisition image of the target range is obtained, and after the image acquisition unit classifies the acquisition image according to the depth of field length, an original image set with different depths of field length is obtained; an acquisition image corresponding to the depth of field length of the original image set is placed in each original image set, and the acquisition image is the original image corresponding to the original image set;

[0028] When the acquired image is an image acquisition of different target ranges, the acquired image is a single image. After the image acquisition unit obtains the depth of field length of each image, the acquired image is allocated to the original image set of the corresponding depth of field length according to the depth of field of the acquired image; when the acquired image is an image acquisition of the same target range, the acquired image is an acquired image of continuous frames. The image acquisition unit identifies the target object in the acquired image of continuous frames, allocates the acquired image according to the depth of field length of the target object in the acquired image, and allocates the acquired image to the original image set corresponding to the depth of field length of the target object.

[0029] The audio receiving unit receives the audio of the image acquisition unit when acquiring images, obtains the acquired audio corresponding to the acquired images, and marks the sound source direction of the changing object in the acquired audio on the corresponding acquired images; the acquisition unit classifies each acquired image according to the sound source direction, and obtains an original image set with different sound source directions; each original image set places an acquired image corresponding to the sound source direction of the original image set, and the acquired image is the original image corresponding to the original image set;

[0030] After the image acquisition unit obtains the sound source direction of each acquired image, the acquired image is allocated to an original image set corresponding to the sound source direction according to the sound source direction of the acquired image.

[0031] Among them, in step three and step four, the original image is enhanced according to the original image according to the original image set. Specifically, when executing step three and / or step four on the original image in the same original image set, the grayscale decomposition images in the grayscale decomposition image sequence of the original image are arranged according to the first specified order, and when the pixel fusion weight is calculated for the grayscale decomposition image sequence of the first original image in the original image set, the calculated pixel fusion weight is arranged according to the first specified order, that is, the grayscale decomposition image in the grayscale decomposition image sequence corresponds to the position of the pixel fusion weight; when the second enhancement unit and / or the output unit performs multi-exposure fusion enhancement on other original images in the same original image set, multi-exposure fusion enhancement is performed after obtaining the corresponding pixel fusion weight according to the arrangement order of the grayscale decomposition images.

[0032] The infrared image enhancement system based on image pyramid includes an image acquisition unit, a first enhancement unit, a second enhancement unit and an output unit.

[0033] The image acquisition unit acquires images of the target range in real time to obtain an original image;

[0034] The first enhancement unit performs region-by-region stretching enhancement on the original image, obtains images of the stretch-enhanced regions, and then seamlessly splices and fuses the images of the stretch-enhanced regions to output a first enhanced image;

[0035] After the second enhancement unit obtains the grayscale decomposition image sequence of the original image, it performs multi-exposure fusion enhancement on the original image according to the grayscale decomposition image sequence and outputs a second enhanced image;

[0036] The output unit performs multi-exposure fusion enhancement on the first enhanced image and the second enhanced image to obtain a fusion result image, and then outputs the fusion result image.

[0037] (III) Beneficial effects: The present invention provides an infrared image enhancement method and system based on an image pyramid, which solves the problems of low contrast and detail enhancement of infrared images, and effectively improves the overall contrast of high dynamic range infrared images, retaining the image detail information. In addition, by performing multi-exposure fusion enhancement on image classification, the amount of calculation is greatly reduced and the display speed is improved. BRIEF DESCRIPTION OF THE DRAWINGS

[0038] Figure 1 It is a schematic diagram of the process of the infrared image enhancement method based on the image pyramid of the present invention;

[0039] Figure 2 is an input image using the present invention;

[0040] Figure 3 is the output image using the present invention. DETAILED DESCRIPTION

[0041] The present invention is further described in detail below in conjunction with preferred embodiments. More details are elaborated in the following description to facilitate a full understanding of the present invention. However, the present invention can obviously be implemented in a variety of other ways different from the description. Those skilled in the art can make similar generalizations and deductions based on actual application situations without violating the connotation of the present invention. Therefore, the protection scope of the present invention should not be limited by the content of this specific embodiment.

[0042] The accompanying drawings are schematic diagrams of embodiments of the present invention. It should be noted that the drawings are only examples and are not drawn to scale, and should not be used to limit the actual protection scope of the present invention.

[0043] The infrared image enhancement system based on image pyramid comprises an image acquisition unit, a first enhancement unit, a second enhancement unit and an output unit.

[0044] The image acquisition unit acquires images of the target range in real time to obtain an original image. The first enhancement unit performs regional stretching enhancement on the original image, obtains the stretched enhanced regional image, seamlessly splices and fuses the stretched enhanced regional image, and outputs a first enhanced image. After the second enhancement unit obtains the grayscale decomposition image sequence of the original image, it performs multi-exposure fusion enhancement on the original image according to the grayscale decomposition image sequence, and outputs a second enhanced image. The output unit performs multi-exposure fusion enhancement on the first enhanced image and the second enhanced image, obtains a fusion result image, and outputs the fusion result image.

[0045] An infrared image enhancement method based on image pyramid is applied to an infrared image enhancement system based on image pyramid, such as Figure 1 As shown, the specific steps include:

[0046] Step 1: The image acquisition unit acquires images of the target range in real time to obtain an original image;

[0047] Step 2: The first enhancement unit performs regional stretching enhancement on the original image, obtains the images of the stretched enhanced regions, seamlessly splices and fuses the images of the stretched enhanced regions, and outputs a first enhanced image;

[0048] Step 3: After the second enhancement unit obtains the grayscale decomposition image sequence of the original image, it performs multi-exposure fusion enhancement on the original image according to the grayscale decomposition image sequence and outputs a second enhanced image;

[0049] Step 4: The output unit performs multi-exposure fusion enhancement on the first enhanced image and the second enhanced image, obtains a fusion result image, and then outputs the fusion result image.

[0050] The step 2 and the step 3 may be performed sequentially, in a reversed order, or simultaneously. It should be noted that the step 4 needs to be performed after the step 2 and the step 3 are completed.

[0051] The original image may be an infrared image with a high dynamic range (HDR), which is a multi-frame or single-frame infrared image continuously shot by the image acquisition unit.

[0052] The image acquisition unit is an infrared camera or an infrared thermal imager, which acquires the required images. The image acquisition unit can obtain continuous multiple infrared images with different depths of field by adjusting the distance from the captured image, that is, obtain continuous multiple original images with different depths of field.

[0053] The step 2 specifically includes:

[0054] Step 21, dividing the original image into regions to obtain a plurality of region images;

[0055] Step 22, performing histogram stretching enhancement on the multiple partition images respectively, and performing normalization processing, to obtain multiple partition enhanced images;

[0056] Step 23: seamlessly merge the multiple partition enhanced images corresponding to the same original image to obtain a first enhanced image.

[0057] The step 21 may divide the original image into 4 regions of 2*2, or 16 regions of 4*4, or 64 regions of 8*8. Here, the original image is divided into 16 regions of 4*4.

[0058] In step 22, the histogram stretching enhancement is to widen the grayscale values ​​with a large number of pixels in the partition image, that is, the grayscale values ​​that play a major role in the picture, and merge the grayscale values ​​with a small number of pixels, that is, the grayscale values ​​that do not play a major role in the picture. The contrast of the partition image is increased by the histogram stretching enhancement, and the partition image is made clear, so as to achieve the purpose of partition image enhancement. Normalization processing is to convert the image after histogram stretching enhancement into a partition enhanced image with a standard form, which can be linear normalization or nonlinear normalization, and there is no specific limitation here.

[0059] In step 23, after the 16 partitioned images are stretched and enhanced based on the histogram, the enhanced 16 partitioned images need to be seamlessly fused. When performing the seamless fusion, first, the multiple partitioned enhanced images corresponding to the same original image are divided into two images, left (L) and right (R) or two images, upper (U) and lower (B). Secondly, different stitching masks M are set, and the Gaussian blur algorithm is used to blur and normalize the stitching gaps in the mask to obtain the target mask. Then, the corresponding target mask is linearly fused with the partitioned enhanced image to be stitched according to formulas (1) and (2). After the 16 regions are stitched and fused step by step, the output image after regional enhancement can be obtained: the first enhanced image.

[0060] Left and right splicing processing: (1)

[0061] Up and down splicing template: (2)

[0062] in, is the output sub-image.

[0063] The step three is specifically to decompose the original image into different grayscale levels according to the image histogram, decompose it into multiple images of different grayscale segments, stretch the images of different grayscale segments to 8 bits, obtain a low dynamic range fused image sequence of different exposures, and then use a multi-exposure fusion algorithm to fuse the low dynamic range fused image sequence, so as to achieve the purpose of image enhancement. Preferably, the original image here uses an infrared image with a high dynamic range HDR.

[0064] Specifically, the step three includes the following steps:

[0065] Step 31, obtaining a grayscale decomposition image sequence of the original image;

[0066] Step 32, calculating the pixel fusion weight of the grayscale decomposition image sequence;

[0067] Step 33, after the grayscale decomposition image sequence is fused at the pixel level according to the pixel fusion weight, a multi-scale smoothing process is performed to obtain a second enhanced image. Specifically, the proportion of each pixel point during fusion is calculated according to the pixel fusion weight to obtain the fusion weight; the weight image sequence corresponding to the grayscale decomposition image sequence is obtained according to the fusion weight; the weight image sequence (W) corresponding to the grayscale decomposition image sequence is hierarchically smoothed using a Gaussian pyramid to obtain a corresponding pyramid image sequence; the image details of the grayscale decomposition image sequence are hierarchically extracted using a Laplace pyramid to obtain a corresponding Laplace pyramid image sequence; reconstruction fusion is to perform linear fusion iterations on the weight image sequence and the Laplace pyramid image sequence to obtain the second enhanced image.

[0068] In step 31, each frame of high dynamic range HDR infrared image is preferably decomposed into a 5-frame multi-exposure image sequence. The step 31 specifically includes, first, traversing the original image to obtain the image range and obtain the histogram of the original image; then, truncating the original image into several parts according to different gray levels in the histogram, that is, decomposing it into several frames of images, and obtaining a grayscale decomposition image sequence G; finally, normalizing each image in the grayscale decomposition image sequence G to an 8-bit range.

[0069] In step 32, since the original image is an infrared image, the pixel fusion weight includes a contrast weight and an exposure weight.

[0070] Contrast weight settings:

[0071] In overexposed images or severely underexposed areas, the boundary value of image brightness is generally 255 or 0. In overexposed images or severely underexposed areas, the gradient information is almost 0, which is manifested as a lack of detail information or brightness information. Overexposed images or severely underexposed areas are areas that need to be discarded during the fusion process. Therefore, the Laplace operator is used to extract the gradient information of the image as the image contrast weight. The smaller the gradient information, the smaller the proportion of the pixel in the fusion. On the contrary, the larger the gradient information, the larger the proportion of the pixel. For the k-th image IK in the input grayscale decomposition image sequence G, the following formula (3) is used to calculate the image contrast:

[0072] (3)

[0073] Among them, C(IK) represents the contrast weight of the K-th frame image, IK represents the K-th frame image in the grayscale decomposition image sequence, Represents the gradient information of the K-th frame image, Represents the absolute value of the gradient information of the Kth frame image.

[0074] Exposure weight setting:

[0075] Before setting the exposure weight, the image brightness information is converted to the range of (0,1). When the image brightness is close to the middle value, the image exposure is better and the detail information is richer. Therefore, in the fusion process, the focus is on retaining the exposure with brightness information of (0.5, 0.6). The calculation of the exposure weight is shown in formula (4).

[0076] (4)

[0077] Where E is the exposure weight, k,i,j represents the kth frame image coordinates (i, j), Set to 0.2, Setting it to 0.5 or 0.6 means the brightness is close to the middle value.

[0078] In step 33, the fusion weight is obtained as follows:

[0079] The weight of each pixel during fusion is obtained according to the contrast weight and exposure weight of the pixel fusion weight. That is, the contrast and the exposure are combined according to the following formula (5) to obtain the fusion weight of the pixel:

[0080] (5)

[0081] Among them, W is the fusion weight, k,i,j is the k-frame image coordinate (i, j), ac is a specified parameter of contrast C, ac=1; ae is a specified parameter of exposure E, ae=1.

[0082] In order to prevent the fusion of multiple images and the occurrence of too high or too low values, the weight information W is normalized according to formula (6) to obtain the weight image sequence corresponding to the grayscale decomposition image sequence:

[0083] (6)

[0084] Here, μ refers to the number of images in the weighted image sequence.

[0085] In step 33, the Gaussian pyramid is used to obtain a pyramid image sequence, specifically,

[0086] The Gaussian pyramid decomposes each image of the weighted image sequence participating in the fusion into a multi-scale image sequence with different resolutions, with low-resolution images at the top as the pyramid top and high-resolution images at the bottom as the pyramid bottom. From bottom to top, the image size of the pyramid decreases step by step, and the width and height of the lower image are both twice that of the upper image, that is, the size of the lower image is 4 times that of the upper image, and the number of layers is set to N.

[0087] Let the Kth original weight image be As the bottom layer of the pyramid, the Kth weight image is also the original weight image. The method of constructing the L-layer image of the Gaussian pyramid is as follows: Assume that the L-layer image is ,L-1 layer image ,The L-1 layer image is located below the L layer image. First, the L-1 layer image is convolved with the Gaussian kernel (5*5). After the convolution operation, the convolution result (i.e., the kth weight image after convolution) is downsampled by alternate rows and columns. The specific formula (7) is as follows:

[0088] (7)

[0089] Where N is the number of layers of the Gaussian pyramid; is the number of image columns in the pyramid layer L; is the number of image rows in the pyramid layer L; It is a 5*5 window function.

[0090] The expression of is,

[0091] ,

[0092] After the convolution operation of formula (5) and then downsampling of alternate rows and columns, the weight image can be decomposed into Pyramid image sequence.

[0093] In step 33, the Laplacian pyramid is used to obtain a Laplacian pyramid image sequence, specifically,

[0094] The grayscale decomposition image sequence G is first subjected to Gaussian smoothing (8) and downsampling (9) according to the method of using a Gaussian pyramid to obtain a pyramid image, thereby obtaining a Gaussian pyramid of the grayscale decomposition image sequence G. The specific formula is:

[0095] (8)

[0096] (9)

[0097] In the process of computing the Gaussian pyramid of the grayscale decomposition image sequence G, the image will lose some high-frequency detail information after convolution and downsampling operations. In order to describe this high-frequency information, the Laplacian pyramid is used to extract image details in layers.

[0098] The Gaussian pyramid of the grayscale decomposition image sequence G is interpolated and upsampled (10), the interpolation value is 0, and then Gaussian smoothing (11) is performed to obtain the predicted image sequence. The specific formula is as follows:

[0099] (10)

[0100] (11)

[0101] The predicted image in the predicted image sequence is differentiated from the original image in the grayscale decomposition image sequence G (12), and the Laplacian pyramid image sequence corresponding to the grayscale decomposition image sequence is obtained ( ), the calculation formula is,

[0102] (12)

[0103] In step 33, the reconstruction fusion is specifically as follows:

[0104] Reconstruction fusion is to perform linear fusion iteration on the weighted image sequence and the Laplacian pyramid image sequence to finally generate an image with rich details and good exposure, namely the second enhanced image. The specific formula is:

[0105] (13)

[0106] (14)

[0107] According to formulas (13) and (14), from the top layer of the Laplace pyramid ( ) interpolation, amplification, smoothing, and iteration are performed layer by layer, and finally multiple images in the grayscale decomposition image sequence G are reconstructed and fused into one image through the Laplacian pyramid, and finally the fusion result image is output: the second enhanced image.

[0108] The multi-exposure fusion enhancement in step 4 is the same as the multi-exposure fusion enhancement step in step 3. It should be noted that in step 4, the first enhanced image and the second enhanced image are used as the grayscale decomposition image sequence G. At this time, the fusion result image output after multi-exposure fusion enhancement is the fusion result image.

[0109] In the continuous multiple frames of original images, the depth of field of the original image may also be determined according to the depth of field of the target object.

[0110] In the step 1, when the image acquisition unit acquires images of the target range, an acquired image of the target range is obtained. After the image acquisition unit classifies the acquired images according to the depth of field length, an original image set with different depths of field lengths is obtained. An acquired image corresponding to the depth of field length of the original image set is placed in each original image set, and the acquired image is the original image corresponding to the original image set.

[0111] The captured images may be images captured from different target ranges, in which case the captured images are single images, and after the image capture unit obtains the depth of field length of each image, the captured images are allocated to the original image set corresponding to the depth of field length according to the depth of field of the captured images. The captured images may also be images captured from the same target range, in which case the captured images are captured images of continuous frames, and the image capture unit identifies the target in the captured images of continuous frames, and allocates the captured images according to the depth of field length of the target in the captured images, and allocates the captured images to the original image set corresponding to the depth of field length of the target.

[0112] The infrared image enhancement system based on the image pyramid also includes an audio receiving unit, which receives the audio of the image acquisition unit when acquiring images, obtains the acquired audio corresponding to the acquired images, and marks the sound source direction of the changing object in the acquired audio on the corresponding acquired images. At this time, the acquisition unit classifies each acquired image according to the sound source direction to obtain original image sets with different sound source directions. Each original image set places the acquired image corresponding to the sound source direction of the original image set, and the acquired image is the original image corresponding to the original image set.

[0113] After the image acquisition unit obtains the sound source direction of each acquired image, the acquired image is allocated to an original image set corresponding to the sound source direction according to the sound source direction of the acquired image.

[0114] At this time, in step 3 and step 4, the original image is enhanced according to the original image according to the original image set. Specifically, when executing step 3 and / or step 4 on the original image in the same original image set, the grayscale decomposition images in the grayscale decomposition image sequence of the original image are arranged in the first specified order, and when the pixel fusion weight is calculated for the grayscale decomposition image sequence of the first original image in the original image set, the calculated pixel fusion weight is arranged in the first specified order, that is, the grayscale decomposition image in the grayscale decomposition image sequence corresponds to the position of the pixel fusion weight. When the second enhancement unit and / or the output unit performs multi-exposure fusion enhancement on other original images in the same original image set, the corresponding pixel fusion weight is obtained according to the arrangement order of the grayscale decomposition image, and then the multi-exposure fusion enhancement is performed, thereby greatly reducing the amount of calculation, greatly reducing the calculation pressure, and improving the image display speed.

[0115] The infrared image enhancement system based on the image pyramid also includes a correction unit, which corrects the pixel fusion weight. The correction unit is provided with a first time threshold. When the difference between the shooting time and the initial shooting time is greater than or equal to the first time threshold, the second enhancement unit and / or the output unit calibrates and calculates the pixel fusion weight of the original image at the current time in each original image set to obtain the first updated pixel fusion weight corresponding to the grayscale decomposition image sequence. When the absolute value of the difference between the first updated pixel fusion weight corresponding to the grayscale decomposition image in the grayscale decomposition image sequence and the original pixel fusion weight is greater than or equal to the first update threshold and less than the second update threshold, the original pixel fusion weight is replaced with the first updated pixel fusion weight. When the absolute value of the difference between the first updated pixel fusion weight corresponding to the grayscale decomposition image in the grayscale decomposition image sequence and the original pixel fusion weight is greater than or equal to the second update threshold, the second enhancement unit and / or output unit randomly selects N original images in the corresponding original image set, calculates the second updated pixel fusion weight corresponding to the grayscale decomposition image sequence, calculates the trimmed mean of the second updated pixel fusion weight, obtains the third updated pixel fusion weight, and replaces the first updated pixel fusion weight with the third updated pixel fusion weight. Wherein, N is a positive integer greater than or equal to 4, and the trimmed mean refers to the average value calculated by discarding the highest and lowest data in the probability distribution or sample.

[0116] Among them, the first time threshold, the first update threshold, and the second update threshold are preset values.

[0117] The infrared image enhancement method and system based on image pyramid solves the low contrast and detail enhancement problems of infrared images, and effectively improves the overall contrast of high dynamic range infrared images, retaining the image detail information, such as Figure 2 , Figure 3 As shown; in addition, by classifying the image and calculating the pixel fusion weight, the amount of calculation is greatly reduced and the display speed is improved.

[0118] The above content is an explanation of the preferred embodiments of the present invention, which can help those skilled in the art to more fully understand the technical solution of the present invention. However, these embodiments are merely illustrative, and it cannot be determined that the specific implementation methods of the present invention are limited to the description of these embodiments. For ordinary technicians in the technical field to which the present invention belongs, without departing from the concept of the present invention, several simple deductions and transformations can be made, which should be regarded as belonging to the protection scope of the present invention.

Claims

1. The infrared image enhancement method based on image pyramid is characterized by: The following steps are included: Step 1: The image acquisition unit acquires images of the target range in real time to obtain an original image; Step 2: The first enhancement unit performs regional stretching enhancement on the original image, obtains the images of the stretched enhanced regions, seamlessly splices and fuses the images of the stretched enhanced regions, and outputs a first enhanced image; Step 3: After the second enhancement unit obtains the grayscale decomposition image sequence of the original image, it performs multi-exposure fusion enhancement on the original image according to the grayscale decomposition image sequence and outputs a second enhanced image; Step 4: the output unit performs multi-exposure fusion enhancement on the first enhanced image and the second enhanced image to obtain a fusion result image, and then outputs the fusion result image; The step three specifically includes the following steps: Step 31, obtaining a grayscale decomposition image sequence of the original image; specifically, first, traversing the original image to obtain an image range, and obtaining a histogram of the original image; then, truncating the original image into several parts according to different grayscale levels in the histogram, that is, decomposing it into several frames of images, and obtaining a grayscale decomposition image sequence G; finally, normalizing each image in the grayscale decomposition image sequence G to an 8-bit range; Step 32, calculating the pixel fusion weight of the grayscale decomposition image sequence; Step 33, after the grayscale decomposition image sequence is fused at the pixel level according to the pixel fusion weight, a multi-scale smoothing process is performed to obtain a second enhanced image; specifically, the following steps include: calculating the proportion of each pixel point during fusion according to the pixel fusion weight to obtain the fusion weight; obtaining the weight image sequence corresponding to the grayscale decomposition image sequence according to the fusion weight; performing hierarchical smoothing process on the weight image sequence W corresponding to the grayscale decomposition image sequence using a Gaussian pyramid to obtain a corresponding pyramid image sequence; hierarchically extracting image details of the grayscale decomposition image sequence using a Laplace pyramid to obtain a corresponding Laplace pyramid image sequence; and reconstructing and fusion, i.e., performing linear fusion iterations on the weight image sequence and the Laplace pyramid image sequence to obtain a second enhanced image.

2. The infrared image enhancement method based on image pyramid according to claim 1, characterized in that: The step 2 specifically includes: Step 21, dividing the original image into regions to obtain a plurality of region images; Step 22, performing histogram stretching enhancement on the multiple partition images respectively, and performing normalization processing, to obtain multiple partition enhanced images; Step 23: seamlessly merge the multiple partition enhanced images corresponding to the same original image to obtain a first enhanced image.

3. The infrared image enhancement method based on image pyramid according to claim 2, characterized in that: When performing the seamless fusion, first, multiple partition enhanced images corresponding to the same original image are divided into left and right images or upper and lower images; second, different stitching masks M are set, and Gaussian blur algorithm is used to blur and normalize the stitching gaps in the mask to obtain a target mask; then, the corresponding target mask is linearly fused with the partition enhanced image to be stitched; After gradually splicing and fusing different regions, an output image after regional enhancement can be obtained: a first enhanced image.

4. The infrared image enhancement method based on image pyramid according to claim 1, characterized in that: In step 32, the pixel fusion weight includes a contrast weight and an exposure weight. Contrast weight setting: Use the Laplacian operator to extract the gradient information of the image as the image contrast weight. The smaller the gradient information, the smaller the proportion of the pixel in the fusion. On the contrary, the larger the gradient information, the larger the proportion of the pixel. For the k-th image Ik in the input grayscale decomposition image sequence G, the image contrast is calculated using the following formula 3: (3) Where Ik represents the k-th frame image in the grayscale decomposition image sequence, C(Ik) represents the contrast weight of the k-th frame image, Represents the gradient information of the k-th frame image, Represents the absolute value of the gradient information of the k-th frame image; Exposure weight setting: The calculation of exposure weight is shown in formula 4. (4) Where E is the exposure weight, k,i,j represents the kth frame image coordinates (i, j), Set to 0.2, Set it to 0.5 or 0.6, which means the brightness is close to the middle value; In step 33, the fusion weight is obtained as follows: The weight of each pixel during fusion is obtained according to the contrast weight and exposure weight of the pixel fusion weight. That is, the contrast and the exposure are combined according to the following formula (5) to obtain the fusion weight of the pixel: (5) Among them, W is the fusion weight, k,i,j is the k-frame image coordinate (i, j), ac is a specified parameter of contrast C, ac=1; ae is a specified parameter of exposure E, ae=1.

5. The infrared image enhancement method based on image pyramid according to claim 1, characterized in that: The multi-exposure fusion enhancement in step four is the same as the multi-exposure fusion enhancement step in step three. In step four, the first enhanced image and the second enhanced image are used as the grayscale decomposition image sequence G. At this time, the fusion result image output after multi-exposure fusion enhancement is the fusion result image.

6. The infrared image enhancement method based on image pyramid according to claim 1, characterized in that: In the step 1, when the image acquisition unit acquires images of the target range, an acquisition image of the target range is obtained. After the image acquisition unit classifies the acquisition image according to the depth of field length, an original image set with different depths of field lengths is obtained; an acquisition image corresponding to the depth of field length of the original image set is placed in each original image set, and the acquisition image is the original image corresponding to the original image set; When the acquired image is an image acquisition of different target ranges, the acquired image is a single image. After the image acquisition unit obtains the depth of field length of each image, the acquired image is allocated to the original image set of the corresponding depth of field length according to the depth of field of the acquired image; when the acquired image is an image acquisition of the same target range, the acquired image is an acquired image of continuous frames. The image acquisition unit identifies the target object in the acquired image of continuous frames, allocates the acquired image according to the depth of field length of the target object in the acquired image, and allocates the acquired image to the original image set corresponding to the depth of field length of the target object.

7. The infrared image enhancement method based on image pyramid according to claim 1, characterized in that: The audio receiving unit receives the audio of the image acquisition unit when acquiring images, obtains the acquired audio corresponding to the acquired images, and marks the sound source direction of the changing object in the acquired audio on the corresponding acquired images; The acquisition unit classifies each acquired image according to the direction of the sound source to obtain an original image set with different sound source directions; each original image set places an acquired image corresponding to the direction of the sound source of the original image set, and the acquired image is the original image corresponding to the original image set; After the image acquisition unit obtains the sound source direction of each acquired image, the acquired image is allocated to an original image set corresponding to the sound source direction according to the sound source direction of the acquired image.

8. The infrared image enhancement method based on image pyramid according to claim 6 or 7, characterized in that: In step 3 and step 4, the original image is enhanced according to the original image set. Specifically, when step 3 and / or step 4 are performed on the original images in the same original image set, the grayscale decomposition images in the grayscale decomposition image sequence of the original image are arranged according to the first specified order, and when the grayscale decomposition image sequence of the first original image in the original image set is subjected to pixel fusion weight calculation, the calculated pixel fusion weight is arranged according to the first specified order, that is, the grayscale decomposition images in the grayscale decomposition image sequence correspond to the positions of the pixel fusion weights; When the second enhancement unit and / or the output unit performs multi-exposure fusion enhancement on other original images in the same original image set, multi-exposure fusion enhancement is performed after obtaining corresponding pixel fusion weights according to the arrangement order of the grayscale decomposition images.

9. The infrared image enhancement system based on image pyramid is characterized by: It includes an image acquisition unit, a first enhancement unit, a second enhancement unit and an output unit, The image acquisition unit acquires images of the target range in real time to obtain an original image; The first enhancement unit performs region-by-region stretching enhancement on the original image, obtains images of the stretch-enhanced regions, and then seamlessly splices and fuses the images of the stretch-enhanced regions to output a first enhanced image; After the second enhancement unit obtains the grayscale decomposition image sequence of the original image, it performs multi-exposure fusion enhancement on the original image according to the grayscale decomposition image sequence and outputs a second enhanced image; The output unit performs multi-exposure fusion enhancement on the first enhanced image and the second enhanced image to obtain a fusion result image, and then outputs the fusion result image; The second enhancement unit outputting the second enhanced image specifically comprises the following steps: Obtaining a grayscale decomposition image sequence of an original image; specifically, first, traversing the original image to obtain an image range, and obtaining a histogram of the original image; then, truncating the original image into several parts according to different grayscale levels in the histogram, that is, decomposing it into several frames of images, and obtaining a grayscale decomposition image sequence G; finally, normalizing each image in the grayscale decomposition image sequence G to an 8-bit range; Calculate pixel fusion weights of grayscale decomposed image sequence; After the grayscale decomposition image sequence is fused at the pixel level according to the pixel fusion weight, a multi-scale smoothing process is performed to obtain a second enhanced image; specifically, the process includes: calculating the proportion of each pixel point during fusion according to the pixel fusion weight to obtain the fusion weight; obtaining the weight image sequence corresponding to the grayscale decomposition image sequence according to the fusion weight; using the Gaussian pyramid to perform hierarchical smoothing on the weight image sequence W corresponding to the grayscale decomposition image sequence to obtain a corresponding pyramid image sequence; using the Laplace pyramid to hierarchically extract the image details of the grayscale decomposition image sequence to obtain a corresponding Laplace pyramid image sequence; reconstruction fusion, that is, performing linear fusion iteration on the weight image sequence and the Laplace pyramid image sequence to obtain the second enhanced image.