Method, device and equipment for enhancing permanent shadow region image of moon

Through the pre-trained image enhancement model and the dual-branch multi-feature fusion network, the brightness and contrast of the permanent shadow area of ​​the moon are dynamically adjusted, solving the problem of poor image visibility in the existing technology, achieving the improvement of image quality and the restoration of the lunar surface topography. .

CN118864282AInactive Publication Date: 2024-10-29WUHAN UNIV
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202410896083.0
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-05
Publication Date
2024-10-29
Estimated Expiration
Not applicable · inactive patent

AI Technical Summary

Technical Problem

The existing technology lacks an effective enhancement solution for images in the permanent shadow area of ​​the moon, resulting in poor image visibility, low signal-to-noise ratio, and inability to fully present the real content.

Method used

Using a method based on a pre-trained image enhancement model, through a dual-branch multi-feature fusion parameter learning network and an attention-based parameter weight learning architecture, it iteratively adjusts the dark brightness, mid-tone brightness and contrast of the moon's permanent shadow area image, and dynamically adjusts the pixels Parameter proportion, output a robust parameter set to improve image quality.

Benefits of technology

The enhanced image of the permanent shadow area of ​​the moon can restore the lunar surface landforms obscured by dark light. The image effect is close to that of real normal light pictures, which improves the quality and visibility of the image.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118864282A_ABST
    Figure CN118864282A_ABST
Patent Text Reader

Abstract

The invention provides a method, a device and equipment for enhancing a moon permanent shadow region image. The method comprises the following steps: acquiring a to-be-processed target image; wherein the to-be-processed target image is a moon permanent shadow region image which needs to be subjected to image enhancement; inputting the target image into a pre-training image enhancement model, and outputting an enhanced image through the pre-training image enhancement model; wherein the pre-training image enhancement model is obtained by training based on at least one group of training data, and each group of training data in the at least one group of training data comprises a sample image of a preset exposure type; the preset exposure types comprise underexposure, overexposure and normal exposure. By using the method provided by the embodiment of the invention, the quality of the moon permanent shadow region image can be improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the field of computer vision and deep space exploration technology, and in particular to a method, device, electronic device, non-transitory computer-readable storage medium, and computer program product for enhancing images of permanent shadow regions of the moon. Background Art

[0002] Due to the axial tilt of the moon and the undulating terrain of the lunar surface, there are some areas near the moon's poles that can never be directly exposed to sunlight. These areas are called permanent shadow areas.

[0003] Many studies have suggested that there may be water ice and other substances inside the permanent shadow area, which will provide material support for future lunar exploration and lunar base construction. The permanent shadow area does not have sufficient light, and only relies on a small amount of secondary lighting reflected from the surrounding area to form an image. Therefore, the images of the permanent shadow area taken by the camera on the orbiter have poor visibility, low signal-to-noise ratio, and less real content that can be presented.

[0004] In the prior art, there is no mature solution for image enhancement in permanent shadow areas. Therefore, how to provide a solution for enhancing images in permanent shadow areas of the moon has become a problem that needs to be solved urgently. Summary of the invention

[0005] The present disclosure provides a method, device, electronic device, non-transitory computer-readable storage medium and computer program product for enhancing images of the permanent shadow area of ​​the moon, so as to address the deficiencies in the prior art.

[0006] The present disclosure provides a method for enhancing an image of a permanent shadow region of the moon, comprising: Acquire a target image to be processed; wherein the target image to be processed is an image of the permanent shadow area of ​​the moon that needs to be enhanced; Inputting the target image into a pre-trained image enhancement model, and outputting an enhanced image via the pre-trained image enhancement model; The pre-trained image enhancement model is trained based on at least one set of training data, and each set of training data in the at least one set of training data includes a sample image of a preset exposure type; the preset exposure types include underexposure, overexposure and normal exposure.

[0007] The present disclosure also provides a device for enhancing an image of a permanent shadow region of the moon, comprising: The image acquisition module is configured to: acquire a target image to be processed; wherein the target image to be processed is an image of the permanent shadow area of ​​the moon that needs to be enhanced; An enhancement execution module is configured to: input the target image into a pre-trained image enhancement model, and output an enhanced image via the pre-trained image enhancement model; The pre-trained image enhancement model is trained based on at least one set of training data, and each set of training data in the at least one set of training data includes a sample image of a preset exposure type; the preset exposure types include underexposure, overexposure and normal exposure.

[0008] The present disclosure also provides an electronic device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the program, the method for enhancing the image of the permanent shadow area of ​​the moon as described in any one of the above is implemented.

[0009] The present disclosure also provides a non-transitory computer-readable storage medium having a computer program stored thereon. When the computer program is executed by a processor, the method for enhancing the image of the permanent shadow area of ​​the moon as described in any one of the above is implemented.

[0010] The present disclosure also provides a computer program product, including a computer program, which, when executed by a processor, implements any of the methods described above for enhancing images of the permanent shadow area of ​​the moon.

[0011] As described above, the method for enhancing the image of the permanent shadow area of ​​the moon provided by the embodiment of the present disclosure is based on learning a parameter set composed of multiple parameters to iteratively adjust the dark brightness, mid-tone brightness (overall brightness) and contrast of the permanent shadow area image of the moon multiple times. In order to achieve the purpose of obtaining three parameter sets, the method designs a parameter learning network based on dual-branch multi-feature fusion. A parameter weight learning architecture based on the idea of ​​attention (i.e., a parameter weight learning network) is added after the parameter learning network to dynamically adjust the weight of each parameter of pixels in each spatial area. The parameter set finally outputted is highly robust and can be used to improve the quality of permanent shadow area images under various imaging conditions. The image of the permanent shadow area of ​​the moon enhanced by the method restores the lunar surface landforms originally obscured by dark light, and the image effect is close to the normal light picture taken in reality. BRIEF DESCRIPTION OF THE DRAWINGS

[0012] In order to more clearly illustrate the technical solutions in the present disclosure or 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 some embodiments of the present disclosure. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.

[0013] Figure 1This is one of the flowcharts of the method for enhancing the image of the permanent shadow area of ​​the moon provided by the embodiment of the present disclosure; Figure 2 This is the second flow chart of the method for enhancing the image of the permanent shadow area of ​​the moon provided in the embodiment of the present disclosure; Figure 3 This is a third flow chart of a method for enhancing an image of a permanent shadow region of the moon provided in an embodiment of the present disclosure; Figure 4 is a schematic diagram of the structure of the pre-trained image enhancement model provided in an embodiment of the present disclosure; Figure 5 is a structural diagram of the parameter learning network provided in an embodiment of the present disclosure; Figure 6 is a structural diagram of the parameter weight learning network provided in an embodiment of the present disclosure; Figure 7 is a schematic diagram of the structure of a device for enhancing an image of a permanent shadow region of the moon provided by an embodiment of the present disclosure; Figure 8 It is a schematic diagram of the structure of an electronic device provided by the present disclosure. DETAILED DESCRIPTION

[0014] In order to make the purpose, technical solutions and advantages of the present disclosure clearer, the technical solutions in the present disclosure will be clearly and completely described below in conjunction with the drawings in the present disclosure. Obviously, the described embodiments are part of the embodiments of the present disclosure, rather than all the embodiments. Based on the embodiments in the present disclosure, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present disclosure.

[0015] Summary of the invention concept: The inventors of the present disclosure have found through research that the image enhancement technology in computer vision can be used to optimize the permanent shadow area image. At present, among the image enhancement technologies in computer vision, the deep learning method is the most widely used and studied method. Among them, the deep learning method can be mainly divided into two categories, one is the supervised learning method, and the other is the unsupervised learning method.

[0016] However, supervised learning methods rely heavily on pre-constructed paired image datasets, while the permanent shadow area of ​​the moon only has poor quality input images and no standard optimized images, that is, no available paired images. Although unsupervised learning methods (for example, learning methods based on generative adversarial networks GAN) do not rely on paired training data, they have high requirements for training data, often require carefully selected training data, and the training process is difficult to converge. For this reason, the inventors of the present disclosure further discovered that there is also a zero-sample learning method in the unsupervised learning method, which can directly process existing data (that is, without constructing sample data associated with the target area).

[0017] In view of this, the inventors considered that the image of the permanent shadow area of ​​the moon could be enhanced based on the zero-sample learning method. However, the characteristic that the dark pixels in the permanent shadow area of ​​the moon account for too high a proportion poses a huge challenge to the design of the zero-sample learning model. To meet this challenge, the inventors of the present disclosure provide a solution for enhancing the image of the permanent shadow area of ​​the moon as described in the following embodiment.

[0018] Example: The following describes the implementation details of the scheme for enhancing the image of the permanent shadow area of ​​the moon in the present invention in conjunction with the accompanying drawings.

[0019] Figure 1 FIG. 1 is a flow chart of a method for enhancing an image of a permanent shadow region of the moon provided by an exemplary embodiment of the present disclosure. This embodiment can be applied to electronic devices (for example, servers or cloud computing platforms), such as Figure 1 As shown, the method for enhancing the image of the permanent shadow area of ​​the moon includes the following steps: S110: Acquire a target image to be processed.

[0020] The target image to be processed is an image of the permanent shadow area of ​​the moon that needs to be enhanced.

[0021] The present disclosure does not limit the acquisition method. For example, an electronic device (eg, a server or a cloud computing platform) as an execution subject may communicate with a server storing the “target image to be processed” to acquire the target image to be processed.

[0022] S120: Input the target image into a pre-trained image enhancement model, and output an enhanced image via the pre-trained image enhancement model.

[0023] The pre-trained image enhancement model is trained based on at least one set of training data, and each set of training data in the at least one set of training data includes a sample image of a preset exposure type; the preset exposure types include underexposure, overexposure and normal exposure.

[0024] The pre-trained image enhancement model may include a parameter learning network and a parameter weight learning network, based on which three types of parameter sets (i.e., dark brightness, mid-tone brightness (overall brightness) and contrast) may be output; using these three types of parameter sets, the original lunar permanent shadow image may be iteratively enhanced multiple times to obtain the optimal enhancement effect. The specific details will be described below.

[0025] As described above, the method for enhancing the image of the permanent shadow area of ​​the moon provided by the embodiment of the present disclosure is based on learning a parameter set composed of multiple parameters to iteratively adjust the dark brightness, mid-tone brightness (overall brightness) and contrast of the permanent shadow area image of the moon multiple times. In order to achieve the purpose of obtaining three parameter sets, the method designs a parameter learning network based on dual-branch multi-feature fusion. A parameter weight learning architecture based on the idea of ​​attention (i.e., a parameter weight learning network) is added after the parameter learning network to dynamically adjust the weight of each parameter of pixels in each spatial area. The parameter set finally outputted is highly robust and can be used to improve the quality of permanent shadow area images under various imaging conditions. The image of the permanent shadow area of ​​the moon enhanced by the method restores the lunar surface landforms originally obscured by dark light, and the image effect is close to the normal light picture taken in reality.

[0026] exist Figure 1 Based on the embodiment, as an optional implementation method, refer to Figure 2 Step S120 “inputting the target image into a pre-trained image enhancement model, and outputting an enhanced image via the pre-trained image enhancement model” includes: S1210 . Segment the target image based on a preset segmentation rule to obtain a plurality of target image blocks.

[0027] Wherein, the size of the target image block matches the input size of the pre-trained image enhancement model.

[0028] The present disclosure does not limit the preset segmentation rules; for example, it may include but is not limited to a region-based segmentation algorithm. That is, the target image (i.e., the full image of the original size) may be segmented into a number of pixel blocks (as the target image blocks) based on the input size matching the pre-trained image enhancement model; and the original position of each pixel block in the target image is marked to facilitate subsequent image splicing.

[0029] Optionally, the multiple target image blocks may also be normalized to compress the grayscale value range of the image from [0, 255] to [0, 1].

[0030] S1220. Input the multiple target image blocks into the pre-trained image enhancement model, and have the pre-trained image enhancement model output an enhanced image block corresponding to each target image block to obtain multiple enhanced image blocks.

[0031] The pre-trained image enhancement model may include a parameter learning network and a parameter weight learning network.

[0032] As an optional example, the parameter learning network outputs a parameter set of a mid-tone brightness parameter m, a dark brightness parameter s, and a contrast parameter c respectively (refer to Figure 6 , which may include parameter sets FS, FC and FM respectively), and then the parameter sets are weighted by the parameter weight learning network to obtain the weighted mid-tone brightness parameter set M, dark brightness parameter set S and contrast parameter set C.

[0033] The operation of adjusting the image of the permanent shadow area of ​​the moon by using the mid-tone brightness parameter m, the dark brightness parameter s and the contrast parameter c can be performed using the following quick calculation formulas (1) to (3).

[0034] (1) (2) (3) in, represents the input target image block, represents the target image block enhanced once, Represents a single channel image after the target image patch is averaged in the channel direction.

[0035] As another optional example, the weighted mid-tone brightness parameter set M, dark brightness parameter set S and contrast parameter set C can be expressed using the following calculation formulas (4) to (6).

[0036] (4) (5) (6) By using the three types of parameter sets, the original lunar permanent shadow image can be enhanced multiple times through iterations to obtain the optimal enhancement effect, which can be specifically expressed by the following calculation formula (7).

[0037] (7) in, M 8 means 8 times overall brightening. C 8 means 8 contrast adjustments; S 4 means brightening the dark part 4 times; Represents the input target image patch.

[0038] S1230: Based on a preset splicing rule, splice the multiple enhanced image blocks to obtain the enhanced image.

[0039] Optionally, the multiple enhanced image blocks may be spliced ​​based on an original position mark corresponding to each enhanced image block in the target image.

[0040] exist Figure 1 Based on the embodiment, as an optional implementation method, refer to Figure 3 , the method further comprises: S1310. Before stitching the multiple enhanced image blocks based on the preset stitching rule, sharpen the multiple enhanced images using a preset image sharpening rule to obtain a plurality of sharpened image blocks.

[0041] S1320: Based on the preset splicing rule, splice the multiple sharpened image blocks to obtain a sharpened and enhanced image.

[0042] Among them, it should be noted that Figure 1 , 2 The enhanced image obtained in the embodiment (corresponding to the target image to be processed) shows the main landform distribution inside the permanent shadow area. However, there are some small landforms (such as small impact craters) that are difficult to distinguish due to their small size.

[0043] To this end, as an optional example, a sharpening processing step based on an unsharp mask (USM) may be added to highlight the relief edge of each enhanced image block to make it easier to distinguish.

[0044] The USM sharpening process can be expressed using the following calculation formula (8).

[0045] (8) in, E is the enhanced image block, U (E) represents a sharpened enhanced image, The kernel size is Gaussian blur processing.

[0046] It should be noted that the kernel size of the Gaussian blur image determines the degree of edge sharpening. Through the sharpening process, although the naturalness of the enhanced image blocks is reduced, the important landforms in them are highlighted, which is helpful for studying the landforms and material distribution in permanent shadow areas.

[0047] As mentioned above, USM sharpening post-processing is added to enhance the image blocks. According to the set Gaussian blur radius and weight, the enhanced landforms are highlighted, which is helpful for statistical analysis of the landforms and scientific analysis represented by impact crater dating.

[0048] Based on the above embodiment, as an optional implementation mode, refer to Figure 4 , the pre-trained image enhancement model includes a cascade of input layers (i.e., Figure 4 The layers corresponding to the “permanent shadow area image” shown in the figure), parameter learning network, parameter weight learning network and image enhancement execution network.

[0049] As an optional example, the parameter learning network includes a first parameter learning sub-network connected in parallel (ie, Figure 4 The parameter learning network 1 shown), the parameter learning second sub-network (ie, Figure 4 The parameter learning network 2 shown) and the parameter learning third sub-network (i.e., Figure 4 The parameters of the learning network are shown in 3).

[0050] The first sub-network of parameter learning is used to output dark brightness parameters, the second sub-network of parameter learning is used to output contrast parameters, and the third sub-network of parameter learning is used to output mid-tone brightness parameters.

[0051] Optionally, refer to Figure 5 , the network hierarchical structures of the parameter learning first subnetwork, the parameter learning second subnetwork and the parameter learning third subnetwork are the same; wherein the parameter learning first subnetwork includes a first network unit and a second network unit connected in parallel, the first network unit and the second network unit respectively include a preset number of convolutional layers in cascade, and the convolution kernel parameters of the first convolutional layer of the first network unit are different from the convolution kernel parameters of the first convolutional layer of the second network unit; in the first network unit, the convolutional layers except the first convolutional layer are jump-connected based on the symmetry of the cascade structure; in the second network unit, the convolutional layers except the first convolutional layer are jump-connected based on the symmetry of the cascade structure.

[0052] Continue to refer to Figure 5 , the parameter learning network is a designed two-stream feature fusion network, which is used to obtain a robust parameter map integrating multiple features. The network transforms the original image (i.e., Figure 5 After the input image (as shown in the figure) is input into the network, the feature extraction branch is divided into two branches according to the convolution kernel processing of different sizes. The branch feature map with a smaller convolution kernel, a larger feature map, and a smaller receptive field is collectively referred to as The branch feature maps with larger convolution kernels, smaller feature maps, and larger receptive fields are collectively referred to as . Except for the first convolution, the subsequent convolution processing of the two branches uses the same size of convolution kernel and zero padding. In the middle of the branch, the corresponding feature maps from the two branches are first spliced ​​and fused (the smaller feature map needs to be upsampled to the size of the large feature map, and the larger feature map needs to be downsampled to the size of the small feature map) to obtain their respective scale complementary features. In the second half of the branch network, the feature map of the first half participates in the feature extraction process of the second half through skip connections and channel splicing. This operation integrates shallow high-resolution information into deep strong semantic information. At the end of the two branches (i.e. and After the feature map is generated, the two branches are concatenated and fused for the second time. The fusion between the two branches ensures that the model can obtain multi-scale features.

[0053] In summary, the output feature map integrates high-resolution features, strong semantic features, and multi-scale features, which helps to obtain a robust parameter map. The parameter learning network can be expressed using the following calculation formulas (9) to (11): (9) (10) (11) here represents feature map convolution, represents feature map upsampling, Indicates channel splicing and fusion. Represents the feature map, that is, the parameter set of each parameter learning network output, after weight distribution That is M, S and C.

[0054] As an optional example, the parameter weight learning network includes a cascaded parameter weight learning first sub-network, a parameter weight learning second sub-network, and a parameter weight learning third sub-network.

[0055] Among them, refer to Figure 4 , Figure 6 , the parameter weight learning first sub-network includes a first network branch in parallel (i.e. Figure 6 As shown, the network branch where the "feature map" for receiving the "parameter set FS" is located), the second network branch (i.e. Figure 6 As shown, the network branch where the "feature map" for receiving the "parameter set FC" is located) and the third network branch (i.e. Figure 6 As shown, the network branch where the "feature map" of the "parameter set FM" is located); the input end of the first network branch is connected to the first sub-network for parameter learning (ie, Figure 4The output end of the parameter learning network 1 is connected, and the output end of the first network branch is connected to the parameter weight learning second sub-network (ie, Figure 6 The input end of the second network branch is connected to the input end of the parameter learning second sub-network (i.e., Figure 4 The output end of the parameter learning network 2 is connected, the output end of the second network branch is connected to the input end of the parameter weight learning second sub-network; the input end of the third network branch is connected to the parameter learning third sub-network (that is, Figure 4 The output end of the parameter learning network 3) is connected, and the output end of the third network branch is connected to the input end of the parameter weight learning second sub-network.

[0056] Wherein, the parameter weight learning third sub-network includes a first weighted network branch connected in parallel (ie, Figure 6 As shown, the network branch where the "feature map" of the parameter set FS is located), the second weighted network branch (ie, Figure 6 As shown, the network branch where the "feature map" of the parameter set FC is located) and the third weighted network branch (ie, Figure 6 As shown, the network branch where the "feature map" of the parameter set FM is located can be received); an input end of the first weighted network branch is connected to the output end of the first sub-network of parameter learning, and the other input end of the first weighted network branch is connected to the output end of the second sub-network of parameter weight learning; an input end of the second weighted network branch is connected to the output end of the second sub-network of parameter learning, and the other input end of the second weighted network branch is connected to the output end of the second sub-network of parameter weight learning; an input end of the third weighted network branch is connected to the output end of the third sub-network of parameter learning, and the other input end of the third weighted network branch is connected to the output end of the second sub-network of parameter weight learning.

[0057] The first weighted network branch is used to output a weighted parameter set S; the second weighted network branch is used to output a weighted parameter set C; and the third weighted network branch is used to output a weighted parameter set M.

[0058] Optionally, the first network branch, the second network branch and the third network branch each include at least one convolutional layer.

[0059] Optionally, the parameter weight learning second sub-network includes a convolution layer and an activation function layer.

[0060] Optionally, the first weighted network branch, the second weighted network branch and the third weighted network branch each include at least one convolutional layer.

[0061] Optionally, for the feature map, parameter map or parameter set output by the parameter learning network (Right now , that is, Figure 6 As shown in FS, FC, FM), the parameter weight learning network needs to be dynamically adjusted according to the input target image conditions. Because the imaging illumination and contrast of the target image are different, the intensity of adjusting the illumination and contrast should also be different. The disclosed embodiment proposes a parameter weight learning network / architecture based on dynamic adjustment requirements to assign weights to the parameter feature maps corresponding to the mid-tone brightening parameters, the dark brightening parameters and the contrast parameters.

[0062] refer to Figure 4 and Figure 6 , the parameter weight learning network learns the output of the network with three parameters As input, they are concatenated after convolution, and then separated according to the original number of channels after convolution and activation function frame. The three feature maps formed are the weight matrix These weight matrices are dot-multiplied with the corresponding input feature maps to obtain the weighted parameter (map) sets S, C, and M.

[0063] It should be noted that the weight matrix learned by the parameter weight learning network is of the same size as the original image, with only the number of channels being different. This means that the weight coefficient uses pixels as the basic unit, which facilitates the model to finely adjust the image, and the quotient of its number of channels and the number of channels of the original image is the number of times the image is enhanced. The parameter weight learning network adopts the idea of ​​attention and dynamically allocates the weight coefficients of the parameters according to different conditions. The whole process of weight coefficient allocation can be expressed by the following calculation formulas (12) to (14): (12) (13) (14) in, represents channel splitting, and Represents the activation function.

[0064] As an optional example, the image enhancement execution network includes a first enhancement calculation unit, a second enhancement calculation unit, and a third enhancement calculation unit.

[0065] Among them, refer to Figure 4 , the first enhanced computing unit (i.e. Figure 4The network unit where the "image I (x)" is located) is connected to the input layer, and the other input end of the first enhanced calculation unit is connected to the output end of the first weighted network branch; the second enhanced calculation unit (i.e. Figure 4 One input end of the network unit where the "image E1 (I)" is located is connected to the output end of the first enhancement calculation unit, and the other input end of the second enhancement calculation unit is connected to the output end of the second weighted network branch; the third enhancement calculation unit (i.e. Figure 4 An input end of the network unit where the "image E2 (I)" is located is connected to the output end of the second enhancement calculation unit, and another input end of the third enhancement calculation unit is connected to the output end of the second weighted network branch.

[0066] Based on the above embodiment, as an optional implementation manner, the training step of the pre-trained image enhancement model includes: Step 1) Obtain the at least one set of training data.

[0067] Each set of training data in the at least one set of training data may include a sample image of a preset exposure type; the preset exposure types include underexposure, overexposure and normal exposure.

[0068] Step 1) may include the following steps: Step 11) obtaining an initial sample image with a preset exposure type; wherein the preset exposure type includes underexposure, overexposure and normal exposure.

[0069] Step 12) cutting the initial sample image to obtain a plurality of sample image blocks; the size of the sample image blocks matches the input size of the image enhancement model to be trained; Step 13) normalize each sample image block so that the grayscale value range of the sample image block is compressed from [0, 255] to [0, 1].

[0070] Based on the above steps 11) to 13), multiple initial sample images are processed to obtain at least one set of training data. That is, the sample images in each set of training data can be pre-processed into multiple sample image blocks to facilitate input into the image enhancement model to be trained.

[0071] The initial sample images may be images unrelated to the moon.

[0072] Step 2) respectively inputting the sample images in each set of training data into the image enhancement model to be trained, and the image enhancement model to be trained outputs a predicted enhanced image corresponding to the sample image.

[0073] As mentioned above, multiple sample image blocks in each set of training data can be input into the image enhancement model to be trained in sequence; the image enhancement model to be trained outputs the corresponding predicted enhanced image blocks; finally, the predicted enhanced image blocks are spliced ​​together to obtain the predicted enhanced image.

[0074] Step 3) obtaining a parameter map corresponding to when the image enhancement model to be trained outputs the predicted enhanced image.

[0075] Step 4) using a preset comprehensive loss function, based on the sample images in each set of training data, the corresponding predicted enhanced images and the parameter map, to obtain a function value of the comprehensive loss function.

[0076] Specifically, as an optional example, step 4) can be implemented by the following steps: Step 41) Based on the sample images in each set of training data, the corresponding predicted enhanced images and the parameter map, the function values ​​of the spatial connection loss function, the exposure control loss function, the illumination smoothing loss function and the color control loss function are respectively calculated.

[0077] Optionally, the function value of the spatial connection loss function is calculated using the following calculation formula (15); (15) in, represents the average intensity value of the i-th predicted enhanced image block; represents the average intensity value of the j-th predicted enhanced image block; Represents the average intensity value of the i-th sample image block; represents the average intensity value of the jth sample image block; N Represents the number of predicted enhanced image blocks; represents the predicted enhanced image blocks surrounding the i-th predicted enhanced image block in the predicted enhanced image. Optionally, the size of each predicted enhanced image here is 4×4 (ie, including 16 pixels).

[0078] Here, the spatial connection loss function is used to preserve the spatial connection between each predicted enhanced image block and its surrounding predicted enhanced image blocks in the predicted enhanced image.

[0079] Optionally, the function value of the exposure control loss function is calculated using the following calculation formula (16); (16) in, represents the number of non-overlapping prediction enhanced image blocks in the prediction enhanced image; Indicates the standard exposure value, preferably 0.6; Represents the average exposure value of non-overlapping predicted enhanced image patches.

[0080] Here, the exposure control loss function aims to keep the predicted enhanced image at a good exposure level.

[0081] Optionally, the function value of the illumination smoothing loss function is calculated using the following calculation formula (17); (17) in, Indicates the number of parameter iterations; represents partial derivative; Represents the parameter map corresponding to the j-th sample image block at the i-th iteration.

[0082] Here, the illumination smoothness loss function is used to preserve the monotonic relationship between adjacent pixels.

[0083] Optionally, the function value of the color control loss function is calculated using the following calculation formula (18); (18) in, Represents the pixel average value of the mth channel; Represents the pixel average value of the nth channel; Represents a three-channel RGB color space.

[0084] Here, the color control loss function follows the principle that the color average of each channel approaches gray, making the pixel averages of the three channels approach each other.

[0085] Step 42) Using preset weights, weighted fusion is performed on the function values ​​of the spatial connection loss function, the exposure control loss function, the illumination smoothness loss function, and the color control loss function to obtain the function value of the comprehensive loss function.

[0086] Optionally, the function value of the comprehensive loss function may be determined using the following calculation formula (19).

[0087] (19) Preferably, The value is 1. The value is 10. The value is 200. The value is 5.

[0088] Step 5) Based on the function value of the comprehensive loss function, the image enhancement model to be trained is trained until a preset training completion condition is met, and the pre-trained image enhancement model is obtained from the image enhancement model to be trained.

[0089] As an optional example, step 5) may be implemented as follows: Step 51) The function value of the comprehensive loss function is fed back to the image enhancement model to be trained.

[0090] Step 52) The image enhancement model to be trained adjusts the network parameters of each network layer according to the function value of the comprehensive loss function.

[0091] Step 53) Iterate the steps of obtaining the function value of the comprehensive loss function to adjusting the network parameters of each network layer until a preset training completion condition is met.

[0092] Among them, the preset training completion condition may be that the number of training iterations is greater than a preset number threshold; or, the function value of the comprehensive loss function converges.

[0093] As described above, the method for enhancing the image of the permanent shadow area of ​​the moon provided by the embodiment of the present disclosure is based on learning a parameter set composed of multiple parameters to iteratively adjust the dark brightness, mid-tone brightness (overall brightness) and contrast of the permanent shadow area image of the moon multiple times. In order to achieve the purpose of obtaining three parameter sets, the method designs a parameter learning network based on dual-branch multi-feature fusion. A parameter weight learning architecture based on the idea of ​​attention (i.e., a parameter weight learning network) is added after the parameter learning network to dynamically adjust the weight of each parameter of pixels in each spatial area. The parameter set finally outputted is highly robust and can be used to improve the quality of permanent shadow area images under various imaging conditions. The image of the permanent shadow area of ​​the moon enhanced by the method restores the lunar surface landforms originally obscured by dark light, and the image effect is close to the normal light picture taken in reality.

[0094] In addition, USM sharpening post-processing is added to enhance the image blocks. According to the set Gaussian blur radius and weight, the enhanced landforms are highlighted, which is helpful for statistical analysis of the landforms and scientific analysis represented by impact crater dating.

[0095] The following is a description of the device for enhancing the image of the permanent shadow area of ​​the moon provided by the present disclosure. The device for enhancing the image of the permanent shadow area of ​​the moon described below and the method for enhancing the image of the permanent shadow area of ​​the moon described above can be referenced to each other.

[0096] Figure 7 FIG. 1 is a schematic diagram of a structure of an apparatus for enhancing an image of a permanent shadow region of the moon provided by an exemplary embodiment of the present disclosure. Figure 7As shown, the device for enhancing the image of the permanent shadow area of ​​the moon includes: an image acquisition module 710, configured to: acquire a target image to be processed; wherein the target image to be processed is an image of the permanent shadow area of ​​the moon that needs to be enhanced; an enhancement execution module 720, configured to: input the target image into a pre-trained image enhancement model, and output an enhanced image through the pre-trained image enhancement model; wherein the pre-trained image enhancement model is trained based on at least one set of training data, each set of training data in the at least one set of training data includes a sample image of a preset exposure type; the preset exposure types include underexposure, overexposure and normal exposure.

[0097] Figure 8 An example of a physical structure diagram of an electronic device is shown in FIG. Figure 8 As shown, the electronic device may include: a processor 810, a communication interface 820, a memory 830 and a communication bus 840, wherein the processor 810, the communication interface 820 and the memory 830 communicate with each other through the communication bus 840. The processor 810 may call the logic instructions in the memory 830 to execute a method for enhancing the image of the permanent shadow area of ​​the moon, the method comprising: obtaining a target image to be processed; wherein the target image to be processed is an image of the permanent shadow area of ​​the moon that needs to be enhanced; inputting the target image into a pre-trained image enhancement model, and outputting an enhanced image through the pre-trained image enhancement model; wherein the pre-trained image enhancement model is trained based on at least one set of training data, each set of training data in the at least one set of training data includes a sample image of a preset exposure type; the preset exposure type includes underexposure, overexposure and normal exposure.

[0098] In addition, the logic instructions in the above-mentioned memory 830 can be implemented in the form of a software functional unit and can be stored in a computer-readable storage medium when it is sold or used as an independent product. Based on this understanding, the technical solution of the present disclosure, or the part that contributes to the prior art or the part of the technical solution, can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including a number of instructions to enable a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present disclosure. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk, etc. Various media that can store program codes.

[0099] On the other hand, the present disclosure also provides a computer program product, which includes a computer program, and the computer program can be stored on a non-transitory computer-readable storage medium. When the computer program is executed by a processor, the computer can execute the method provided by the above-mentioned methods for enhancing the image of the permanent shadow area of ​​the moon, and the method includes: obtaining a target image to be processed; wherein the target image to be processed is an image of the permanent shadow area of ​​the moon that needs to be enhanced; inputting the target image into a pre-trained image enhancement model, and outputting an enhanced image through the pre-trained image enhancement model; wherein the pre-trained image enhancement model is trained based on at least one set of training data, and each set of training data in the at least one set of training data includes a sample image of a preset exposure type; the preset exposure types include underexposure, overexposure and normal exposure.

[0100] On the other hand, the present disclosure also provides a non-transitory computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, is implemented to execute the method for enhancing the image of the permanent shadow area of ​​the moon provided by the above-mentioned methods, the method comprising: obtaining a target image to be processed; wherein the target image to be processed is an image of the permanent shadow area of ​​the moon that requires image enhancement; inputting the target image into a pre-trained image enhancement model, and outputting an enhanced image through the pre-trained image enhancement model; wherein the pre-trained image enhancement model is trained based on at least one set of training data, each set of training data in the at least one set of training data includes a sample image of a preset exposure type; the preset exposure types include underexposure, overexposure and normal exposure.

[0101] The device embodiments described above are merely illustrative, wherein the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the scheme of this embodiment. Ordinary technicians in this field can understand and implement it without paying creative labor.

[0102] Through the description of the above implementation methods, those skilled in the art can clearly understand that each implementation method can be implemented by means of software plus a necessary general hardware platform, and of course, can also be implemented by hardware. Based on this understanding, the above technical solution is essentially or the part that contributes to the prior art can be embodied in the form of a software product, and the computer software product can be stored in a computer-readable storage medium, such as ROM / RAM, a disk, an optical disk, etc., including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods described in each embodiment or some parts of the embodiments.

[0103] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present disclosure, rather than to limit them. Although the present disclosure has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present disclosure.

Claims

1. A method for enhancing images of the lunar permanent shadow region, characterized in that: include: Acquire a target image to be processed; wherein the target image to be processed is an image of the permanent shadow area of ​​the moon that needs to be enhanced; Inputting the target image into a pre-trained image enhancement model, and outputting an enhanced image via the pre-trained image enhancement model; The pre-trained image enhancement model is trained based on at least one set of training data, and each set of training data in the at least one set of training data includes a sample image of a preset exposure type; the preset exposure types include underexposure, overexposure and normal exposure.

2. The method according to claim 1, characterized in that: Inputting the target image into a pre-trained image enhancement model, and outputting an enhanced image via the pre-trained image enhancement model, comprising: Based on a preset segmentation rule, the target image is segmented to obtain a plurality of target image blocks; wherein the size of the target image blocks matches the input size of the pre-trained image enhancement model; Inputting the multiple target image blocks into the pre-trained image enhancement model, and having the pre-trained image enhancement model output an enhanced image block corresponding to each target image block, to obtain multiple enhanced image blocks; Based on a preset splicing rule, the multiple enhanced image blocks are spliced ​​to obtain the enhanced image.

3. The method according to claim 2, characterized in that The method further comprises: Before the plurality of enhanced image blocks are spliced ​​based on the preset splicing rule, the plurality of enhanced images are sharpened using a preset image sharpening rule to obtain a plurality of sharpened image blocks; Based on the preset splicing rule, the multiple sharpened image blocks are spliced ​​to obtain a sharpened and enhanced image.

4. The method according to claim 1, characterized in that The pre-trained image enhancement model includes a cascaded input layer, a parameter learning network, a parameter weight learning network, and an image enhancement execution network; The parameter learning network includes a first parameter learning sub-network, a second parameter learning sub-network and a third parameter learning sub-network connected in parallel; The first sub-network of the parameter learning is used to output the dark brightness parameter, the second sub-network of the parameter learning is used to output the contrast parameter, and the third sub-network of the parameter learning is used to output the mid-tone brightness parameter; The parameter weight learning network includes a cascaded parameter weight learning first sub-network, a parameter weight learning second sub-network and a parameter weight learning third sub-network; Wherein, the first subnetwork of parameter weight learning includes a first network branch, a second network branch and a third network branch connected in parallel; the input end of the first network branch is connected to the output end of the first subnetwork of parameter learning, and the output end of the first network branch is connected to the input end of the second subnetwork of parameter weight learning; the input end of the second network branch is connected to the output end of the second subnetwork of parameter learning, and the output end of the second network branch is connected to the input end of the second subnetwork of parameter weight learning; the input end of the third network branch is connected to the output end of the third subnetwork of parameter learning, and the output end of the third network branch is connected to the input end of the second subnetwork of parameter weight learning; Wherein, the parameter weight learning third subnetwork includes a first weighted network branch, a second weighted network branch and a third weighted network branch connected in parallel; an input end of the first weighted network branch is connected to the output end of the parameter learning first subnetwork, and another input end of the first weighted network branch is connected to the output end of the parameter weight learning second subnetwork; an input end of the second weighted network branch is connected to the output end of the parameter learning second subnetwork, and another input end of the second weighted network branch is connected to the output end of the parameter weight learning second subnetwork; an input end of the third weighted network branch is connected to the output end of the parameter learning third subnetwork, and another input end of the third weighted network branch is connected to the output end of the parameter weight learning second subnetwork; The image enhancement execution network includes a first enhancement calculation unit, a second enhancement calculation unit, and a third enhancement calculation unit; Among them, one input end of the first enhanced computing unit is connected to the input layer, another input end of the first enhanced computing unit is connected to the output end of the first weighted network branch, one input end of the second enhanced computing unit is connected to the output end of the first enhanced computing unit, and another input end of the second enhanced computing unit is connected to the output end of the second weighted network branch; one input end of the third enhanced computing unit is connected to the output end of the second enhanced computing unit, and another input end of the third enhanced computing unit is connected to the output end of the second weighted network branch.

5. The method according to claim 4, characterized in that The network hierarchical structures of the first parameter learning subnetwork, the second parameter learning subnetwork and the third parameter learning subnetwork are the same; wherein the first parameter learning subnetwork includes a first network unit and a second network unit connected in parallel, the first network unit and the second network unit respectively include a preset number of convolutional layers in cascade, and the convolution kernel parameters of the first convolutional layer of the first network unit are different from the convolution kernel parameters of the first convolutional layer of the second network unit; in the first network unit, the convolutional layers except the first convolutional layer are jump-connected based on the symmetry of the cascade structure; in the second network unit, the convolutional layers except the first convolutional layer are jump-connected based on the symmetry of the cascade structure; The first network branch, the second network branch and the third network branch each include at least one convolutional layer; The parameter weight learning second sub-network includes a convolution layer and an activation function layer; The first weighted network branch, the second weighted network branch and the third weighted network branch each include at least one convolutional layer.

6. The method according to any one of claims 1 to 5, characterized in that The training steps of the pre-trained image enhancement model include: Acquiring the at least one set of training data; Inputting the sample images in each set of training data into the image enhancement model to be trained respectively, and outputting the predicted enhanced images corresponding to the sample images through the image enhancement model to be trained; Obtaining a parameter map corresponding to when the image enhancement model to be trained outputs the predicted enhanced image; Using a preset comprehensive loss function, based on the sample images in each set of training data, the corresponding predicted enhanced images, and the parameter map, a function value of the comprehensive loss function is obtained; Based on the function value of the comprehensive loss function, the image enhancement model to be trained is trained until a preset training completion condition is met, and the pre-trained image enhancement model is obtained from the image enhancement model to be trained.

7. The method according to claim 6, characterized in that The using a preset comprehensive loss function to obtain a function value of the comprehensive loss function based on the sample image in each set of training data, the corresponding predicted enhanced image, and the parameter map includes: Based on the sample images in each set of training data, the corresponding predicted enhanced images and the parameter map, respectively calculating the function value of the spatial connection loss function, the function value of the exposure control loss function, the function value of the illumination smoothing loss function and the function value of the color control loss function; By using preset weights, the function values ​​of the spatial connection loss function, the exposure control loss function, the illumination smoothing loss function and the color control loss function are weightedly fused to obtain the function value of the comprehensive loss function.

8. The method according to claim 6, characterized in that The function value based on the comprehensive loss function is used to train the image enhancement model to be trained until a preset training completion condition is met, including: Passing back the function value of the comprehensive loss function to the image enhancement model to be trained; The image enhancement model to be trained adjusts the network parameters of each network layer according to the function value of the comprehensive loss function; Iterate the steps of obtaining the function value of the comprehensive loss function to adjusting the network parameters of each network layer until a preset training completion condition is met.

9. A device for enhancing images of the lunar permanent shadow region, characterized in that: include: The image acquisition module is configured to: acquire a target image to be processed; wherein the target image to be processed is an image of the permanent shadow area of ​​the moon that needs to be enhanced; An enhancement execution module is configured to: input the target image into a pre-trained image enhancement model, and output an enhanced image via the pre-trained image enhancement model; The pre-trained image enhancement model is trained based on at least one set of training data, and each set of training data in the at least one set of training data includes a sample image of a preset exposure type; the preset exposure types include underexposure, overexposure and normal exposure.

10. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein: When the processor executes the program, the method for enhancing the image of the permanent shadow area of ​​the moon as described in any one of claims 1 to 8 is implemented.

Citation Information

Patent Citations

  • Image enhancement model creation method and device based on multi-scale network

    CN114723617A