Method, device and medium for jitter correction of push-broom spectral images without reference

By manually selecting the reference image and using the shake correction algorithm of the rectangular frame selection area, the pushbroom spectral image is subjected to no-reference shake correction, which solves the problem of image shake correction without reference information and improves the image quality and the adaptability of the imaging system. .

CN118657695BActive Publication Date: 2024-10-25CHANGCHUN UNIV OF SCI & TECH
View PDF 3 Cites 0 Cited by

Patent Information

Application Number
CN202411081572.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-08-08
Publication Date
2024-10-25
Estimated Expiration
2044-08-08

Smart Images

  • Figure CN118657695B_ABST
    Figure CN118657695B_ABST
Patent Text Reader

Abstract

The present invention proposes a method, device and medium for jitter correction of a push-broom spectral image without reference. It belongs to the field of spectral imaging technology and digital image processing technology. The method comprises step 1, acquiring a group of push-broom spectral images; step 2, selecting a reference image according to the acquired spectral image; step 3, observing image I, manually selecting one or more regions with jitter and misalignment with a rectangular frame; step 4, executing a jitter correction algorithm for each column of the region with the framed region as a feature; step 5, displaying the corrected image I after the correction algorithm is completed, and returning to step 3 if the image jitter correction is to be continued. If the correction is completed, the offset of each column of the corrected image is applied to images of other bands to complete the jitter correction of the full-band image. The method enables the hyperspectral image to correct the image jitter caused by the push-broom motion when reference information is missing or the information is unreliable, thereby improving the environmental adaptability of the push-broom spectral imaging system.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the field of spectral imaging technology and digital image processing technology, and in particular relates to a method, device and medium for jitter correction of a push-broom spectral image without reference. Background Art

[0002] The data of the push-broom spectral imaging system is obtained by collecting each scan image perpendicular to the push-broom path, and each scan image is independent of the previous scan image. Therefore, the pitch, roll and yaw generated by the system moving along the path will cause each scan image to have different geometric features, causing many pixels to deviate from their original positions, resulting in obvious jitter-like image misalignment in the collected image, which seriously affects the imaging quality of the push-broom spectral imaging system. Therefore, jitter correction of push-broom spectral images is an important method to improve image quality.

[0003] At present, the most commonly used correction method for push-broom spectral images is to correct them by calculating the external orientation parameters of each scanned image and the geometric relationship between each scanned image and the ground coordinate system based on the position and orientation parameters provided by the positioning and orientation system. However, the final correction accuracy may be affected by many factors, such as the low accuracy of the positioning and orientation system, the asynchrony between image acquisition and telemetry data, the inconsistency between the geometric center of the inertial navigation system, the perspective center of the sensor lens and the phase center of the global positioning system antenna, etc. In order to improve the reliability of the positioning and orientation system, Lee et al. extracted the linear features of the spectral image as the control data of the ground information, or used the linear features as constraints under the condition of making simple assumptions about the ground information to correct the spectral image (Lee C, Bethel J S. Extraction, modelling, and use of linear features for restitution of airborne hyperspectral imagery [J]. ISPRS Journal of Photogrammetry and Remote Sensing, 2004, 58 (5-6): 289-300.). Jensen et al. proposed to correct errors by integrating ground control points and feature information of multiple points and lines on reference images and uncorrected spectral images (Jensen RR, Hardin AJ, Hardin PJ, et al. A new method to correct pushbroom hyperspectral data using linear features and ground control points[J]. GIScience&Remote Sensing, 2011, 48(3): 416-431.). Fang et al. proposed to take visible light images as reference images while taking spectral images, and select corresponding ground control points and linear features in the two images to correct spectral images (Fang H, Hu B, Yu Z, et al. Semi-automatic geometric correction of airborne hyperspectral push-broom images using ground control points and linear features[J]. International journal of remote sensing, 2018, 39(12): 4115-4129.).Khezrabad et al. used a strategy for video-assisted navigation to correct push-broom images, determined the corresponding positions of spectral linear array detectors in the video camera sensor, established the geometric transformation relationship between consecutive frame images, and used the estimated transformation to resample the original push-broom image to generate a corrected image (Khezrabad MA, Zoej MJV, Safdarinezhad A. A new approach for geometric correction of UAV-based pushbroom images through the processing of simultaneously acquired frame images [J]. Measurement, 2022, 199: 111431.). The above methods all require reference information such as reference images, ground control points or ground control lines as a correction benchmark. When the reference information is difficult to obtain or unreliable, these methods will not be able to correct the spectral image. In addition, even if a spectral image correction method with a reference is used, the corrected spectral image usually uses the relative geographic location information of the reference image or ground control information to perform relative position distortion correction on the full frame, and the image jitter and misalignment may still exist, affecting the image quality. Therefore, when there is no reference information or the reference information is unreliable, how to correct the jitter and misalignment that occurs during the acquisition of push-broom spectral images becomes a technical challenge. Summary of the invention

[0004] The present invention aims to solve the problems in the prior art and proposes a method, device and medium for jitter correction of a push-broom spectral image without reference. The method enables the push-broom image to be jitter-corrected when there is a lack of reference information, thereby improving the imaging quality of the image.

[0005] The present invention is implemented by the following technical solution. The present invention proposes a reference-free push-broom spectral image jitter correction method, which includes the following steps:

[0006] Step 1, obtaining a set of push-broom spectral images;

[0007] Step 2: Select a reference image according to the acquired spectral image, and select an image with rich image details from the images of s different spectral bands as the reference image I;

[0008] Step 3: Observe image I and manually select one or more regions with jitter and misalignment using a rectangular frame. Suppose a total of N rectangular regions are selected. The coordinates of the upper left corner vertex of the ith rectangle are (x 2i-1 ,y 2i-1 ), the coordinates of the lower right vertex are (x2i ,y 2i ), where i=1, 2, …, N;

[0009] Step 4, using the framed area as a feature, executing a jitter correction algorithm on each column in the area;

[0010] Step 5: After the correction algorithm is completed, the corrected image I is displayed. If the image jitter correction is to be continued, return to step 3. If the correction is completed, the offset of each column of the corrected image is applied to the images of other bands to complete the jitter correction of the full-band image.

[0011] Furthermore, in step 1, a set of push-broom spectral images is obtained: λ1, λ2, …, λ s Corresponding to the image information of s different spectral segments, Y1, Y2, …, Y t Corresponding to the image information collected at different horizontal spaces for t times, Y(λ1), Y(λ2), …, Y(λ S ) corresponds to the full-space image information of s different spectral bands after data conversion, ly is the pixel width occupied by a certain spectral band in the spectral dimension of the image during a single acquisition; the image collected within one instant is the image collected after dispersion through a vertical spatial slit, the horizontal direction of the image is the spectral dimension, and the vertical direction is the spatial dimension; while making a uniform push-sweep motion in the horizontal direction, a group of vertical spatial dispersion images corresponding to different horizontal positions are uniformly collected at t different moments to complete the data acquisition, and the spectral image is obtained by taking a certain width of the part carrying the spectral information from this group of dispersion images and splicing them along the horizontal direction.

[0012] Furthermore, in step 2, entropy is calculated for images of s different spectral bands, and the spectral band image with the largest entropy is selected as the full-band reference image I.

[0013] Furthermore, in step 3, the framed area has horizontal linear texture features.

[0014] Furthermore, in step 4, the correction algorithm is applied only to two adjacent columns whose column numbers are divisible by ly and whose column numbers are divided by ly with a remainder of 1; the y-axis coordinates y of the 2N vertices n Corrected to be divisible by ly: Let y n =ceil(y n / ly)*ly, where n=1, 2, …, 2N;

[0015] Assume [L 1,i , L 2,i ] is the column interval covered by the i-th rectangular area, [H 1,i , H 2,i ] is the row interval covered by the i-th rectangular area. This jitter correction algorithm starts from the Y-thstart Start at column Y end The column ends; the variable L is calculated by using the characteristics that the coordinates of the upper left corner vertex of the rectangle carry the information of the start of the interval and the coordinates of the lower right corner vertex of the rectangle carry the information of the end of the interval 1,i , L 2,i , H 1,i , H 2,i , Y start , Y end To assign a value:

[0016] L 1,i = y 2i-1 , L 2,i = y 2i , i=1,2,…,N

[0017] H 1,i = x 2i-1 , H 2,i = x 2i , i=1,2,…,N

[0018] Y start =min{y1, y2, …, y 2N}

[0019] Y end =max{y1, y2, …, y 2N}

[0020] Next, we calculate the interval [Y start , Y end ] are corrected in turn, and Y pre is the column number during iteration, then Y pre Should be from Y start Column starts:

[0021] Y pre =Y start

[0022] When Y pre +ly<= Y end When the jitter correction algorithm is executed, the jitter correction algorithm continues to be executed; otherwise, the jitter correction algorithm is terminated and the subsequent step 5 is executed.

[0023] Further, in step 4, determine Y pre Is it in the interval [L 1,i , L 2,i ], i=1, 2, ..., N, record the m serial numbers i that meet the conditions into a variable M of size 1×m, (q=1, 2, …, m) represents the sequence number recorded by the qth element of M. If Y pre In the interval, it represents the Ythpre The column is in the selected Mth q A correction algorithm is used to perform correction in a rectangular area.

[0024] Further, in step 4, let R be the number of rows of image I, Δx1 be the Yth pre The vertical gradient of the column image, D is the range of traversal search in the correction algorithm, and its size is set according to the actual image jitter degree. The parameter formula is expressed as:

[0025] Δx1=I(1:R-1, Y pre )-I(2:R, Y pre )

[0026] D=25

[0027] Let k = -D, -D+1, …, D, and transform the Yth pre All elements of the image in column +1 and beyond are offset in the vertical direction by a size of k, and the image at this time is recorded as I k , Y pre Column to Y pre All elements in the +1 column are I k (:, Y pre +1);

[0028] Let Δx2 be the Yth pre +1 column image in the vertical direction gradient, Δy is image I k (:, Y pre : Y pre +1) The gradient size in the horizontal direction, G is the image I k (:, Y pre : Y pre +1) The horizontal gradient size of the vertical gradient, then:

[0029] Δx2=I k (1:R-1, Y pre +1)- I k (2:R, Y pre +1)

[0030] Δy=|I k (:, Y pre )-I k (: Y pre +1)|

[0031] G=|Δx1-Δx2|.

[0032] Furthermore, in step 4, the p row numbers contained in the m rectangular areas are recorded into a one-dimensional variable X of size 1×p; (j=1, 2, …, p) represents the row number recorded by the j-th element of X; let The image I in the selected area k The average value of the horizontal gradient reflects the smoothness of the intensity transition between two adjacent columns of the image. The image I in the selected area k The average value of the horizontal gradient of the vertical gradient reflects the degree of edge alignment of adjacent columns of the image. To correct the evaluation value, a and b are and The weight size, The smaller the value, the better the image correction effect of the two adjacent columns is. T is the correction evaluation value when the correction effect is the best. The expressions of each parameter are as follows:

[0033]

[0034]

[0035]

[0036]

[0037] The image Yth when the T value is taken pre The offset of +1 column is denoted as d, and the corrected image is updated to I=I k , where k=d, updates all row coordinates x calculated subsequently n =x n +Dx, where n = 1, 2, ..., 2N, updates all row intervals H calculated subsequently 1,i = H 1,i +Dx,H 2,i = H 2,i +Dx, where i=1, 2, ..., N, updates the column coordinate Y pre = Y pre +ly, clear variables M, X, and return to step 3.

[0038] The present invention provides an electronic device, comprising a memory and a processor, wherein the memory stores a computer program, and the processor implements the steps of the jitter correction method for the reference-free push-broom spectral image when executing the computer program.

[0039] The present invention provides a computer-readable storage medium for storing computer instructions, wherein the computer instructions, when executed by a processor, implement the steps of the jitter correction method for the reference-free push-broom spectral image.

[0040] Beneficial effects of the present invention:

[0041] 1. The present invention provides a method for jitter correction of a push-broom spectral image without reference, so that the image jitter caused by the push-broom motion can be corrected when there is a lack of reference information or the information is unreliable, thereby improving the environmental adaptability of the push-broom spectral imaging system.

[0042] 2. For situations where there is still obvious jitter and misalignment after using a push-broom spectral image jitter correction method with a reference, the present invention can also be used to perform secondary jitter correction on such images to further improve the image quality of the push-broom spectral imaging system. BRIEF DESCRIPTION OF THE DRAWINGS

[0043] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on the provided drawings without paying creative work.

[0044] Figure 1 The figures are schematic diagrams comparing the effects before and after correction by the present invention, wherein (a) is the image before correction by a single rectangular frame, and the corrected image after applying the correction algorithm in the single rectangular area selected by the frame is (b); (c) is the image before correction by multiple rectangular frames, and the corrected image after applying the correction algorithm in the multiple rectangular areas selected by the frame is (d).

[0045] Figure 2 Schematic diagram of the imaging principle of the push-broom spectral imager.

[0046] Figure 3 The present invention is a flowchart of a method for jitter correction of a push-broom spectral image without reference.

[0047] Figure 4 This is a schematic diagram of the principle of the jitter correction algorithm proposed in the present invention. DETAILED DESCRIPTION

[0048] The technical solutions in the embodiments of the present invention will be described clearly and completely below in conjunction with the drawings 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.

[0049] Combination Figure 1-Figure 4 The present invention proposes a reference-free push-broom spectral image jitter correction method, the method comprising the following steps:

[0050] Step 1: Obtain a set of push-broom spectral images; the imaging principle is as follows Figure 2 shown.

[0051] In step 1, a set of push-broom spectral images is obtained: λ1, λ2, …, λ s Corresponding to the image information of s different spectral segments, Y1, Y2, …, Y t Corresponding to the image information collected at different horizontal spaces for t times, Y(λ1), Y(λ2), …,Y(λ S ) corresponds to the full-space image information of s different spectral bands after data conversion, ly is the pixel width occupied by a certain spectral band in the spectral dimension of the image during a single acquisition; the image collected within one instant is the image collected after dispersion through a vertical spatial slit, the horizontal direction of the image is the spectral dimension, and the vertical direction is the spatial dimension; while making a uniform push-sweep motion in the horizontal direction, a group of vertical spatial dispersion images corresponding to different horizontal positions are uniformly collected at t different moments to complete the data acquisition, and the spectral image is obtained by taking a certain width of the part carrying the spectral information from this group of dispersion images and splicing them along the horizontal direction.

[0052] Step 2: Select a reference image according to the acquired spectral image, and select an image with rich image details from the images of s different spectral bands as the reference image I;

[0053] Preferably, entropy is calculated for images of s different spectral bands, and the spectral band image with the largest entropy is selected as the full-band reference image I. Let I1=I, and I1 is used as the reference image before correction.

[0054] Step 3: Observe image I and manually select one or more regions with jitter and misalignment using a rectangular frame. Suppose a total of N rectangular regions are selected. The coordinates of the upper left corner vertex of the ith rectangle are (x 2i-1 ,y 2i-1 ), the coordinates of the lower right vertex are (x 2i ,y 2i ), where i=1, 2, …, N; in step 3, the selected area has horizontal linear texture features.

[0055] Step 4, using the framed area as a feature, executing a jitter correction algorithm on each column in the area;

[0056] In step 4, let ly be the pixel width of a spectral segment in the image spectral dimension during a single acquisition, such as Figure 2 As shown in the figure, since the image within the width of ly pixels does not have spatial domain information in the horizontal direction, in order to reduce the computational complexity, the correction algorithm is only applied to two adjacent columns whose column numbers are divisible by ly and whose column numbers remain 1 after being divided by ly; n Corrected to be divisible by ly: Let y n=ceil(y n / ly)*ly, where n=1, 2, …, 2N;

[0057] Assume [L 1,i , L 2,i ] is the column interval covered by the i-th rectangular area, [H 1,i , H 2,i ] is the row interval covered by the i-th rectangular area. This jitter correction algorithm starts from the Y-th start Starting from column Y end The column ends; the variable L is calculated by using the characteristics that the coordinates of the upper left corner vertex of the rectangle carry the information of the start of the interval and the coordinates of the lower right corner vertex of the rectangle carry the information of the end of the interval 1,i , L 2,i , H 1,i , H 2,i , Y start , Y end To assign a value:

[0058] L 1,i = y 2i-1 , L 2,i = y 2i , i=1,2,…,N

[0059] H 1,i = x 2i-1 , H 2,i = x 2i , i=1,2,…,N

[0060] Y start =min{y1, y2, …, y 2N}

[0061] Y end =max{y1, y2, …, y 2N}

[0062] Next, we calculate the interval [Y start , Y end ] are corrected in turn, and Y pre is the column number during iteration, then Y pre Should be from Y start Column starts:

[0063] Y pre =Y start

[0064] When Y pre +ly<= Y end When the jitter correction algorithm is executed, the jitter correction algorithm continues to be executed; otherwise, the jitter correction algorithm is terminated and the subsequent step 5 is executed.

[0065] In step 4, determine Y pre Is it in the interval [L 1,i , L 2,i ], i=1, 2, ..., N, record the m serial numbers i that meet the conditions into a variable M of size 1×m, (q=1, 2, …, m) represents the sequence number recorded by the qth element of M. If Y pre In the interval, it represents the Yth pre The column is in the selected Mth q A correction algorithm is used to perform correction in a rectangular area.

[0066] If M is an empty matrix, update the calculated column coordinates Y pre = Y pre +ly, return to step 3.

[0067] If M is not an empty matrix, the jitter correction algorithm is executed. The principle of the correction algorithm is as follows: Figure 4 shown.

[0068] In step 4, let R be the number of rows in image I, Δx1 be the Yth pre The vertical gradient of the column image, D is the range of traversal search in the correction algorithm, and its size is set according to the actual image jitter degree. In this embodiment, the D value is 25, and the parameter formula is expressed as:

[0069] Δx1=I(1:R-1, Y pre )-I(2:R, Y pre )

[0070] D=25

[0071] Let k = -D, -D+1, …, D, and transform the Yth pre All elements of the image in column +1 and beyond are offset in the vertical direction by a size of k, and the image at this time is recorded as I k , Y pre Column to Y pre All elements in the +1 column are I k (:, Y pre +1);

[0072] Let Δx2 be the Yth pre +1 column image in the vertical direction gradient, Δy is image I k (:, Y pre : Y pre +1) The gradient size in the horizontal direction, G is the image I k (:, Y pre : Y pre+1) The horizontal gradient size of the vertical gradient, then:

[0073] Δx2=I k (1:R-1, Y pre +1)- I k (2:R, Y pre +1)

[0074] Δy=|I k (:, Y pre )-I k (: Y pre +1)|

[0075] G=|Δx1-Δx2|.

[0076] In step 4, the p row numbers contained in the m rectangular areas are recorded in a one-dimensional variable X of size 1×p; (j=1, 2, …, p) represents the row number recorded by the j-th element of X; let The image I in the selected area k The average value of the horizontal gradient reflects the smoothness of the intensity transition between two adjacent columns of the image. The smaller it is, the smoother the transition is considered. The image I in the selected area k The average value of the horizontal gradient of the vertical gradient reflects the degree of edge alignment of adjacent columns of the image. The smaller it is, the higher the degree of edge alignment is considered. To correct the evaluation value, a and b are and The weight size, The smaller the value, the better the image correction effect of the two adjacent columns is. T is the correction evaluation value when the correction effect is the best. The expressions of each parameter are as follows:

[0077]

[0078]

[0079]

[0080]

[0081] The image Yth when the T value is taken pre The offset of +1 column is denoted as d, and the corrected image is updated to I=I k , where k=d, updates all row coordinates x calculated subsequently n =x n+Dx, where n = 1, 2, ..., 2N, updates all row intervals H calculated subsequently 1,i = H 1,i +Dx,H 2,i = H 2,i +Dx, where i=1, 2, ..., N, updates the column coordinate Y pre = Y pre +ly, clear variables M, X, and return to step 3.

[0082] Step 5: After the correction algorithm is completed, the corrected image I is displayed. If the image jitter correction is to be continued, return to step 3. If the correction is completed, the offset of each column of the corrected image is applied to the images of other bands to complete the jitter correction of the full-band image.

[0083] Example

[0084] The present invention provides a reference-free push-broom spectral image jitter correction method, the method comprising the following steps:

[0085] Step 1: In this embodiment, the push-broom spectral imager has an imaging spectrum range of 400nm-900nm wavelength, a spectral resolution of 2nm, and generates 251 band images in total. Figure 2 As shown, the image collected within one instant is an image collected after dispersion through a vertical space slit. The horizontal direction of the image is the spectral dimension, and the vertical direction is the spatial dimension. While performing a uniform push-sweep motion in the horizontal direction, vertical spatial dispersion images corresponding to different horizontal positions are uniformly collected at 910 different times to complete data collection. A single wavelength spectrum image is obtained by taking a certain width of the 910 dispersion images and splicing the part carrying the spectrum information in the horizontal direction. In this embodiment, the vertical length of the dispersion image collected at a certain instant is 2048 pixels, which contains the vertical spatial information of the instant, and the 3 pixel width in the horizontal direction is taken as the spectrum information of a specific wavelength in the vertical space. After 910 acquisitions and completion of horizontal spatial domain splicing, the size of the single wavelength spatial domain image is 2048×2730.

[0086] Step 2: Select an image with richer image details from 251 images of different bands as the reference image I.

[0087] Preferably, entropy can be calculated for images of 251 different bands, and the band image with the largest entropy is selected as the reference image I of the entire band. In this embodiment, the 550 nm band image is selected as the reference image I.

[0088] Let I1=I, I1 is taken as the reference image before correction.

[0089] Step 3: Observe image I and manually select one or more regions with obvious jitter and misalignment with a rectangular frame. Suppose a total of N rectangular regions are selected. The coordinates of the upper left corner vertex of the i-th rectangle are (x 2i-1 ,y 2i-1 ), the coordinates of the lower right vertex are (x 2i ,y 2i ), where i = 1, 2, ..., N. The selected area should have horizontal linear texture features.

[0090] Step 4: Let ly be the pixel width of a certain spectrum segment in the image spectrum dimension during a single acquisition. In this embodiment, ly=3. Figure 2 As shown in , because the image within the ly pixel width does not have spatial domain information in the horizontal direction, in order to reduce the computational complexity, the correction algorithm is only applied to the two adjacent columns whose column numbers are divisible by ly and whose column numbers remain 1 after being divided by ly. Therefore, the y-axis coordinates of the 2N vertices are corrected to be divisible by ly: Let y n =ceil(y n / ly)*ly, where n=1, 2,…, 2N.

[0091] Assume [L 1,i , L 2,i ] is the column interval covered by the i-th rectangular area, [H 1,i , H 2,i ] is the row interval covered by the i-th rectangular area. This jitter correction algorithm starts from the Y-th start Starting from column Y end The variable L is calculated by taking advantage of the fact that the coordinates of the upper left corner vertex of the rectangle carry the information of the start of the interval and the coordinates of the lower right corner vertex of the rectangle carry the information of the end of the interval. 1,i , L 2,i , H 1,i , H 2,i , Y start , Y end To assign a value:

[0092] L 1,i = y 2i-1 , L 2,i = y 2i , i=1,2,…,N

[0093] H 1,i = x 2i-1 , H 2,i = x 2i , i=1,2,…,N

[0094] Y start =min{y1, y2, …, y 2N}

[0095] Y end =max{y1, y2, …, y 2N}

[0096] Next, we calculate the interval [Y start , Y end ] are corrected in turn, and Y pre is the column number during iteration, then Y pre Should be from Y start start:

[0097] Y pre =Y start

[0098] When Y pre +ly<= Y end When the jitter correction algorithm is executed, the jitter correction algorithm continues to be executed; otherwise, the jitter correction algorithm is terminated and the subsequent step 5 is executed.

[0099] Judge Y pre Is it in the interval [L 1,i , L 2,i ], i=1, 2, ..., N, record the m serial numbers i that meet the conditions into a variable M of size 1×m, (q=1, 2, …, m) represents the sequence number recorded by the qth element of M. If Y pre In the interval, it represents the Yth pre The column is in the selected Mth q A rectangular area, in which the algorithm needs to be used for correction:

[0100] If M is an empty matrix, update the calculated column coordinates Y pre = Y pre +ly, return to step 3.

[0101] If M is not an empty matrix, the jitter correction algorithm is executed.

[0102] Let R be the number of rows in image I, Δx1 be the Yth pre The vertical gradient of the column image, D is the range of traversal search in the correction algorithm, and its size is set according to the actual image jitter degree.

[0103] Δx1=I(1:R-1, Y pre )-I(2:R, Y pre )

[0104] Let k = -D, -D+1, …, D, and transform the Yth pre All elements of the image in column +1 and beyond are offset in the vertical direction by a size of k, and the image at this time is recorded as I k, Y pre Column to Y pre All elements in the +1 column are I k (:, Y pre +1).

[0105] Let Δx2 be the Yth pre +1 column image in the vertical direction gradient, Δy is image I k (:, Y pre : Y pre +1) The gradient size in the horizontal direction, G is the image I k (:, Y pre : Y pre +1) The horizontal gradient size of the vertical gradient, then:

[0106] Δx2=I k (1:R-1, Y pre +1)- I k (2:R, Y pre +1)

[0107] Δy=|I k (:, Y pre )-I k (: Y pre +1)|

[0108] G=|Δx1-Δx2|

[0109] The p row numbers contained in the m rectangular areas are recorded in a one-dimensional variable X of size 1×p. (j=1, 2,…, p) represents the row number recorded by the jth element of X. Let The image I in the selected area k The average value of the horizontal gradient reflects the smoothness of the intensity transition between two adjacent columns of the image. The smaller it is, the smoother the transition is. The image I in the selected area k The average value of the horizontal gradient of the vertical gradient reflects the degree of edge alignment of adjacent columns of the image. The smaller it is, the more aligned the edges are considered. To correct the evaluation value, a and b are and The weight size, The smaller the value, the better the correction effect of the image in the adjacent columns. T is the correction evaluation value when the correction effect is the best.

[0110]

[0111]

[0112]

[0113]

[0114] The image Yth when the T value is taken pre The offset of +1 column is denoted as d, and the corrected image is updated to I=I k , where k=d, updates all row coordinates x calculated subsequently n =x n +Dx, where n = 1, 2, ..., 2N, updates all row intervals H calculated subsequently 1,i = H 1,i +Dx,H 2,i = H 2,i +Dx, where i=1, 2, ..., N, updates the column coordinate Y pre = Y pre +ly, clear variables M, X, and return to step 3.

[0115] The principle of the correction algorithm is as follows Figure 4 shown. Figure 4 The schematic diagram of the principle of the jitter correction algorithm proposed in the present invention is shown in the figure. The area selected by the bold line is a rectangular area with jitter dislocation characteristics. Two adjacent columns are grouped together. An offset is applied to the second half of the column in the vertical direction for searching. The correction evaluation value obtained under each offset is calculated. The image with the minimum correction evaluation value T in each group is found as the input image for the next group of optimization calculation. The colored rectangular area is the calculation area of ​​the correction evaluation value, which is determined by the area intercepted by the bold line in the first half of the column. The corrected image is output after the optimization correction is performed on each group in turn.

[0116] Step 5: After the correction algorithm is completed, the corrected image I is displayed. If the image jitter correction is to be continued, return to step 3. If the correction is completed, the offset of each column of the corrected image is applied to the images of other bands to complete the jitter correction of the full-band image.

[0117] The present invention provides an electronic device, comprising a memory and a processor, wherein the memory stores a computer program, and the processor implements the steps of the jitter correction method for the reference-free push-broom spectral image when executing the computer program.

[0118] The present invention provides a computer-readable storage medium for storing computer instructions, wherein the computer instructions, when executed by a processor, implement the steps of the jitter correction method for the reference-free push-broom spectral image.

[0119] The memory in the embodiments of the present application may be a volatile memory or a non-volatile memory, or may include both volatile and non-volatile memories. Among them, the non-volatile memory may be a read only memory (ROM), a programmable read only memory (PROM), an erasable programmable read only memory (EPROM), an electrically erasable programmable read only memory (EEPROM), or a flash memory. The volatile memory may be a random access memory (RAM), which is used as an external cache. By way of example but not limitation, many forms of RAM are available, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchlink DRAM (SLDRAM), and direct rambus RAM (DR RAM). It should be noted that the memory of the method described in the present invention is intended to include, but is not limited to, these and any other suitable types of memory.

[0120] In the above embodiments, it can be implemented in whole or in part by software, hardware, firmware or any combination thereof. When implemented using software, it can be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer instructions are loaded and executed on a computer, the process or function described in the embodiment of the present application is generated in whole or in part. The computer may be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer instructions may be stored in a computer-readable storage medium, or transmitted from one computer-readable storage medium to another computer-readable storage medium. For example, the computer instructions may be transmitted from a website site, computer, server or data center by wired (e.g., coaxial cable, optical fiber, digital subscriber line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.) mode to another website site, computer, server or data center. The computer-readable storage medium may be any available medium that a computer can access or a data storage device such as a server or data center that includes one or more available media integrated. The available medium may be a magnetic medium (eg, a floppy disk, a hard disk, a magnetic tape), an optical medium (eg, a digital video disc (DVD)), or a semiconductor medium (eg, a solid state disc (SSD)).

[0121] In the implementation process, each step of the above method can be completed by an integrated logic circuit of hardware in a processor or an instruction in the form of software. The steps of the method disclosed in conjunction with the embodiment of the present application can be directly embodied as a hardware processor for execution, or a combination of hardware and software modules in a processor for execution. The software module can be located in a storage medium mature in the art such as a random access memory, a flash memory, a read-only memory, a programmable read-only memory or an electrically erasable programmable memory, a register, etc. The storage medium is located in a memory, and the processor reads the information in the memory and completes the steps of the above method in conjunction with its hardware. To avoid repetition, it is not described in detail here.

[0122] It should be noted that the processor in the embodiment of the present application may be an integrated circuit chip with signal processing capabilities. In the implementation process, each step of the above method embodiment may be completed by an integrated logic circuit of hardware in the processor or an instruction in the form of software. The above processor may be a general-purpose processor, a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a field programmable gate array (FPGA) or other programmable logic device, a discrete gate or transistor logic device, or a discrete hardware component. The methods, steps and logic block diagrams disclosed in the embodiments of the present application may be implemented or executed. The general-purpose processor may be a microprocessor or the processor may be any conventional processor, etc. The steps of the method disclosed in the embodiment of the present application may be directly embodied as being executed by a hardware decoding processor, or may be executed by a combination of hardware and software modules in a decoding processor. The software module may be located in a mature storage medium in the art such as a random access memory, a flash memory, a read-only memory, a programmable read-only memory or an electrically erasable programmable memory, a register, etc. The storage medium is located in a memory, and the processor reads the information in the memory and completes the steps of the above method in combination with its hardware.

[0123] The above is a detailed introduction to the jitter correction method, device and medium for the reference-free push-broom spectral image proposed in the present invention. Specific examples are used in this article to illustrate the principles and implementation methods of the present invention. The description of the above embodiments is only used to help understand the method of the present invention and its core idea. At the same time, for those skilled in the art, according to the idea of ​​the present invention, there will be changes in the specific implementation method and application scope. In summary, the content of this specification should not be understood as limiting the present invention.

Claims

1. A reference-free push-broom spectral image jitter correction method, characterized in that: The method comprises the following steps: Step 1, obtaining a set of push-broom spectral images; Step 2: Select a reference image according to the acquired spectral image, and select an image with rich image details from the images of s different spectral bands as the reference image I; Step 3: Observe image I and manually select one or more regions with jitter and misalignment using a rectangular frame. Suppose a total of N rectangular regions are selected. The coordinates of the upper left corner vertex of the ith rectangle are (x 2i-1 ,y 2i-1 ), the coordinates of the lower right vertex are (x 2i ,y 2i ), where i=1, 2, …, N; Step 4, using the framed area as a feature, executing a jitter correction algorithm on each column in the area; Step 5: After the correction algorithm is completed, the corrected image I is displayed. If the image jitter correction is to be continued, return to step 3. If the correction is completed, the offset of each column of the corrected image is applied to the images of other bands to complete the jitter correction of the full-band image.

2. The method according to claim 1, characterized in that In step 1, a set of push-broom spectral images is obtained: λ1, λ2, …, λ s Corresponding to the image information of s different spectral segments, Y1, Y2, …, Y t Corresponding to the image information collected at different horizontal spaces for t times, Y(λ1), Y(λ2), …, Y(λ S ) corresponds to the full-space image information of s different spectral bands after data conversion, ly is the pixel width occupied by a certain spectral band in the spectral dimension of the image during a single acquisition; the image collected within one instant is the image collected after dispersion through a vertical spatial slit, the horizontal direction of the image is the spectral dimension, and the vertical direction is the spatial dimension; while making a uniform push-sweep motion in the horizontal direction, a group of vertical spatial dispersion images corresponding to different horizontal positions are uniformly collected at t different moments to complete the data acquisition, and the spectral image is obtained by taking a certain width of the part carrying the spectral information from this group of dispersion images and splicing them along the horizontal direction.

3. The method according to claim 1, characterized in that: In step 2, the entropy of images in s different spectral bands is calculated, and the spectral band image with the largest entropy is selected as the full-band reference image I.

4. The method according to claim 1, characterized in that: In step 3, the selected area has horizontal linear texture features.

5. The method according to claim 2, characterized in that: In step 4, the correction algorithm is applied only to two adjacent columns whose column numbers are divisible by ly and whose column numbers remain 1 after being divided by ly; the y-axis coordinates y of the 2N vertices n Corrected to be divisible by ly: Let y n =ceil(y n / ly)*ly, where n=1, 2, …, 2N; Assume [L 1,i , L 2,i ] is the column interval covered by the i-th rectangular area, [H 1,i , H 2,i ] is the row interval covered by the i-th rectangular area. This jitter correction algorithm starts from the Y-th start Start at column Y end The column ends; the variable L is calculated by using the characteristics that the coordinates of the upper left corner vertex of the rectangle carry the information of the start of the interval and the coordinates of the lower right corner vertex of the rectangle carry the information of the end of the interval 1,i , L 2,i , H 1,i , H 2,i , Y start , Y end To assign a value: L 1,i = y 2i-1 ,L 2,i = y 2i ,i=1,2,…,N H 1,i = x 2i-1 ,H 2,i = x 2i ,i=1,2,…,N Y start =min{y1, y2, …, y 2N } AND end =max{y1, y2, …, y 2N } Next, we calculate the interval [Y start , Y end ] are corrected in turn, and Y pre is the column number during iteration, then Y pre Should be from Y start Column starts: AND pre =And start When Y pre +ly<= Y end When the jitter correction algorithm is executed, the jitter correction algorithm continues to be executed; otherwise, the jitter correction algorithm is terminated and the subsequent step 5 is executed.

6. The method according to claim 5, characterized in that In step 4, determine Y pre Is it in the interval [L 1,i ,L 2,i ], i=1, 2, ..., N, record the m serial numbers i that meet the conditions into a variable M of size 1×m, (q=1,2, …, m) represents the sequence number recorded by the qth element of M. If Y pre In the interval, it represents the Yth pre The column is in the selected Mth q A correction algorithm is used to perform correction in a rectangular area.

7. The method according to claim 6, characterized in that In step 4, let R be the number of rows in image I, Δx1 be the Yth pre The vertical gradient of the column image, D is the range of traversal search in the correction algorithm, and its size is set according to the actual image jitter degree. The parameter formula is expressed as: Δx1=I(1:R-1, Y pre )-I(2:R, Y pre ) D=25 Let k = -D, -D+1, …, D, and transform the Yth pre All elements of the image in column +1 and beyond are offset in the vertical direction by a size of k, and the image at this time is recorded as I k , Y pre Column to Y pre All elements in the +1 column are I k (:, Y pre +1); Let Δx2 be the Yth pre +1 column image in the vertical direction gradient, Δy is image I k (:, Y pre : Y pre +1) The gradient size in the horizontal direction, G is the image I k (:, Y pre : Y pre +1) The horizontal gradient size of the vertical gradient, then: Δx2=I k (1:R-1, Y pre +1)- I k (2:R, Y pre +1) Δy=|I k (:, Y pre )- I k (: Y pre +1)| G=|Δx1-Δx2|.

8. The method according to claim 6, characterized in that In step 4, the p row numbers contained in the m rectangular areas are recorded in a one-dimensional variable X of size 1×p; (j=1, 2, …, p) represents the row number recorded by the j-th element of X; let The image I in the selected area k The average value of the horizontal gradient reflects the smoothness of the intensity transition between two adjacent columns of the image. The image I in the selected area k The average value of the horizontal gradient of the vertical gradient reflects the degree of edge alignment of adjacent columns of the image. To correct the evaluation value, a and b are and The weight size, The smaller the value, the better the image correction effect of the two adjacent columns is. T is the correction evaluation value when the correction effect is the best. The expressions of each parameter are as follows: The image Yth when the T value is taken pre The offset of +1 column is denoted as d, and the corrected image is updated to I=I k , where k=d, updates all row coordinates x calculated subsequently n =x n +Dx, where n=1, 2, ..., 2N, updates all row intervals H calculated subsequently 1,i =H 1,i +Dx,H 2,i = H 2,i +Dx, where i=1, 2, ..., N, updates the column coordinate Y pre = Y pre +ly, clear variables M, X, and return to step 3.

9. An electronic device comprising a memory and a processor, wherein the memory stores a computer program, wherein: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 8 are implemented.

10. A computer-readable storage medium for storing computer instructions, characterized in that: When the computer instructions are executed by a processor, the steps of the method according to any one of claims 1 to 8 are implemented.

Citation Information

Patent Citations

  • Blur detecting device, blur correcting device, imaging device, and blur detecting method

    CN101390381A

  • Multi-mode integrated test platform and test method of air-based photoelectric system

    CN109612512A

  • Assessing quality of images or videos using a two-stage quality assessment

    US20180286032A1