Image synthesis method and device based on adaptive adjustment factor
Through adaptive adjustment factors and Gaussian pyramid construction technology, the problem of insufficient dynamic range of low-light CCD/CMOS image sensors is solved, and the detail information of high dynamic images is improved and retained, which is suitable for image synthesis under orbital imaging conditions.
Patent Information
- Application Number
- CN202110878500.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-08-02
- Publication Date
- 2024-10-22
- Estimated Expiration
- 2041-08-02
AI Technical Summary
The dynamic range of existing low-light CCD/CMOS image sensors is insufficient, causing low-brightness targets to be overwhelmed by noise and high-brightness targets to reach saturation. Moreover, existing multi-exposure fusion methods are not suitable for full-color remote sensing images, resulting in loss of details.
Using an image synthesis method based on adaptive adjustment factors, by acquiring multiple TDI integral level images with different integration levels, a Gaussian pyramid scale space is constructed, a weighted image is generated, and adaptive guided filtering is performed to synthesize a highly dynamic image and avoid Edge efficiency improves image detail information.
It improves the detailed information of dynamic images, enhances the dynamic range of images, avoids loss of details, and is suitable for image synthesis under orbital imaging conditions.
Smart Images

Figure CN113674186B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of dynamic image synthesis, and in particular to an image synthesis method, device, storage medium and equipment based on adaptive adjustment factors. Background Art
[0002] Currently, the dynamic range of ordinary low-light CCD / CMOS image sensors is much smaller than the dynamic range of real scenes, causing low-brightness targets to be even submerged by camera noise, while high-brightness targets reach saturation.
[0003] Commonly used high-dynamic image enhancement methods are usually obtained in two ways. One is hardware expansion, which is to redesign the CCD or CMOS, introduce new light modulation devices, and change the efficiency and flexibility of exposure. The other is software processing method, based on the long and short exposure fusion method, through image processing, the detailed features of targets with different brightness in the scene are retained on one image.
[0004] However, it is usually difficult to obtain images of the same scene with different exposure times during on-orbit imaging without adding detectors. Moreover, most of the existing multi-exposure fusion algorithms are developed for color images, and the weight factors for panchromatic remote sensing image synthesis are no longer applicable, resulting in loss of details after synthesis. To solve the above problems, a multi-integral series high-dynamic synthesis method based on adaptive adjustment filtering is needed. Summary of the invention
[0005] The embodiments of the present invention provide an image synthesis method, apparatus, storage medium and device based on an adaptive adjustment factor, which can synthesize dynamic images by adaptively adjusting the factors to improve the detail information of the dynamic synthesized images.
[0006] According to an embodiment of the present invention, there is provided an image synthesis method based on an adaptive adjustment factor, comprising the following steps:
[0007] Acquire multiple TDI integration level images with different integration levels;
[0008] Calculate the TDI integral level images, and select multiple TDI integral level images as low dynamic input images;
[0009] Construct a Gaussian pyramid scale space for the selected low-dynamic input image;
[0010] Based on the Gaussian pyramid scale space, weight factors are constructed for low-dynamic input images to generate weight images;
[0011] Establishing an adaptively adjusted guided filter to filter the weighted image;
[0012] After filtering, multiple low-dynamic input images in a multi-scale space are synthesized and the synthesized image is output.
[0013] Further, when calculating the TDI integral level images, selecting a plurality of TDI integral level images as low dynamic input images includes:
[0014] Calculate the entropy value and image gradient value of the TDI integral level image respectively;
[0015] The entropy value and image gradient value are used as evaluation indicators for selecting low-dynamic input images, and multiple TDI integral level images are selected as low-dynamic input images according to the evaluation indicators.
[0016] Further, the entropy value and the image gradient value of the TDI integral magnitude image are calculated respectively by using an evaluation index formula;
[0017] The evaluation index formula is:
[0018] D i =E i +G i
[0019] Among them, the calculation results of the image entropy value and image gradient value are recorded as E1, E2, ..., E N and G1,G2,...,G N ;D i represents the i-th evaluation index, E i represents the i-th entropy value, G i Represents the i-th image gradient value.
[0020] Furthermore, constructing a Gaussian pyramid scale space for the selected low-dynamic input image includes:
[0021] A Gaussian pyramid multi-scale space is established for each low-dynamic input image.
[0022] Furthermore, based on the Gaussian pyramid scale space, a weight factor is constructed for the low dynamic input image, and the generated weight image includes:
[0023] Calculate the contrast weight coefficient of the low-dynamic input image at each level of the Gaussian pyramid;
[0024] Calculate the texture factor weight coefficient of each layer of the low dynamic input image of the Gaussian pyramid;
[0025] The scale space of any low-dynamic input image is summed.
[0026] Further, the contrast weight coefficient of the low-dynamic input image is calculated by a contrast weight calculation formula;
[0027] The contrast weight calculation formula is:
[0028]
[0029] Where wg(x,y) represents the output grayscale weight image, X(x,y) represents the input image, x and y represent the row and column coordinates of the image. mean(X) represents the grayscale mean of the image, and σ is set to 0.5;
[0030] The texture factor weight coefficient of each layer of the low-dynamic input image of the Gaussian pyramid is calculated by the texture factor calculation formula;
[0031] The texture factor calculation formula is:
[0032] wp(x,y)=||X(x,y)-μ|| a
[0033] Where X(x,y) represents the input image; wp(x,y) represents the output texture weight image, ||.|| is the bi-norm of the image, μ is the mean of the image, and a is set to 2;
[0034] The weighted image summation formula is used to sum the i-th scale space of any low-dynamic input image;
[0035] The weighted image summation formula is:
[0036] W i =Wg i +Wp i
[0037] Among them, Wg i Represents the grayscale weight of the input, Wp i Represents the input texture weight, W i Represents the output weight. The M-layer pyramid weights {W11,W12,...,W1 M}; M-layer pyramid weights {W21, W22, ..., W2 M}; M-level pyramid weights {W31, W32, ..., W3 M}.
[0038] Further, establishing the adaptively adjusted guided filtering to filter the weighted image includes:
[0039] Compute the gradient of a low-dynamic input image;
[0040] Calculate any pixel of the low-dynamic input image and adaptively adjust the weight factor;
[0041] For the weight factors of low-dynamic input images, the guided filtering method is used to correct the weight image.
[0042] Further, a gradient image is calculated based on a gradient calculation formula;
[0043] The gradient calculation formula is as follows:
[0044]
[0045] in, F is the output gradient image Img1_gi, Img2_gi and Img3_gi; X represents the input image Img1 i ,Img2 i and Img3 i ; Represents the convolution symbol, h x and h y The assignment is as follows:
[0046]
[0047] Calculate the adaptive adjustment factor T for any pixel j of the image using the adaptive adjustment factor calculation formula j ;
[0048] The adaptive adjustment factor calculation formula is as follows:
[0049]
[0050] in, and is the variance and mean of the image in a 3×3 domain centered on pixel j; and are the variance and mean of the image in the 7×7 domain centered on pixel j. α1 and β1 are set to 10 -8 ;
[0051] The weight map is corrected by a filtering calculation formula; the filtering calculation formula is:
[0052] w'=G(X,w,r,Tε)
[0053] Where X is the input guided filter image; w is W i Corresponding weight factor W1 i ,W2 i ,W2 i ; G represents the original guided filtering method, r is the filter radius, T is calculated from the above, and ε is the regularization factor in the original guided filtering method; the weight factor of the output after the improved guided rate is: W1' i , W2' i, W3' i .
[0054] Furthermore, after filtering, multiple images in the multi-scale space are synthesized, and the output synthesized image includes:
[0055] Synthesize low-dynamic input images at each level of the Gaussian pyramid;
[0056] In the space of Gaussian pyramid, TDI integral-order images of different integral orders are sampled to the same scale, and image synthesis and reconstruction are performed in the space of Gaussian pyramid.
[0057] Furthermore, each layer of the image of the Gaussian pyramid is synthesized by an image synthesis formula;
[0058] The image synthesis formula is as follows:
[0059]
[0060] Among them, Imgi is the image synthesized by the i-th layer of pyramid, the Gaussian pyramid has a total of M layers, and N is the number of images;
[0061] Image reconstruction is performed based on an image reconstruction formula; the image reconstruction formula is as follows:
[0062] Img=S{Img1,s1}+S{Img2,s2}+...+S{ImgM,sM}.
[0063] Wherein, Img is the output high dynamic image, S{} represents image upsampling, s1, s2, ..., sM are sampling multiples; in this embodiment, s1 = 4, s2 = 2, s3 = 1.
[0064] An image synthesis device based on an adaptive adjustment factor, comprising:
[0065] An image acquisition module, used for acquiring a plurality of TDI integral level images with different integral levels;
[0066] An image calculation module is used to calculate TDI integral scale images and select multiple TDI integral scale images as low dynamic input images;
[0067] A Gaussian pyramid construction module is used to construct a multi-scale space of a Gaussian pyramid for the selected low-dynamic input image;
[0068] A weight factor construction module is used to construct a weight factor for a low-dynamic input image based on a Gaussian pyramid scale space to generate a weight image;
[0069] An image filtering module is used to establish an adaptively adjusted guided filter to filter the weighted image;
[0070] The image synthesis module is used to synthesize multiple low-dynamic input images in a multi-scale space after filtering processing, and output the synthesized image.
[0071] Furthermore, the image calculation module includes:
[0072] A calculation unit, used for respectively calculating the entropy value and image gradient value of the TDI integral score level image;
[0073] The selection unit is used to use entropy value and image gradient value as evaluation indicators for selecting low-dynamic input images, and select multiple TDI integral scale images as low-dynamic input images according to the evaluation indicators.
[0074] A computer-readable storage medium stores one or more programs, and the one or more programs can be executed by one or more processors to implement any step in a dynamic image synthesis method based on an adaptive adjustment factor.
[0075] A terminal device comprises: a processor, a memory and a communication bus; the memory stores a computer-readable program executable by the processor;
[0076] The communication bus realizes the connection and communication between the processor and the memory;
[0077] When the processor executes the computer-readable program, the processor implements the steps of any one of the dynamic image synthesis methods based on adaptive adjustment factors.
[0078] In the image synthesis method, device, storage medium and equipment based on adaptive adjustment factor of the present invention, the method includes: calculating TDI integral scale images, selecting multiple TDI integral scale images as low dynamic input images; constructing Gaussian pyramid scale space for the selected low dynamic input images; constructing weight factors for the low dynamic input images based on Gaussian pyramid scale space to generate weight images; establishing adaptive adjustment guided filtering to filter the weight images; after filtering, synthesizing multiple low dynamic input images in multi-scale space and outputting the synthesized image. The weight images are filtered by adaptive adjustment factors to avoid edge effects; image synthesis fusion is performed in multi-scale space to improve the detail information of dynamic synthetic images. BRIEF DESCRIPTION OF THE DRAWINGS
[0079] The drawings described herein are used to provide a further understanding of the present invention and constitute a part of this application. The exemplary embodiments of the present invention and their descriptions are used to explain the present invention and do not constitute an improper limitation of the present invention. In the drawings:
[0080] Figure 1 A flowchart of an image synthesis method based on an adaptive adjustment factor according to the present invention;
[0081] Figure 2 Statistical result diagram of image entropy and gradient at different integral series of the present invention;
[0082] Figure 3 The present invention calculates the initial grayscale and texture weight image map;
[0083] Figure 4 The present invention is a grayscale and texture weight image after adaptive filtering;
[0084] Figure 5 The present invention is an input image map of low dynamic and different integral series;
[0085] Figure 6 The high dynamic image output by the present invention;
[0086] Figure 7 It is a principle diagram of an image synthesis device based on an adaptive adjustment factor of the present invention;
[0087] Figure 8 This is a structural principle diagram of the terminal device provided by the present invention. DETAILED DESCRIPTION
[0088] In order to enable those skilled in the art to better understand the scheme of the present invention, the technical scheme in the embodiment of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiment of the present invention. Obviously, the described embodiment is only an embodiment of a part of the present invention, rather than all the embodiments. Based on the embodiments in the present invention, all other embodiments obtained by ordinary technicians in this field without making creative work should belong to the scope of protection of the present invention. The embodiments described with reference to the drawings are exemplary and are only used to explain the present invention, and cannot be interpreted as limiting the present invention. In addition, if the detailed description of the known technology is unnecessary for illustrating the features of the present invention, it will be omitted.
[0089] It should be noted that the terms "first", "second", etc. in the specification and claims of the present invention and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged where appropriate, so that the embodiments of the present invention described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units that are clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.
[0090] It will be understood by those skilled in the art that, unless otherwise defined, all terms (including technical and scientific terms) used herein have the same meaning as generally understood by those skilled in the art in the art to which the present invention belongs. It should also be understood that terms such as those defined in general dictionaries should be understood to have meanings consistent with the meanings in the context of the prior art, and will not be interpreted with idealized or overly formal meanings unless specifically defined as herein.
[0091] See also Figure 1 , the present application proposes an image synthesis method based on an adaptive adjustment factor, the method comprising the following steps:
[0092] S101: Acquire a plurality of TDI integration level images with different integration levels;
[0093] S102: Calculate the TDI integral level images and select multiple TDI integral level images as low dynamic input images;
[0094] S103: constructing a Gaussian pyramid scale space for the selected low-dynamic input image;
[0095] S104: constructing a weight factor for the low-dynamic input image based on the Gaussian pyramid scale space to generate a weight image;
[0096] S105: Establishing an adaptively adjusted guided filter to perform filtering processing on the weighted image;
[0097] S106: After filtering, multiple low-dynamic input images in the multi-scale space are synthesized, and a synthesized image is output.
[0098] In the image synthesis method, device, storage medium and equipment based on adaptive adjustment factor of the present invention, the method includes: calculating TDI integral scale images, selecting multiple TDI integral scale images as low dynamic input images; constructing Gaussian pyramid scale space for the selected low dynamic input images; constructing weight factors for the low dynamic input images based on Gaussian pyramid scale space to generate weight images; establishing adaptive adjustment guided filtering to filter the weight images; after filtering, synthesizing multiple low dynamic input images in multi-scale space and outputting the synthesized image. The weight images are filtered by adaptive adjustment factors to avoid edge effects; image synthesis fusion is performed in multi-scale space to improve the detail information of dynamic synthetic images.
[0099] Specifically, in order to make the algorithm implementable on-orbit, information entropy and gradient are used as evaluation criteria based on digital TDI multi-levels; according to the evaluation criteria, multiple integral series images are selected as low-dynamic input images; then, Gaussian pyramid space is constructed for different integral series images, and two weight coefficients are established; an adaptive adjustment factor is proposed to filter the weights to avoid edge benefits. Finally, fusion is performed in multi-scale space and high-dynamic images are input. The method of this application is conducive to on-orbit implementation, and can adaptively filter weights to improve the detail information of high-dynamic synthetic images.
[0100] In the embodiment, when calculating the TDI integral level image, selecting a plurality of TDI integral level images as low dynamic input images includes:
[0101] Calculate the entropy value and image gradient value of the TDI integral level image respectively;
[0102] The entropy value and image gradient value are used as evaluation indicators for selecting low-dynamic input images, and multiple TDI integral level images are selected as low-dynamic input images according to the evaluation indicators.
[0103] The following are the specific steps for calculating the TDI integral level images and selecting multiple TDI integral level images as low dynamic input images:
[0104] Step 1: Calculate the entropy value and image gradient value of the TDI integral level image respectively. The calculation results of the image entropy value and image gradient value are recorded as E1, E2, ..., E N and G1,G2,...,G N .
[0105] Step 2: Use entropy value and image gradient value as evaluation indicators. The values of the evaluation indicators are recorded as: D1, D2, ... D N .
[0106] Step 3: Calculate the evaluation index according to the evaluation index calculation formula.
[0107] The evaluation index formula is:
[0108] D i =E i +G i
[0109] Among them, D i represents the i-th evaluation index, E i represents the i-th entropy value, G i Represents the i-th image gradient value.
[0110] Step 4: Calculate D1, D2, ...D N The mean value D mid and the maximum value D max, will exceed the mean value D mid The evaluation index is regarded as the integral level j1 and j2, and the maximum value D max The corresponding integral level is considered to be j3.
[0111] Step 5: Select three images Img1, Img2 and Img3 with different integral levels corresponding to j1, j2 and j3.
[0112] See also Figure 2-6 The following is a specific example of calculating the TDI integral level image, and multiple TDI integral level images are selected as low dynamic input images for explanation:
[0113] First, N images of different digital TDI integration levels are input; in this embodiment, N=5, and the integration levels are 5, 10, 20, 30 and 35 respectively.
[0114] Step 1: Calculate the entropy value and image gradient value of the N-level digital TDI integral image respectively. The entropy value and image gradient value calculation results are recorded as: E1, E2, ..., E N and G1,G2,...,G N ; In this embodiment, the entropy values and image gradient values are 6.3, 7.8, 8.5, 7.4 and 40.2, 60.9, 100.4, 70.6 and 32.9 respectively.
[0115] Step 2: Use entropy value and image gradient value as evaluation indicators. The values of the evaluation indicators are recorded as: D1, D2, ... D N .
[0116] Step 3: Calculate the evaluation index D1, D2, ...D N ,The calculation formula of evaluation index is:
[0117] D i =E i +G i
[0118] Step 4: Calculate D1, D2, ...D N The mean value D mid and the maximum value D max , find the value D that just exceeds the mean value from large to small mid The integral series levels j1 and j2, as well as the maximum value D max The corresponding integral level j3. In this embodiment, the evaluation indicators are 46.5, 68.7, 108.9, 78, and 37.1 respectively. The average value D mid The maximum value D is 67.84. max It is 108.9, so we take three images corresponding to the integral levels j1=10, j2=30, and j3=20.
[0119] Step 5: Input three images Img1, Img2 and Img3 with different integral levels corresponding to j1, j2 and j3.
[0120] In an embodiment, constructing a Gaussian pyramid scale space for a selected low-dynamic input image includes:
[0121] A Gaussian pyramid multi-scale space is established for each low-dynamic input image.
[0122] Specifically, for each low-dynamic input image, a Gaussian pyramid multi-scale space is established, including:
[0123] Step 1: Construct the Laplican Gaussian pyramid multi-scale space of Img1: Img1 G ={Img11,Img12,...,Img1 M}.
[0124] Step 2: Construct the Laplican Gaussian pyramid multi-scale space of Img2: Img2 G ={Img21,Img22,...,Img2 M}.
[0125] Step 3: Construct the Laplican Gaussian pyramid multi-scale space of Img3: Img3 G ={Img31,Img32,...,Img3 M}.
[0126] Wherein, M is the number of layers of the Gaussian pyramid. In this embodiment, M=3.
[0127] In the embodiment, based on the Gaussian pyramid scale space, constructing a weight factor for the low dynamic input image, generating a weight image includes:
[0128] Calculate the contrast weight coefficient of the low-dynamic input image at each level of the Gaussian pyramid;
[0129] Calculate the texture factor weight coefficient of each layer of the low dynamic input image of the Gaussian pyramid;
[0130] For any low-dynamic input image, the sum of the i-th scale space is performed.
[0131] The following are the specific steps for constructing weight factors for low-dynamic input images and generating weight images based on the Gaussian pyramid scale space:
[0132] Step 1: Calculate the contrast weight coefficient of each layer of the low-dynamic input image of the Gaussian pyramid through the contrast weight calculation formula; the contrast weight calculation formula is:
[0133]
[0134] Among them, wg(x,y) represents the output grayscale weight image, X(x,y) represents the input image, x and y represent the row and column coordinates of the image. mean(X) represents the grayscale mean of the image, and σ is set to 0.5.
[0135] Step 2: Calculate the texture factor weight coefficient of each layer of the low-dynamic input image of the Gaussian pyramid through the texture factor calculation formula; the texture factor calculation formula is:
[0136] wp(x,y)=||X(x,y)-μ|| a
[0137] Among them, X(x,y) represents the input image; wp(x,y) represents the output texture weight image, ||.|| is the bi-norm of the image, μ is the mean of the image, and a is set to 2.
[0138] Step 3: Use the weighted image summation formula to sum the i-th scale space of any low-dynamic input image; the weighted image summation formula is:
[0139] W i =Wg i +Wp i
[0140] Among them, Wg i Represents the grayscale weight of the input, Wp i Represents the input texture weight, W i Represents the output weight. The M-layer pyramid weights {W11,W12,...,W1 M}; M-layer pyramid weights {W21, W22, ..., W2 M}; M-level pyramid weights {W31, W32, ..., W3 M}.
[0141] The following is a specific example of constructing a weight factor for a low-dynamic input image based on the Gaussian pyramid scale space to generate a weight image:
[0142] Step 1: For each layer image Img1 of the input pyramid i 、Img2 i and Img3 i Calculate the contrast weight coefficient, the formula is as follows:
[0143]
[0144] Among them, wg(x,y) represents the output grayscale weight image Img1i _W,Img2 i _W,Img3 i _W, X(x,y) represents the input image Img1 i ,Img2 i ,Img3 i , x and y represent the row and column coordinates of the image. mean(X) represents the grayscale mean of the image, and σ is set to 0.5.
[0145] Step 2: For each layer image Img1 of the input pyramid i 、Img2 i and Img3 i The image calculates the texture factor weight coefficient, the formula is as follows:
[0146] wp(x,y)=||X(x,y)-μ|| a
[0147] Among them, X(x,y) represents the input image Img1 i 、Img2 i and Img3 i ; wp(x,y) represents the output texture weight image Img1 i _Wp,Img2 i _Wp and Img3 i _Wp; ||.|| is the binary norm of the image, μ is the mean of the image, and a is set to 2.
[0148] Step 3: Sum the weighted image of the i-th scale space of any image. The formula is as follows:
[0149] W i =Wg i +Wp i
[0150] In an embodiment, establishing an adaptively adjusted guided filter to filter the weighted image includes:
[0151] Compute the gradient of a low-dynamic input image;
[0152] Calculate any pixel of the low-dynamic input image and adaptively adjust the weight factor;
[0153] For the weight factors of low-dynamic input images, the guided filtering method is used to correct the weight image.
[0154] The following is a specific embodiment of establishing an adaptively adjusted guided filter to perform filtering on the weighted image:
[0155] Step 1: Calculate image Img1 based on the gradient calculation formula i、Img2 i and Img3 i The gradient image of is as follows:
[0156]
[0157] in, F is the output gradient image Img1_gi, Img2_gi and Img3_gi; X represents the input image Img1 i ,Img2 i and Img3 i ; Represents the convolution symbol, h x and h y The assignment is as follows:
[0158]
[0159] Step 2: Calculate image Img1 i ,Img2 i and Img3 i For any pixel point j, calculate the adaptive adjustment factor T j , the calculation formula is as follows:
[0160]
[0161] in, and is the variance and mean of the image in a 3×3 domain centered on pixel j; and are the variance and mean of the image in the 7×7 domain centered on pixel j. α1 and β1 are set to 10 -8 .
[0162] Step 3: For image Img1 i ,Img2 i and Img3 i The weight factor produced is used to correct the weight map using the guided filtering method; T is used for each pixel j ε replaces ε in the original guided filter function, and the weights are calculated to perform adaptive adjustment guided filter processing. The formula is as follows:
[0163] w'=G(X,w,r,Tε)
[0164] Where X is the input guided filter image Img1 i ,Img2 i and Img3 i ; w is W i Corresponding weight factor W1 i ,W2 i,W2 i ; G represents the original guided filtering method, r is the filter radius, T is calculated from the above, and ε is the regularization factor in the original guided filtering method. The weight factor of the output after the improved guided rate is: W1' i , W2' i , W3' i .
[0165] Step 4: Weight W1' i , W2' i , W3' i Perform normalization:
[0166]
[0167]
[0168]
[0169] in, and is W1' i , W2' i , W3' i Normalized total weight factor
[0170] In the embodiment, after filtering, multiple images in the multi-scale space are synthesized, and the synthesized image output includes:
[0171] Synthesize low-dynamic input images at each level of the Gaussian pyramid;
[0172] In the space of Gaussian pyramid, TDI integral-order images of different integral orders are sampled to the same scale, and image synthesis and reconstruction are performed in the space of Gaussian pyramid.
[0173] The following is an explanation of the image synthesis in scale space using a specific embodiment:
[0174] Step 1: For each layer of the Gaussian pyramid image Img1 i 、Img2 i and Img3 i The synthesis formula is as follows:
[0175]
[0176] Among them, Imgi is the image synthesized by the i-th layer of the pyramid, and the Gaussian pyramid has a total of M layers.
[0177] Step 2: In the Laplican Gaussian pyramid space, sample the image Imgi (i = 1, 2, ..., M) to the same scale and reconstruct the image based on the image reconstruction formula. The image reconstruction formula is as follows:
[0178] Img=S{Img1,s1}+S{Img2,s2}+...+S{ImgM,sM}
[0179] Wherein, Img is the output high dynamic image, S{} represents image upsampling, s1, s2, ..., sM are sampling multiples; in this embodiment, s1 = 4, s2 = 2, s3 = 1.
[0180] An image synthesis device based on adaptive adjustment factors, see Figure 7 ,include:
[0181] An image acquisition module 100 is used to acquire a plurality of TDI integral level images with different integral levels;
[0182] An image calculation module 200 is used to calculate TDI integral scale images and select multiple TDI integral scale images as low dynamic input images;
[0183] A Gaussian pyramid construction module 300 is used to construct a multi-scale space of a Gaussian pyramid for the selected low-dynamic input image;
[0184] The weight factor construction module 400 is used to construct a weight factor for the low-dynamic input image based on the Gaussian pyramid scale space to generate a weight image;
[0185] An image filtering module 500 is used to establish an adaptively adjusted guided filter to filter the weighted image;
[0186] The image synthesis module 600 is used to synthesize multiple low-dynamic input images in a multi-scale space after filtering processing, and output the synthesized image.
[0187] In the image synthesis method, device, storage medium and equipment based on adaptive adjustment factors of the present invention, the device includes: calculating TDI integral fractional images, selecting multiple TDI integral fractional images as low-dynamic input images; constructing a Gaussian pyramid scale space for the selected low-dynamic input images; constructing weight factors for the low-dynamic input images based on the Gaussian pyramid scale space to generate weight images; establishing an adaptively adjusted guided filter to filter the weighted images; after filtering, synthesizing multiple low-dynamic input images in a multi-scale space, and outputting the synthesized image. The weighted images are filtered by adaptive adjustment factors to avoid edge effects; image synthesis fusion is performed in a multi-scale space to improve the detail information of the dynamic synthesized image. The weighted images are filtered by adaptive adjustment factors to avoid edge effects; image synthesis fusion is performed in a multi-scale space to improve the detail information of the dynamic synthesized image.
[0188] In an embodiment, the image calculation module includes:
[0189] A calculation unit, used for respectively calculating the entropy value and image gradient value of the TDI integral score level image;
[0190] The selection unit is used to use entropy value and image gradient value as evaluation indicators for selecting low-dynamic input images, and select multiple TDI integral scale images as low-dynamic input images according to the evaluation indicators.
[0191] Based on the above-mentioned positioning method based on video information, this embodiment provides a computer-readable storage medium, which stores one or more programs. The one or more programs can be executed by one or more processors to implement the steps in the image synthesis method based on the adaptive adjustment factor in the above-mentioned embodiment.
[0192] A terminal device comprises: a processor, a memory and a communication bus; the memory stores a computer-readable program that can be executed by the processor; the communication bus realizes the connection and communication between the processor and the memory; when the processor executes the computer-readable program, the steps in the dynamic image synthesis method based on adaptive adjustment factor are realized.
[0193] Based on the above-mentioned image synthesis method based on adaptive adjustment factor, the present application provides a terminal device, such as Figure 8 As shown, it includes at least one processor (processor) 20; display screen 21; and memory (memory) 22, and may also include a communications interface (Communications Interface) 23 and a bus 24. Among them, the processor 20, the display screen 21, the memory 22 and the communication interface 23 can communicate with each other through the bus 24. The display screen 21 is configured to display a preset user guide interface in the initial setting mode. The communication interface 23 can transmit information. The processor 20 can call the logic instructions in the memory 22 to execute the method in the above embodiment.
[0194] In addition, the logic instructions in the memory 22 can be implemented in the form of software functional units and can be stored in a computer-readable storage medium when sold or used as an independent product.
[0195] The memory 22 is a computer-readable storage medium that can be configured to store software programs, computer executable programs, such as program instructions or modules corresponding to the methods in the embodiments of the present disclosure. The processor 20 executes functional applications and data processing by running the software programs, instructions or modules stored in the memory 22, that is, implementing the methods in the above embodiments.
[0196] The memory 22 may include a program storage area and a data storage area, wherein the program storage area may store an operating system and at least one application required for a function; the data storage area may store data created according to the use of the terminal device, etc. In addition, the memory 22 may include a high-speed random access memory and may also include a non-volatile memory. For example, a variety of media that can store program codes, such as a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a disk or an optical disk, may also be a transient storage medium.
[0197] In addition, the specific process of loading and executing the multiple instruction processors in the above-mentioned storage medium and the terminal device has been described in detail in the above-mentioned method, and will not be described one by one here.
[0198] The above descriptions are only preferred implementations of the present invention. It cannot be determined that the specific implementation of the present invention is limited to these descriptions. It should be pointed out that for ordinary technicians in this technical field, several improvements and modifications can be made without departing from the principles of the present invention. These improvements and modifications should also be regarded as the scope of protection of the present invention.
Claims
1. An image synthesis method based on an adaptive adjustment factor, characterized in that: The following steps are involved: Acquire multiple TDI integration level images with different integration levels; Calculating the TDI integral scale images, and selecting a plurality of the TDI integral scale images as low dynamic input images; Constructing a multi-scale space of a Gaussian pyramid for the selected low-dynamic input image; Based on the multi-scale space of the Gaussian pyramid, construct a weight factor for the low-dynamic input image to generate a weight image; Establishing an adaptively adjusted guided filter to filter the weighted image; After filtering, synthesizing the plurality of low-dynamic input images in the multi-scale space, and outputting a synthesized image; Based on the multi-scale space of the Gaussian pyramid, a weight factor is constructed for the low dynamic input image, and generating a weight image includes: Calculating the contrast weight coefficient of the low-dynamic input image at each layer of the Gaussian pyramid; Calculating a texture factor weight coefficient of the low-dynamic input image at each layer of the Gaussian pyramid; Summing the scale space of any one of the low-dynamic input images; Calculate the contrast weight coefficient of the low-dynamic input image by using the contrast weight calculation formula; The contrast weight calculation formula is: Among them, wg(x,y) represents the output grayscale weight image, X(x,y) represents the input image, x and y represent the row and column coordinates of the image, mean(X) represents the grayscale mean of the image, and σ is set to 0.5; The texture factor weight coefficient of each layer of the low-dynamic input image of the Gaussian pyramid is calculated by the texture factor calculation formula; The texture factor calculation formula is: wp(x,y)=||X(x,y)-μ|| Where X(x,y) represents the input image; wp(x,y) represents the output texture weight image, ||.|| is the bi-norm of the image, μ is the mean of the image, and a is set to 2; The weighted image summation formula is used to sum the i-th scale space of any low-dynamic input image; The weighted image summation formula is: IN i =According to i +Wp i Among them, Wg i Represents the grayscale weight of the input, Wp i Represents the input texture weight, W i Represents the output weight, the M-layer pyramid weight {W11,W12,...,W1 M }; M-layer pyramid weights {W21, W22, ..., W2 M }; M-level pyramid weights {W31, W32, ..., W3 M }.
2. The image synthesis method based on adaptive adjustment factor according to claim 1, characterized in that: The step of calculating the TDI integral level images and selecting a plurality of the TDI integral level images as low dynamic input images comprises: Calculating the entropy value and image gradient value of the TDI integral scale image respectively; The entropy value and the image gradient value are used as evaluation indicators for selecting a low-dynamic input image, and a plurality of the TDI integral scale images are selected as the low-dynamic input images according to the evaluation indicators.
3. The image synthesis method based on adaptive adjustment factor according to claim 2, characterized in that: Calculate the entropy value and image gradient value of the TDI integral magnitude image respectively by using the evaluation index formula; The evaluation index formula is: D i =E i +G i Among them, the calculation results of the image entropy value and image gradient value are recorded as E1, E2, ..., E N and G1,G2,...,G N ;D i represents the i-th evaluation index, E i represents the i-th entropy value, G i Represents the i-th image gradient value.
4. The image synthesis method based on adaptive adjustment factor according to claim 1, characterized in that: The multi-scale space of constructing a Gaussian pyramid for the selected low-dynamic input image includes: A multi-scale space of a Gaussian pyramid is established for each of the low-dynamic input images.
5. The image synthesis method based on adaptive adjustment factor according to claim 1, characterized in that: The step of establishing the adaptively adjusted guided filtering to filter the weight image includes: Calculating the gradient of the low dynamic input image; Calculate any pixel point of the low dynamic input image and adaptively adjust the weight factor; For the weight factor of the low-dynamic input image, a guided filtering method is used to correct the weight image.
6. The image synthesis method based on adaptive adjustment factor according to claim 5, characterized in that: Calculate the gradient image based on the gradient calculation formula; The gradient calculation formula is as follows: in, F is the output gradient image Img1_gi, Img2_gi and Img3_gi; X represents the input image Img1 i ,Img2 i and Img3 i ; Represents the convolution symbol, h x and h y The assignment is as follows: Calculate the adaptive adjustment factor T for any pixel j of the image using the adaptive adjustment factor calculation formula j ; The adaptive adjustment factor calculation formula is as follows: in, and is the variance and mean of the image in a 3×3 domain centered on pixel j; and They are the variance and mean of the image in the 7×7 domain centered on pixel j, and α1 and β1 are set to 10 -8 ; The weight map is corrected by a filtering calculation formula; the filtering calculation formula is: w'=G(X,w,r,Tε) Where X is the input guided filter image; w is W i Corresponding weight factor W1 i ,W2 i ,W2 i ; G represents the original guided filtering method, r is the filter radius, T is calculated from the above, ε is the regularization factor in the original guided filtering method; the weight factor of the output after the improved guided rate is "' For: W1 i , W2 i , W3 i .
7. The image synthesis method based on adaptive adjustment factor according to claim 1, characterized in that: After the filtering process, the multiple images in the multi-scale space are synthesized, and the synthesized image output includes: Synthesizing the low-dynamic input image at each layer of the Gaussian pyramid; In the multi-scale space of the Gaussian pyramid, TDI integral-order images of different integral orders are sampled to the same scale, and image synthesis and reconstruction are performed in the multi-scale space of the Gaussian pyramid.
8. The image synthesis method based on adaptive adjustment factor according to claim 7, characterized in that: Each layer of the image of the Gaussian pyramid is synthesized through the image synthesis formula; The image synthesis formula is as follows: Among them, Imgi is the image synthesized by the i-th layer of pyramid, the Gaussian pyramid has a total of M layers, and N is the number of images; Image reconstruction is performed based on an image reconstruction formula; the image reconstruction formula is as follows: Img=S{Img1,s1}+S{Img2,s2}+...+S{ImgM,sM} Among them, Img is the output high dynamic image, S{} represents image upsampling, s1, s2, …, sM are sampling multiples; among them, s1 = 4, s2 = 2, s3 = 1.
9. An image synthesis device based on adaptive adjustment factors using the image synthesis method based on adaptive adjustment factors according to claim 1, characterized in that: include: An image acquisition module, used for acquiring a plurality of TDI integral level images with different integral levels; An image calculation module, used for calculating the TDI integral scale image, and selecting a plurality of the TDI integral scale images as low dynamic input images; A Gaussian pyramid construction module, used for constructing a multi-scale space of a Gaussian pyramid for the selected low-dynamic input image; A weight factor construction module, used to construct a weight factor for the low dynamic input image based on the multi-scale space of the Gaussian pyramid to generate a weight image; An image filtering module, used for establishing an adaptively adjusted guided filter to filter the weighted image; The image synthesis module is used to synthesize the multiple low-dynamic input images in the multi-scale space after filtering and output the synthesized image.
10. A computer-readable medium, characterized in that The computer-readable storage medium stores one or more programs, and the one or more programs can be executed by one or more processors to implement the steps in the dynamic image synthesis method based on adaptive adjustment factors as described in any one of claims 1-8.
11. A terminal device, characterized in that: include: Processor, memory and communication bus; The memory stores a computer-readable program executable by the processor; The communication bus realizes the connection and communication between the processor and the memory; When the processor executes the computer-readable program, the steps in the dynamic image synthesis method based on the adaptive adjustment factor as described in any one of claims 1 to 8 are implemented.
Citation Information
Patent Citations
Method for acquiring binocular image maximum parallax based on optical flow method
CN104869387A
High-dynamic-range image fusion method based on gradient and brightness information
CN104881854A
Multi-scale detail fusion multi-exposure high dynamic image reconstruction method
CN107845128A
Method, apparatus and device for expanding dynamic imaging range of digital domain TDI
CN109451249A
A parameter calibration method of TDI-CCD camera based on N-type target
CN109544642A
