Method for intra-frame enhancement and inter-frame dodging of laser sequence shadow image
Through homomorphic filtering and background compression technology, the problems of speckle noise and brightness jitter in laser sequence shadow imaging are solved, intra-frame brightness balance and contrast improvement are achieved, and the visual effect is significantly improved.
Patent Information
- Application Number
- CN202410805632.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-20
- Publication Date
- 2024-10-01
- Estimated Expiration
- 2044-06-20
AI Technical Summary
There are problems such as speckle noise, low contrast and inter-frame brightness jitter in laser sequence shadow imaging. The existing image enhancement methods have inflexible structures and loss of detailed information.
Homomorphic filtering and background compression technology are used to reduce speckle noise through homomorphic filtering. Threshold segmentation and grayscale compression are used to separate the target foreground and background. The average background grayscale between frames is calculated for brightness balance to ensure consistent background brightness.
Significantly reduce intra-frame speckle noise, improve contrast, achieve inter-frame brightness balance, and improve visual effects.
Smart Images

Figure CN118735810A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of laser illumination shadow imaging, and more specifically to a laser sequence shadow image intra-frame enhancement and inter-frame homogenization method. Background Art
[0002] Laser sequence shadow imaging, also known as laser illumination shadow imaging, uses pulsed laser illumination to project the target evolution event onto a background reflection screen, and uses a high-speed camera to capture a sequence of target shadow images on the reflection screen. It is often used to obtain the flight posture of projectiles during hypervelocity collisions and the characteristics of the debris cloud generated by the collision. Due to the particularity of pulsed laser illumination used in laser sequence shadow imaging equipment, the target shadow image formed inevitably produces speckle noise; in addition, when pulsed lasers are illuminated, the energy of each pulse is different, resulting in different brightness of each frame, causing the image sequence to alternate between light and dark, and brightness jitter between frames.
[0003] With the continuous development of digital image processing technology, laser sequence shadow imaging observation technology, as an important test method for transient measurement, is also constantly developing and improving. In order to solve the problems of speckle noise, low contrast and inter-frame brightness jitter in laser sequence shadow imaging, it is necessary to perform intra-frame enhancement and inter-frame uniform light processing on the laser sequence shadow image. Currently, the commonly used image enhancement methods are model-based and histogram-based methods. The model-based method can enhance the overall information in the sequence image, but the algorithm structure is not flexible and the scalability is not good. The histogram equalization method is a very classic function mapping method. The traditional histogram equalization method improves the brightness of the image, but loses a lot of detail information in the image, and the local area is prone to over-enhancement. Summary of the invention
[0004] In order to overcome the above-mentioned defects of the prior art and solve the problems of speckle noise, low contrast and inter-frame brightness jitter of laser sequence shadow images, the present invention provides a method for intra-frame enhancement and inter-frame uniform light of laser sequence shadow images, so as to achieve inter-frame brightness balance and consistent background brightness of laser sequence shadow images and improve visual effects.
[0005] To achieve the above object, the present invention provides the following technical solutions:
[0006] The laser sequence shadow image intra-frame enhancement and inter-frame homogenization method described in the present invention comprises the following steps:
[0007] Step 1: Acquire an image, build a laser high-speed shadow imaging device, and use the laser high-speed shadow imaging device to capture a target evolution sequence shadow image;
[0008] Step 2: homomorphic filtering processing, performing homomorphic filtering processing on all original frames of the target evolution sequence shadow image obtained in step 1, reducing speckle noise, improving brightness and contrast, and obtaining a sequence shadow image with preliminary noise reduction;
[0009] Step 3: Background compression: The target foreground and background of the sequence shadow image with preliminary denoising are separated by threshold segmentation method, the gray value of the target foreground is kept unchanged, and the gray level of the background is compressed to further reduce the speckle noise, thus obtaining the sequence shadow image with secondary denoising;
[0010] Step 4: inter-frame homogenization, calculating the background grayscale mean of each frame of the secondary denoised sequence shadow image, setting an expected background grayscale value, calculating the difference between the background grayscale mean and the expected background grayscale value, and when the background grayscale mean is greater than or equal to the expected background grayscale value, reducing the background grayscale of the frame image by the difference; when the background grayscale mean is less than the expected background grayscale value, increasing the background grayscale of the frame image by the difference;
[0011] Step 5: output the laser sequence shadow image after enhanced homogenization.
[0012] Preferably, in step 2, the homomorphic filtering process includes the following steps:
[0013] 1) Logarithmic transformation: the original image is represented as the product of the illumination component and the reflection component, and the illumination component and the reflection component of the original image are converted into two additive components through logarithmic transformation to obtain the image after logarithmic transformation;
[0014] 2) Fourier transform, the logarithmic transformed image is transformed by Fourier transform to obtain the corresponding frequency domain image;
[0015] 3) frequency domain filtering, performing frequency domain filtering on the frequency domain image to obtain a filtered frequency domain image;
[0016] 4) Inverse transformation: the filtered frequency domain image is subjected to inverse Fourier transformation and exponential operation to obtain the preliminary denoised sequence shadow image.
[0017] Preferably, in the frequency domain filtering stage of step 2, a Gaussian high-pass filter is used to perform frequency domain filtering on the frequency domain image.
[0018] Preferably, in step 4, the expected background grayscale value is set to 200-220.
[0019] The technical effects and advantages of the present invention are as follows: the method can significantly reduce the speckle noise within the frame and improve the target background contrast through homomorphic filtering and grayscale compression technology. At the same time, the method realizes brightness balance between frames, consistent background brightness, and improves visual effects. BRIEF DESCRIPTION OF THE DRAWINGS
[0020] Figure 1 The flowchart of one embodiment of the present invention is shown in FIG.
[0021] Figure 2 It is a working principle diagram for capturing and acquiring target evolution sequence shadow images.
[0022] Figure 3 It is the original frame in the laser sequence shadow image.
[0023] Figure 4 It is the shadow image of the laser sequence after enhancement and homogenization. DETAILED DESCRIPTION
[0024] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments 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.
[0025] like Figure 1 As shown, the laser sequence shadow image intra-frame enhancement and inter-frame homogenization method described in the present invention includes the following steps:
[0026] Step 1: Acquire an image, build a laser high-speed shadow imaging device, and use the laser high-speed shadow imaging device to capture a target evolution sequence shadow image;
[0027] like Figure 2 As shown, when acquiring an image, the laser 1 and the high-speed camera 2 are both connected to the control device 3, and the control device 3 controls the laser 1 and the high-speed camera 2 to work together. A reflection screen 4 is set in front of the laser 1 and the high-speed camera 2, and the target 5 passes between the laser 1 and the reflection screen 4. The laser 1 emits a pulsed laser to project the target onto the background reflection screen 4, and the high-speed camera 2 receives the image on the reflection screen 4 to obtain the target evolution sequence shadow image. Due to the particularity of pulsed laser illumination in the laser sequence shadow imaging device, the target evolution sequence shadow image formed inevitably produces speckle noise; in addition, when there is a difference in the pulse energy of the illumination laser, the brightness of each frame will be different, resulting in the phenomenon of alternating light and dark in the image sequence and brightness jitter between frames.
[0028] Step 2: homomorphic filtering processing, performing homomorphic filtering processing on all original frames of the target evolution sequence shadow image obtained in step 1, reducing speckle noise, improving brightness and contrast, and obtaining a sequence shadow image with preliminary noise reduction;
[0029] The homomorphic filtering process comprises the following steps
[0030] 1) Logarithmic transformation: the original image is represented as the product of the illumination component and the reflection component, and the illumination component and the reflection component of the original image are converted into two additive components through logarithmic transformation to obtain the image after logarithmic transformation;
[0031] 2) Fourier transform, the logarithmic transformed image is transformed by Fourier transform to obtain the corresponding frequency domain image;
[0032] 3) frequency domain filtering, performing frequency domain filtering on the frequency domain image to obtain a filtered frequency domain image;
[0033] 4) Inverse transformation: the filtered frequency domain image is subjected to inverse Fourier transformation and exponential operation to obtain the preliminary denoised sequence shadow image.
[0034] Homomorphic filters use the brightness / reflectivity model of an image as the basis for frequency domain processing. An image can be considered to be composed of two parts, as expressed by the following formula.
[0035] f(x,y)=f i (x,y)·f r (x,y),
[0036] Among them, f i (x,y) represents the low-frequency part of the image, namely the illumination component.
[0037] f r (x, y) represents the reflection component, which reflects the image details.
[0038] The homomorphic filtering process first logarithmically transforms the above formula to obtain two added components. Then, the logarithmic image is Fourier transformed to obtain the corresponding frequency domain representation. The frequency domain filter H(U, V) is used to filter the logarithmic image in the frequency domain. Finally, the spatial filtering result is obtained by using the inverse Fourier transform and exponential operation respectively.
[0039] In order to suppress the low-frequency brightness component and enhance the high-frequency reflection corresponding part, the homomorphic filter should be a high-pass filter of a Gaussian function, as shown in the following formula.
[0040]
[0041] Among them, r H is the high frequency gain, r L is the low-frequency gain, c is the sharpening coefficient, D(u,v) is the distance from point (u,v) to the frequency center, and D0 is the cutoff frequency.
[0042] Step 3: Background compression. The target foreground and background of the initial denoised sequence shadow image are separated by the threshold segmentation method. The target foreground grayscale value is kept unchanged, and the background grayscale level is compressed to further reduce the speckle noise, thus obtaining a secondary denoised sequence shadow image. In the laser sequence shadow image, the black shadow formed by the target blocking the laser light in the image is called the foreground, and the laser is reflected by the reflection screen to form a brighter area containing speckles in the image as the background. The grayscale value of the image is called the grayscale level, and the range from 0 to 255 represents the brightness change from pure black to pure white. The grayscale value 0 represents pure black, 255 represents pure white, and the intermediate value represents different degrees of grayscale.
[0043] In this step, firstly, the threshold T is set to separate the foreground and background, and the foreground is kept unchanged, as shown in the following formula.
[0044]
[0045] Then, a linear grayscale compression method is used to compress the grayscale of the background to reduce the jitter of the speckle noise, as shown in the following formula.
[0046]
[0047] Where H and L are the maximum and minimum grayscale values of the original image, and H' and L' are the maximum and minimum grayscale values of the grayscale space to be compressed.
[0048] Step 4: inter-frame homogenization, calculate the background grayscale mean of each frame of the secondary denoised sequence shadow image, set the expected background grayscale value, and the expected background grayscale value of each frame is equal or has only a very small difference. For each frame, calculate the difference between the background grayscale mean and the expected background grayscale value. When the background grayscale mean is greater than or equal to the expected background grayscale value, reduce the grayscale of each background pixel in the frame by the difference. When the background grayscale mean is less than the expected background grayscale value, increase the grayscale of each background pixel in the frame by the difference.
[0049] Step 5: output the laser sequence shadow image after enhanced homogenization.
[0050] The present invention is described in detail below by taking a laser sequence shadow image with a W*H resolution as an example of an input image sequence and outputting an enhanced and homogenized image sequence through the method.
[0051] Step 1: Laser high-speed photography to obtain sequence shadow image sequence f i (x,y)(0<i≤N); such as Figure 3 As shown, the sequence of shadow images has obvious speckle noise, and the image brightness between frames is uneven. The image sequence is bright and dark, and the brightness jitters between frames.
[0052] Step 2: Perform homomorphic filtering on all frames of the sequence, with a high-frequency gain of 2, a low-frequency gain of 0.2, a sharpening factor of 0.1, and a cutoff frequency of 500; generate an image sequence h i (x,y)(0<i≤N);
[0053] Step 3: According to the imaging quality and image contrast, set a suitable threshold to separate the foreground and background. In this embodiment, the target imaging quality is good and the contrast is moderate. The gray value threshold T is selected as 50 to separate the foreground and background. As shown in the following formula.
[0054]
[0055] After the foreground and background are separated, the grayscale of the foreground is kept unchanged; the background grayscale is compressed using a linear grayscale compression method to reduce the jitter of speckle noise, as shown in the following formula.
[0056]
[0057] Where H and L are the maximum and minimum grayscale values of the original image, and H' and L' are the maximum and minimum grayscale values of the grayscale space to be compressed, which are 230 and 190 respectively.
[0058] Step 4: Determine the expected background brightness as 210, calculate the difference between the background grayscale mean of each image and the grayscale value 210, increase or decrease the background pixel grayscale of each image by the difference, and achieve brightness balance between frames. As mentioned above, for the foreground obtained by segmentation with a threshold T of 50, when the expected background grayscale is 210, a better contrast can be obtained, improving the visual effect.
[0059] Step 5: Output the laser sequence shadow image after enhanced homogenization, such as Figure 4 As shown, the speckle noise of the output image sequence is significantly reduced, the brightness between frames is consistent, and the visual effect is significantly improved.
[0060] Finally, a few points should be explained: First, in the description of this application, it should be noted that, unless otherwise specified and limited, the terms "installed", "connected", and "connected" should be understood in a broad sense, which may refer to mechanical connection or electrical connection, or internal communication between two components, or direct connection. "upper", "lower", "left", "right", etc. are only used to indicate relative positional relationships. When the absolute position of the object being described changes, the relative positional relationship may change;
[0061] Secondly: In the drawings of the embodiments disclosed in the present invention, only the structures related to the embodiments disclosed in the present invention are involved, and other structures can refer to the general design. In the absence of conflict, the same embodiment and different embodiments of the present invention can be combined with each other;
[0062] Finally: The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present invention should be included in the protection scope of the present invention.
Claims
1. A laser sequence shadow image intra-frame enhancement and inter-frame homogenization method, characterized in that The steps include: Step 1: Acquire an image, build a laser high-speed shadow imaging device, and use the laser high-speed shadow imaging device to capture a target evolution sequence shadow image; Step 2: homomorphic filtering processing, performing homomorphic filtering processing on all original frames of the target evolution sequence shadow image obtained in step 1, reducing speckle noise, improving brightness and contrast, and obtaining a sequence shadow image with preliminary noise reduction; Step 3: Background compression: The target foreground and background of the sequence shadow image with preliminary denoising are separated by threshold segmentation method, the gray value of the target foreground is kept unchanged, and the gray level of the background is compressed to further reduce the speckle noise, thus obtaining the sequence shadow image with secondary denoising; Step 4: inter-frame homogenization, calculating the background grayscale mean of each frame of the secondary denoised sequence shadow image, setting an expected background grayscale value, calculating the difference between the background grayscale mean and the expected background grayscale value, and when the background grayscale mean is greater than or equal to the expected background grayscale value, reducing the background grayscale of the frame image by the difference; when the background grayscale mean is less than the expected background grayscale value, increasing the background grayscale of the frame image by the difference; Step 5: output the laser sequence shadow image after enhanced homogenization.
2. According to claim 1, a method for intra-frame enhancement and inter-frame homogenization of laser sequence shadow images, characterized in that: In step 2, the homomorphic filtering process includes the following steps: 1) Logarithmic transformation: the original image is represented as the product of the illumination component and the reflection component, and the illumination component and the reflection component of the original image are converted into two additive components through logarithmic transformation; Get the logarithmic transformed image; 2) Fourier transform, the logarithmic transformed image is transformed by Fourier transform to obtain the corresponding frequency domain image; 3) frequency domain filtering, performing frequency domain filtering on the frequency domain image to obtain a filtered frequency domain image; 4) Inverse transformation: the filtered frequency domain image is subjected to inverse Fourier transformation and exponential operation to obtain the preliminary denoised sequence shadow image.
3. According to claim 2, a method for intra-frame enhancement and inter-frame homogenization of laser sequence shadow images, characterized in that: In the frequency domain filtering stage of step 2, a Gaussian high-pass filter is used to perform frequency domain filtering on the frequency domain image.
4. According to claim 1, a method for intra-frame enhancement and inter-frame homogenization of laser sequence shadow images, characterized in that: In step 4, the expected background grayscale value is set to 200-220.
Citation Information
Patent Citations
Fingerprint enhancement method based on time domain and frequency domain filtering
CN102368333A
Underwater image enhancement processing method
CN103679651A
Motion vehicle detection method resisting light effect
CN105447890A
Intelligent detection method for weld defects of radiographic industrial negative film
CN112184693A
Information processing method and electronic device
US20160125614A1
