A three-dimensional reconstruction method, device, storage medium and electronic equipment

By converting space remote sensing camera parameters into pinhole camera parameters and inputting the neural radiation field model, the problem of low accuracy of three-dimensional reconstruction of satellite images in the neural radiation field is solved and the accuracy of three-dimensional reconstruction is improved.

CN117765165BActive Publication Date: 2024-09-06ZHEJIANG LAB
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202311668305.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-12-06
Publication Date
2024-09-06
Estimated Expiration
2043-12-06

AI Technical Summary

Technical Problem

It is difficult to directly use satellite images for three-dimensional reconstruction of neural radiation fields with existing technology. This is mainly due to the large parameter differences between space remote sensing cameras and pinhole cameras, resulting in low accuracy of three-dimensional reconstruction.

Method used

By obtaining the conversion parameters of satellite images, convert the space remote sensing camera parameters into pinhole camera parameters, and input them into the pre-trained neural radiation field model to perform three-dimensional coordinate sampling and rendering to achieve three-dimensional reconstruction.

Benefits of technology

It improves the accuracy of three-dimensional reconstruction of satellite images, enables the neural radiation field model to better adapt to satellite images, reduces the parameter difference between space remote sensing cameras and pinhole cameras, and improves the accuracy of three-dimensional reconstruction.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117765165B
    Figure CN117765165B
Patent Text Reader

Abstract

This specification discloses a three-dimensional reconstruction method, device, storage medium and electronic device. This method obtains conversion parameters of satellite images, and the conversion parameters include the number of pixels and spatial resolution. According to the preset conversion relationship and conversion parameters, the space remote sensing camera parameters are converted into pinhole camera parameters to obtain the converted space remote sensing camera parameters. According to the converted space remote sensing camera parameters, the three-dimensional coordinates of the sampling points corresponding to the pixels in the satellite image in the world coordinate system are determined, and the three-dimensional coordinates of the sampling points are input into a pre-trained neural radiation field model to obtain the characteristic parameters of the sampling points output by the neural radiation field model. According to the characteristic parameters of the sampling points, the satellite image is reconstructed in three dimensions. This method converts the space remote sensing camera parameters into pinhole camera parameters, so that the satellite image is applied to the neural radiation field, and the three-dimensional image is reconstructed through the neural radiation field, thereby improving the accuracy of three-dimensional reconstruction.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of image processing, and in particular to a three-dimensional reconstruction method, device, storage medium and electronic device. Background Art

[0002] With the development of 3D reconstruction technology, 3D reconstruction technology has been applied to various fields, such as geographic information field, where the surface is reconstructed in 3D through satellite images from multiple perspectives. Usually, several acquired satellite images can be paired in pairs to obtain paired images. Then, 3D reconstruction is performed for each pair of paired images. Finally, the 3D reconstruction results of all paired images are fused to obtain the final surface reconstruction result. However, due to the long interval between the shooting time of different satellite images, there are large differences in seasons, weather, lighting conditions, etc. when shooting satellite images, resulting in large differences in satellite images. Then, according to the key points in the two paired images, the 3D reconstruction results of the paired images obtained are less accurate, which in turn affects the accuracy of the final surface reconstruction.

[0003] The accuracy of 3D reconstruction using Neural Radiance Field (NeRF) is relatively high, so NeRF can be combined with satellite images to perform 3D reconstruction of the surface. However, images reconstructed using NeRF are usually images taken at close range by a pinhole camera, while satellite images are obtained by imaging line by line with a space remote sensing camera (satellite sensor) when the satellite moves. Therefore, due to different camera types, different imaging principles, and different parameters, for example, when a pinhole camera can obtain an image, the pinhole camera's own posture, including rotation matrices, translation vectors, etc., is used to determine the correspondence between the pixel points of the image and the points in the world coordinate system. However, space remote sensing cameras do not have similar parameters, so the algorithm for 3D reconstruction using NeRF is difficult to directly apply to satellite images, which in turn affects the 3D reconstruction results.

[0004] Based on this, this specification provides a three-dimensional reconstruction method. Summary of the invention

[0005] This specification provides a three-dimensional reconstruction method, device, storage medium and electronic device to partially solve the above-mentioned problems existing in the prior art.

[0006] This manual adopts the following technical solutions:

[0007] This specification provides a three-dimensional reconstruction method, including:

[0008] Acquire conversion parameters of the satellite image, wherein the conversion parameters include the number of pixels and spatial resolution;

[0009] According to the preset conversion relationship and the conversion parameters, the space remote sensing camera parameters are converted into pinhole camera parameters to obtain converted space remote sensing camera parameters;

[0010] Determine the three-dimensional coordinates of the sampling point corresponding to the pixel point in the satellite image in the world coordinate system according to the converted space remote sensing camera parameters;

[0011] Inputting the three-dimensional coordinates of the sampling points into a pre-trained neural radiation field model to obtain characteristic parameters of the sampling points output by the neural radiation field model;

[0012] The satellite image is three-dimensionally reconstructed according to the characteristic parameters of the sampling points.

[0013] Optionally, according to a preset conversion relationship and the conversion parameters, converting the space remote sensing camera parameters into pinhole camera parameters specifically includes:

[0014] For each satellite image, the distance between the space remote sensing camera and the observation center is determined according to the observation angle of the space remote sensing camera and the satellite orbit height when the satellite image is transmitted obtained from the conversion parameters;

[0015] Determining the imaging range of the satellite image according to the number of pixels of the satellite image and the spatial resolution in the conversion parameters;

[0016] Determining the focal length of the space remote sensing camera according to a preset conversion relationship, the distance between the space remote sensing camera and the observation center, and the imaging range;

[0017] According to the focal length of the space remote sensing camera, the space remote sensing camera parameters are converted into pinhole camera parameters.

[0018] Optionally, determining the three-dimensional coordinates of the sampling point corresponding to the pixel point in the satellite image in the world coordinate system according to the converted space remote sensing camera parameters specifically includes:

[0019] Determine the intrinsic parameter matrix of the converted space remote sensing camera according to the focal length of the space remote sensing camera; and determine the extrinsic parameters of the converted space remote sensing camera according to the observation angle;

[0020] For each satellite image, determine the three-dimensional coordinates of the sampling points corresponding to all the pixels of the satellite image in the world coordinate system according to the intrinsic parameter matrix and the extrinsic parameters;

[0021] For each pixel, determine the camera ray corresponding to the pixel;

[0022] According to a preset sampling rule, sampling is performed in the camera ray of the pixel point to obtain a sampling point corresponding to the pixel point in the satellite image;

[0023] The three-dimensional coordinates of the sampling point are determined to obtain the three-dimensional coordinates of the sampling point corresponding to the pixel point in the satellite image in the world coordinate system.

[0024] Optionally, inputting the three-dimensional coordinates of the sampling points into a pre-trained neural radiation field model specifically includes:

[0025] Performing position encoding on the three-dimensional coordinates of the sampling points to obtain encoded three-dimensional coordinates;

[0026] For each satellite image, a sunlight direction vector of the satellite image is obtained; and the sunlight direction vector is position-encoded to obtain an encoded sunlight direction vector;

[0027] The encoded three-dimensional coordinates and the encoded sunlight direction vector are input into a pre-trained neural radiation field model.

[0028] Optionally, performing three-dimensional reconstruction on the satellite image according to the characteristic parameters of the sampling points specifically includes:

[0029] For each sampling point, the characteristic parameters of the sampling point are rendered according to a preset rendering equation to obtain the rendered characteristic parameters of the camera ray where the sampling point is located;

[0030] For each camera ray, determine the pixel color and pixel depth corresponding to the camera ray according to the rendered characteristic parameters of the camera ray;

[0031] The plurality of satellite images are three-dimensionally reconstructed according to the colors of all pixels of the plurality of satellite images and the depths of the pixels.

[0032] Optionally, determining the pixel color and pixel depth corresponding to the camera ray according to the rendered characteristic parameters of the camera ray specifically includes:

[0033] Determine the color and depth of the camera ray according to the rendered characteristic parameters of the camera ray;

[0034] The color of the camera ray is determined as the color of the pixel corresponding to the camera ray; and the depth of the camera ray is determined as the depth of the pixel corresponding to the camera ray.

[0035] Optionally, training the neural radiation field model specifically includes:

[0036] Acquire a number of sample satellite images; and determine the sample three-dimensional coordinates of the sample sampling points corresponding to the pixel points in the number of sample satellite images in the world coordinate system according to the converted space remote sensing camera parameters;

[0037] Obtain the color of the annotated pixel point corresponding to the camera ray where the sample three-dimensional coordinates are located as the label of the sample three-dimensional coordinates; and for each sample satellite image, obtain the sample sunlight direction vector of the sample satellite image;

[0038] Input the sample three-dimensional coordinates and the sample sunlight direction vector into the neural radiation field model to obtain the predicted characteristic parameters of the sample three-dimensional coordinates output by the neural radiation field model, and determine the predicted pixel point color corresponding to the camera ray where the sample three-dimensional coordinates are located as the output result according to the predicted characteristic parameters;

[0039] The neural radiation field model is trained according to the output result and the label.

[0040] Optionally, inputting the sample three-dimensional coordinates and the sample sunlight direction vector into the neural radiation field model specifically includes:

[0041] Determine the current number of iterations and the number of the plurality of sample satellite images;

[0042] According to the current number of iterations, the number of the sample satellite images, and the preset final number of iterations, position encoding is performed on the sample three-dimensional coordinates to obtain the encoded sample three-dimensional coordinates; and position encoding is performed on the sample sunlight direction vector to obtain the encoded sample sunlight direction vector;

[0043] The encoded sample three-dimensional coordinates and the encoded sample sunlight direction vector are input into the neural radiation field model.

[0044] This specification provides a three-dimensional reconstruction device, including:

[0045] A conversion parameter acquisition module is used to acquire conversion parameters of satellite images, wherein the conversion parameters include the number of pixels and spatial resolution;

[0046] A conversion module, used to convert the space remote sensing camera parameters into pinhole camera parameters according to a preset conversion relationship and the conversion parameters, so as to obtain the converted space remote sensing camera parameters;

[0047] A three-dimensional coordinate determination module is used to determine the three-dimensional coordinates of the sampling point corresponding to the pixel point in the satellite image in the world coordinate system according to the converted space remote sensing camera parameters;

[0048] A characteristic parameter determination module, used for inputting the three-dimensional coordinates of the sampling point into a pre-trained neural radiation field model to obtain the characteristic parameters of the sampling point output by the neural radiation field model;

[0049] The three-dimensional reconstruction module is used to perform three-dimensional reconstruction on the satellite image according to the characteristic parameters of the sampling points.

[0050] Optionally, the conversion module is specifically used to determine, for each satellite image, the distance between the space remote sensing camera and the observation center according to the observation angle of the space remote sensing camera and the satellite orbit altitude when the satellite image is transmitted obtained in the conversion parameters; determine the imaging range of the satellite image according to the number of pixels of the satellite image and the spatial resolution in the conversion parameters; determine the focal length of the space remote sensing camera according to a preset conversion relationship, the distance between the space remote sensing camera and the observation center, and the imaging range; and convert the space remote sensing camera parameters into pinhole camera parameters according to the focal length of the space remote sensing camera.

[0051] Optionally, the three-dimensional coordinate determination module is specifically used to determine the intrinsic parameter matrix of the converted space remote sensing camera according to the focal length of the space remote sensing camera; and determine the extrinsic parameters of the converted space remote sensing camera according to the observation angle; for each satellite image, determine the three-dimensional coordinates of the sampling points corresponding to all pixels of the satellite image in the world coordinate system according to the intrinsic parameter matrix and the extrinsic parameters; for each pixel, determine the camera ray corresponding to the pixel; according to a preset sampling rule, sample in the camera ray of the pixel to obtain the sampling point corresponding to the pixel in the satellite image; determine the three-dimensional coordinates of the sampling point to obtain the three-dimensional coordinates of the sampling point corresponding to the pixel in the satellite image in the world coordinate system.

[0052] Optionally, the characteristic parameter determination module is specifically used to perform position encoding on the three-dimensional coordinates of the sampling points to obtain encoded three-dimensional coordinates; for each satellite image, obtain the sunlight direction vector of the satellite image; and perform position encoding on the sunlight direction vector to obtain the encoded sunlight direction vector; and input the encoded three-dimensional coordinates and the encoded sunlight direction vector into a pre-trained neural radiation field model.

[0053] Optionally, the three-dimensional reconstruction module is specifically used to, for each sampling point, render the characteristic parameters of the sampling point according to a preset rendering equation to obtain the rendered characteristic parameters of the camera ray where the sampling point is located; for each camera ray, determine the pixel color and pixel depth corresponding to the camera ray according to the rendered characteristic parameters of the camera ray; and perform three-dimensional reconstruction of the several satellite images according to all pixel colors and the pixel depths of the several satellite images.

[0054] Optionally, the three-dimensional reconstruction module is specifically used to determine the color and depth of the camera ray based on the rendered characteristic parameters of the camera ray; determine the color of the camera ray as the color of the pixel corresponding to the camera ray; and determine the depth of the camera ray as the depth of the pixel corresponding to the camera ray.

[0055] Optionally, the device further comprises:

[0056] A training module is used to obtain a number of sample satellite images; and determine the sample three-dimensional coordinates of the sample sampling points corresponding to the pixel points in the sample satellite images in the world coordinate system according to the converted space remote sensing camera parameters; obtain the annotated pixel color corresponding to the camera ray where the sample three-dimensional coordinates are located as the label of the sample three-dimensional coordinates; and for each sample satellite image, obtain the sample sunlight direction vector of the sample satellite image; input the sample three-dimensional coordinates and the sample sunlight direction vector into the neural radiation field model to obtain the predicted feature parameters of the sample three-dimensional coordinates output by the neural radiation field model, and determine the predicted pixel color corresponding to the camera ray where the sample three-dimensional coordinates are located as the output result according to the predicted feature parameters; train the neural radiation field model according to the output result and the label.

[0057] Optionally, the training module is specifically used to determine the current number of iterations and the number of the sample satellite images; perform position encoding on the sample three-dimensional coordinates according to the current number of iterations, the number of the sample satellite images, and a preset final number of iterations to obtain the encoded sample three-dimensional coordinates; and perform position encoding on the sample sunlight direction vector to obtain the encoded sample sunlight direction vector; and input the encoded sample three-dimensional coordinates and the encoded sample sunlight direction vector into the neural radiation field model.

[0058] This specification provides a computer-readable storage medium, which stores a computer program. When the computer program is executed by a processor, the above-mentioned three-dimensional reconstruction method is implemented.

[0059] This specification provides an electronic device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the above-mentioned three-dimensional reconstruction method when executing the program.

[0060] At least one of the above technical solutions adopted in this specification can achieve the following beneficial effects:

[0061] It can be seen from the three-dimensional reconstruction method provided in this specification that this method converts the space remote sensing camera parameters into pinhole camera parameters, so that the satellite image is applied to the neural radiation field, and the three-dimensional image is reconstructed through the neural radiation field, thereby improving the accuracy of three-dimensional reconstruction. BRIEF DESCRIPTION OF THE DRAWINGS

[0062] The drawings described herein are used to provide a further understanding of this specification and constitute a part of this specification. The illustrative embodiments and descriptions of this specification are used to explain this specification and do not constitute an improper limitation on this specification. In the drawings:

[0063] Figure 1 A schematic diagram of a three-dimensional reconstruction method provided in this specification;

[0064] Figure 2 A schematic diagram of the conversion relationship between the pinhole camera parameters and the space remote sensing camera parameters provided in this manual;

[0065] Figure 3 A schematic diagram of an observation angle provided in this manual;

[0066] Figure 4 A schematic diagram of the internal structure of a neural radiation field model provided in this specification;

[0067] Figure 5 A schematic diagram of a three-dimensional reconstruction device provided in this specification;

[0068] Figure 6 A method corresponding to the Figure 1 Schematic diagram of the structure of an electronic device. DETAILED DESCRIPTION

[0069] In order to make the purpose, technical solutions and advantages of this specification more clear, the technical solutions of this specification will be clearly and completely described below in combination with the specific embodiments of this specification and the corresponding drawings. Obviously, the described embodiments are only part of the embodiments of this specification, not all of them. Based on the embodiments in this specification, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this specification.

[0070] The technical solutions provided by the embodiments of this specification are described in detail below in conjunction with the accompanying drawings.

[0071] Figure 1 A schematic diagram of a three-dimensional reconstruction method provided in this specification includes the following steps:

[0072] S100: Acquire conversion parameters of a satellite image, where the conversion parameters include the number of pixels and spatial resolution.

[0073] The three-dimensional reconstruction of the surface usually requires pairing of satellite images from different angles. However, due to the long time interval between satellite image shooting, different satellite images of the same area are quite different. This difference may be caused by weather, season and other reasons, which in turn affects the accuracy of three-dimensional reconstruction. The accuracy of three-dimensional reconstruction of close-range images using neural radiation fields is higher. Therefore, the neural radiation field can be combined with satellite images to improve the accuracy of three-dimensional reconstruction. However, the image is taken at a close distance by a pinhole camera, which is quite different from the satellite image, and the imaging principle is also different, resulting in many problems in combining the neural radiation field with the satellite image. Therefore, this specification provides a three-dimensional reconstruction method. The execution subject of this specification is a satellite computing platform that can deploy a trained neural radiation field model, or it can be a server or other electronic device that can be used for model training. This specification does not limit this. For the sake of convenience, this specification is described with the server as the execution subject.

[0074] Due to the large differences between pinhole cameras and space remote sensing cameras, the satellite images and the images obtained by the pinhole camera are quite different, making it difficult to directly combine the satellite images with the neural radiation field. Therefore, the server can convert the space remote sensing camera parameters into pinhole camera parameters to reduce the difference between the satellite images and the images obtained by the pinhole camera according to the converted space remote sensing camera parameters. Then combine with the neural radiation field to improve the accuracy of 3D reconstruction.

[0075] In one or more embodiments of the present specification, the server may first obtain a satellite image, and then obtain a conversion parameter of the satellite image to convert the space remote sensing camera according to the conversion parameter. The conversion parameter includes the number of pixels w, the spatial resolution v, the satellite orbit height H, etc. The satellite orbit height is the height of the satellite orbit where the satellite camera is located from the ground, and the spatial resolution refers to the range of the actual ground area corresponding to a pixel in the satellite image. For example, if the number of pixels is 512*512 and the spatial resolution is 1m, the actual area corresponding to the imaging range of the satellite image is an area of ​​512*512 square meters.

[0076] S102: According to a preset conversion relationship and the conversion parameters, the space remote sensing camera parameters are converted into pinhole camera parameters to obtain converted space remote sensing camera parameters.

[0077] In order to reduce the difference between the satellite image and the image obtained by the pinhole camera, the server may approximate the space remote sensing camera parameters to the pinhole camera parameters, that is, convert the space remote sensing camera into a pinhole camera to obtain the converted space remote sensing camera parameters.

[0078] Specifically, Figure 2 The conversion relationship between the pinhole camera parameters and the space remote sensing camera parameters provided in this manual is shown in the figure below. Figure 2 shown.

[0079] w is located in the imaging plane and is the number of pixels in the image, representing the size of the imaging plane. f is the focal length of the space remote sensing camera. W is the imaging range, that is, the range of the actual ground area corresponding to a satellite image. R is the distance between the space remote sensing camera and the observation center. The observation center is the position of the actual ground area corresponding to the center of the satellite image. Therefore, R is the distance from the position of the actual ground area corresponding to the center of the satellite image to the optical center of the space remote sensing camera. Since the imaging plane is close to the optical center of the camera, R can also be the distance from the center of the satellite image to the position of the actual ground area corresponding to the center of the satellite image.

[0080] Then, the server determines the distance between the space remote sensing camera and the observation center according to the observation angle of the space remote sensing camera and the satellite orbit height when acquiring the satellite image in the conversion parameter, and the conversion relationship of R is as follows:

[0081]

[0082] Among them, θ is the observation angle of the space remote sensing camera when acquiring satellite images. The observation angle is the angle between the space remote sensing camera and the object being photographed. Figure 3 A schematic diagram of an observation angle provided in this specification, such as Figure 3 The dotted line is the normal line. When a space remote sensing camera photographs an object, the direction of the shortest distance to the earth is determined as the normal line direction. The space remote sensing camera and the photographed object are connected to obtain a line segment. The angle between the line segment and the normal line is the observation angle.

[0083] Next, the server determines the imaging range of the satellite image according to the number of pixels of the satellite image and the spatial resolution in the conversion parameter. The conversion relationship of W is as follows:

[0084] W=wv

[0085] Then, according to the preset conversion relationship, the distance between the space remote sensing camera and the observation center and the imaging range, the focal length of the space remote sensing camera is determined. The conversion relationship of f is as follows:

[0086]

[0087] Finally, according to the focal length of the space remote sensing camera, the space remote sensing camera parameters are converted into pinhole camera parameters. For a pinhole camera, by obtaining the focal length of the pinhole camera, other parameters of the pinhole camera can be obtained. Then, by obtaining the conversion relationship between the focal lengths of the space remote sensing camera and the pinhole camera, the conversion between the space remote sensing camera parameters and the pinhole camera parameters is completed.

[0088] S104: Determine the three-dimensional coordinates of the sampling point corresponding to the pixel point in the satellite image in the world coordinate system according to the converted space remote sensing camera parameters.

[0089] After obtaining the converted space remote sensing camera parameters, the three-dimensional coordinates of the satellite image in the world coordinate system relative to the pinhole camera can be determined, thereby reducing the difference between the satellite image and the image taken by the pinhole camera.

[0090] Specifically, since the input of the neural radiation field model is the three-dimensional coordinates of the sampling points corresponding to the pixels in several images in the world coordinate system, it is necessary to determine the three-dimensional coordinates of the sampling points corresponding to the pixels in several satellite images in the world coordinate system. That is, for each satellite image, the server determines the internal parameter matrix of the converted space remote sensing camera based on the focal length of the space remote sensing camera. That is, based on the focal length of the space remote sensing camera, determine other internal parameters of the converted space remote sensing camera. Among them, the internal parameters include the principal point, etc. The principal point is the intersection of the optical axis and the image plane on the imaging plane. Its coordinates represent the projection position of the optical center of the camera on the image. The coordinates can be set to [0, 0] to set the deviation to 0. Of course, it can also be other coordinates, and this manual does not limit this.

[0091] The external parameters include the camera position, camera direction, etc. The camera position is the position of the camera in the world coordinate system, and the camera direction is the direction the camera points to, which is usually expressed by a rotation matrix or Euler angle. Since the relative position of the camera does not change when the space remote sensing camera is shooting, the translation vector can be 0. Then, the server can also determine the external parameters of the converted space remote sensing camera based on the observation angle, that is, determine the rotation matrix through the observation angle of the space remote sensing camera to obtain the external parameters of the converted space remote sensing camera.

[0092] After determining the camera parameters, for each satellite image, the server determines the three-dimensional coordinates of the sampling points corresponding to all the pixels of the satellite image in the world coordinate system based on the intrinsic parameter matrix and the extrinsic parameters. Then for each pixel, determine the camera ray corresponding to the pixel. That is, by converting the camera parameters of the space remote sensing camera, the coordinates of the pixel in the pixel coordinate system are converted into coordinates in the camera coordinate system, and used as the starting point of the camera ray. Then determine the direction of the camera ray. Usually, the direction of the camera ray can be determined based on the focal length and the direction vector of the camera ray. The direction vector of the camera ray can be calculated by a vector perpendicular to the image plane. Determining the camera ray of a pixel is a relatively mature technology in this field, and this manual will not go into details.

[0093] Finally, the server samples the camera ray of the pixel point according to the preset sampling rules, obtains the sampling point corresponding to the pixel point in the satellite image, determines the three-dimensional coordinates of the sampling point, and obtains the three-dimensional coordinates of the sampling point corresponding to the pixel point in the satellite image in the world coordinate system. Here, normalized three-dimensional coordinates are generally used, that is, the three-dimensional space is expressed as a volume space with a length, width and height range of [-1, 1]. The boundary of the volume space is the scene boundary, and the scene boundary includes the upper and lower height boundaries and the longitude and latitude boundaries, which are all stored in the metadata of the satellite image. Of course, the server can also obtain the boundary of the volume space through the Shuttle Radar Topography Mission (SRTM). The sampling rules include layered sampling, such as sampling once every 0.01 to obtain a three-dimensional coordinate. Then, the value of the z-axis in the three-dimensional coordinate is the distance between the sampling point and the origin, the origin is the intersection of the space remote sensing camera and the near boundary of the volume space, and the coordinates of the sampling point are the three-dimensional coordinates of the sampling point corresponding to the pixel point in the satellite image in the world coordinate system. By approximating the parameters of the space remote sensing camera to those of the close-range pinhole camera, the gap between satellite images and images obtained with the pinhole camera is reduced, the versatility of the neural radiation field model is improved, and the neural radiation field model and its improved algorithm in the field of close-range imaging are better adapted to satellite images.

[0094] S106: Input the three-dimensional coordinates of the sampling point into a pre-trained neural radiation field model to obtain characteristic parameters of the sampling point output by the neural radiation field model.

[0095] In one or more embodiments of the present specification, although the satellite can visit the same area with a high-frequency revisit cycle, it is still very difficult to obtain a large number of unobstructed high-definition multi-view remote sensing images due to climate reasons such as white cloud cover. The neural radiance field model learns the three-dimensional scene representation from a set of two-dimensional images without three-dimensional geometric structure, and implicitly learns the three-dimensional information of the scene by optimizing the appearance of the two-dimensional projection image of the three-dimensional volume field at different perspectives. When the number of input views is insufficient, the neural radiance field tends to overfit the two-dimensional image with a smaller appearance loss, rather than multi-view. Figure 1 This method fails to interpret 3D geometric structures in a consistent manner, leading to the learning of incorrect geometry and difficulty in synthesizing new views.

[0096] In order to avoid the overfitting of the neural radiation field model due to insufficient number of input views, the three-dimensional coordinates of the satellite image can be position encoded. That is, the low-dimensional three-dimensional coordinates are mapped to high-dimensional with a coding length of 2L through sine and cosine functions of different frequencies, and then the three-dimensional coordinates of the satellite image are connected with the frequency coding to obtain the encoded three-dimensional coordinates, as shown in the following formula:

[0097] γ L(x)=[sin(x),cos(x),…,sin(2 L-1 x),cos(2 L-1 x)]

[0098] x′=[x,γ L (x)]

[0099] Among them, γ L (x) is the high-order mapping of the three-dimensional coordinates of the satellite image, L is the encoding length, x is the three-dimensional coordinates of the satellite image before mapping, and x′ is the three-dimensional coordinates after encoding.

[0100] x′=[x,γ L (x)]

[0101] In addition, neural networks are usually not sensitive enough to the position information of the input, especially when the input is an unordered point cloud or 3D coordinates. Position encoding makes it easier for the network to understand the arrangement and distribution of points in space by embedding position information into the input. Position encoding can provide a global context for each point, allowing the model to better understand the positional relationship of the points in the entire 3D space, which is very important for recovering the global structure and shape of the scene.

[0102] For each satellite image, the server also needs to obtain the sunlight direction vector of the satellite image. The sunlight direction vector is an inherent attribute of the satellite image and can be directly obtained when shooting. Then the sunlight direction vector is position-encoded to obtain the encoded sunlight direction vector. Finally, the encoded three-dimensional coordinates and the encoded sunlight direction vector are input into the pre-trained neural radiation field model to obtain the characteristic parameters of the sampling point output by the neural radiation field model.

[0103] S108: Perform three-dimensional reconstruction of the satellite image according to the characteristic parameters of the sampling points.

[0104] First, each satellite image includes several pixels, each pixel includes a camera ray, and a camera ray includes several sampling points. For each sampling point, the server renders the characteristic parameters of the sampling point according to the preset rendering equation, and obtains the rendered characteristic parameters of the camera ray where the sampling point is located. The characteristic parameters may include the reflectivity, sunlight visibility, uncertainty and volume density of the sampling point. The volume density represents the probability of being occupied by particles, which can be represented by the density distribution function. The reflectivity is the reflectivity of the particles of the three-dimensional coordinates to the three colors of RGB (Red Green Blue, RGB), the sunlight visibility is the directional light illumination of the particles at the sampling point, and the uncertainty is the uncertainty of the particle color at the sampling point. Since the three-dimensional reconstruction is also related to the distance between the sampling point and the origin, it is also necessary to determine the distance between each sampling point and the origin according to the camera ray of the pixel point and the preset sampling rules. For the convenience of description, the distance between each sampling point and the origin is taken as the depth corresponding to the pixel point of the camera ray where the sampling point is located, that is, the pixel point depth.

[0105] Then, according to the preset rendering equation and volume density, the reflectivity, sunlight visibility, uncertainty and depth of the sampling point are integrated to obtain the characteristic parameters after rendering. The following is the rendering equation:

[0106]

[0107] Among them, i is the number of sampling points on the camera ray of the pixel point, that is, the number of three-dimensional coordinate points on the camera ray of the pixel point, p i Represents the characteristic parameters of a sampling point, and P(r) represents the camera ray rendering characteristics observed in the direction of the camera ray of the pixel point, that is, the rendered characteristic parameters of the camera ray where the sampling point is located. i Indicates the probability of being occupied at the current sampling point i. The higher the density, the greater the probability of being occupied. i ∈[0,1]. i As shown below:

[0108] α i =1-exp(-σ i δ i )

[0109] σ is the volume density, δ i Represents the distance between two adjacent sampling points, which can be determined according to the preset sampling rules, δ i As shown below:

[0110] δ i =t i+1 -t i

[0111] ti is the sampling point, t i The range is near the boundary of the scene. n and far boundary t f The near boundary is the boundary where the distance from the boundary to the space remote sensing camera is less than the preset distance, and the far boundary is the boundary where the distance from the boundary to the space remote sensing camera is not less than the preset distance. The scene boundary is the boundary of the volume space. i It represents the transparency from the origin to the current sampling point, which can be defined as the accumulation of the probability that the first i-1 sampling points are not occupied, T i ∈[0, 1], T i As shown below:

[0112]

[0113] For each camera ray, the pixel color and pixel depth corresponding to the camera ray are determined according to the rendered feature parameters of the camera ray. The server needs to first determine the color and depth of the camera ray according to the rendered feature parameters of the camera ray. The color of the camera ray is determined as the pixel color corresponding to the camera ray, and the depth of the camera ray is determined as the pixel depth corresponding to the camera ray.

[0114] Assume that the surface reflectivity of the scene follows the Lambertian model, that is, the reflectivity a of each surface in different observation directions is the same. For each particle in the scene, it receives and reflects light from different directions. The light source in the remote sensing scene is mainly composed of direct sunlight and diffuse sky light, so the color C(r) of each camera ray can be expressed as:

[0115] C(r)=A(r)*(S(r)*I sun +I sky )

[0116] Where C(r) is the color of the camera ray, I sun is sunlight, which can be expressed as normalized isoenergetic white light, that is, I sun =(1,1,1),I skyis the skylight, which is a learnable vector. The neural network predicts the color of the skylight according to the direction of the sun. The skylight, as a diffuse reflection light source, can illuminate the shadow area in the image. A(r) represents the reflectivity on the camera ray of the converted space remote sensing camera, which is the rendering integral of the reflectivity of the sampling points sampled along the camera ray. S(r) represents the sunlight visibility on the camera ray of the converted space remote sensing camera, which is the rendering integral of the sunlight visibility of the sampling points sampled along the camera ray. The reflectivity and sunlight visibility of the sampling point are both output by the neural radiation field model. If the sunlight visibility of the sampling point is 0, it means that the particle is in the shadow, the sunlight is blocked, and the light source comes only from the skylight. If the visibility is 1, it means that the light source comes from both sunlight and skylight.

[0117] After determining the pixel colors and pixel depths corresponding to the camera rays at all sampling points, the satellite images can be three-dimensionally reconstructed based on all pixel colors and pixel depths of the satellite images.

[0118] based on Figure 1 A three-dimensional reconstruction method is shown. This method converts space remote sensing camera parameters into pinhole camera parameters, so that satellite images are applied to the neural radiation field, and three-dimensional images are reconstructed through the neural radiation field, thereby improving the accuracy of three-dimensional reconstruction.

[0119] This specification provides a method for training a neural radiation field model. The executor for training the neural radiation field model is a server or other electronic device that can train the model. For the sake of ease of explanation, this specification uses the server as the executor to illustrate the training of the neural radiation field model.

[0120] First, the server obtains several sample satellite images, and determines the sample three-dimensional coordinates of the sample sampling points corresponding to the pixel points in the sample satellite images in the world coordinate system according to the converted space remote sensing camera parameters. The color of the annotated pixel corresponding to the camera ray where the sample three-dimensional coordinate is located is obtained as the label of the sample three-dimensional coordinate, and for each sample satellite image, the sample sunlight direction vector of the sample satellite image is obtained.

[0121] The sample three-dimensional coordinates and the sample sunlight direction vector are input into the neural radiation field model to obtain the predicted feature parameters of the sample three-dimensional coordinates output by the neural radiation field model, and the predicted pixel color corresponding to the camera ray where the sample three-dimensional coordinates are located is determined according to the predicted feature parameters as the output result. Of course, in order to distinguish each sample satellite image, it is also necessary to determine the image identifier of each sample satellite image, that is, the image embedding vector, which can be set in advance. The sample three-dimensional coordinates, the sample sunlight direction vector and the image embedding vector are input into the neural radiation field model to obtain the predicted feature parameters of the sample three-dimensional coordinates output by the neural radiation field model, and the predicted pixel color corresponding to the camera ray where the sample three-dimensional coordinates are located is determined according to the predicted feature parameters as the output result.

[0122] Figure 4 A schematic diagram of the internal structure of a neural radiation field model provided in this specification, such as Figure 4 shown.

[0123] The input is the sample 3D coordinates x = (x, y, z) ∈ R3, where R3 is a real number range and the sunlight direction m = (m x , m y , m z )∈R3 and the image embedding vector e j The output is the volume density σ∈R+ of each sample sampling point, R+ is a positive real number, and the reflectivity a=(a e , a g , a b )∈R3, uncertainty β∈R+, sunlight visibility s∈R+ and sky light color I sky =(l e , l g , l b )∈R3.

[0124] The sample 3D coordinate x is first input into a fully connected layer with 8 widths h to generate shared features F, and the volume density σ and reflectivity a are output through the sigmoid activation function. The position-encoded sunlight direction m is input into a fully connected layer with a width of h / 2, and the sky light color I is output through the sigmoid activation function. sky . Shared features F and image embedding vector e j The shared feature F and the sunlight direction m are connected, and through 3 layers of fully connected layers with a width of h / 2 and a sigmoid activation function, the sunlight visibility s is output. Where h = 512.

[0125] Finally, the neural radiation field model is trained based on the output result and the label. That is, the loss is determined based on the output result and the label. The loss function is the weighted sum of the mean square error (MSE) of the predicted pixel color and the labeled pixel color corresponding to the camera ray where the sample's three-dimensional coordinates are located in the output result. The weight is determined by the uncertainty β, as follows:

[0126]

[0127]

[0128] Where B'(r)=B(r)+B min , B min = 0.05, η = 3 to prevent negative values ​​in the logarithm. The role of the logarithm is to prevent B(r) from converging to infinity. The uncertainty of the camera ray B(r) is composed of the uncertainty β of each sampling point on the camera ray i The integral is obtained, and the uncertainty β of each sampling point i Predicted by the neural radiation field model, C GT (r) is the label.

[0129] In order to further improve the accuracy of the model, the server may determine the current number of iterations and the number of the sample satellite images. According to the current number of iterations, the number of the sample satellite images, and the preset final number of iterations, the sample three-dimensional coordinates are position-encoded to obtain the encoded sample three-dimensional coordinates. The sample sunlight direction vector is position-encoded to obtain the encoded sample sunlight direction vector. The encoded sample three-dimensional coordinates and the encoded sample sunlight direction vector are input into the neural radiation field model.

[0130] However, when the number of input views is insufficient, high-frequency input may aggravate the overfitting of the input image. Although higher frequency mapping can make the high-frequency components converge faster, converging too quickly on high-frequency information will hinder the exploration of low-frequency information by the neural radiation field and make it tend to produce high-frequency artifacts. The frequency can be regularized. For a positional encoding of length 2L+3, a linearly increasing frequency mask is constructed based on the number of training iterations to adjust the visible spectrum, as shown below:

[0131] γ′ L (t, T, x) = γ L (x)⊙α(t, T, L)

[0132] Among them, γ′ L (t, T, x) is the three-dimensional coordinate of the encoded sample.

[0133]

[0134] α i (t,T,L) represents the i-th bit value of α(t,T,L), t and T are the current and final iterations of frequency regularization, respectively. The final iteration number T of frequency regularization is a hyperparameter related to the number of views, which refers to the number of sample satellite images.

[0135] At the beginning of training, the network is fed with raw 3D coordinates without position encoding. As training progresses, the visible frequency is linearly increased by 3 bits per iteration, thereby reducing the impact of unstable and susceptible high-frequency signals at the beginning of training. As training progresses, the gradually increasing high-frequency information can prevent over-smoothing. Through this frequency regularization method, the neural radiance field can fully learn the low-frequency and high-frequency information of the scene in the case of few views, thereby improving the neural radiance field's ability to represent the scene's appearance and geometric structure, and improving the accuracy of 3D reconstruction.

[0136] In addition, the traditional neural radiation field model directly estimates the color of each pixel and then integrates the camera ray where the pixel is located. In this specification, the characteristic parameters of each camera ray are first integrated, that is, the characteristic parameters of each sampling point are rendered, and then the camera ray color is calculated. The method makes the estimated values ​​of reflectivity and sunlight visibility have less noise, so that the training process is more stable. This process has been described in detail in the process of using the characteristic parameters output by the neural radiation field model to determine the color of the pixel corresponding to the camera ray where each sampling point is located, and will not be repeated here. In addition, when training the neural radiation field model, the output result can also include the depth of the pixel corresponding to the camera ray where the sample three-dimensional coordinates are located, and only the corresponding depth label needs to be set. Then, when determining the label, it is necessary to obtain the color of the annotated pixel corresponding to the camera ray where the sample three-dimensional coordinates are located and the depth of the annotated pixel as the label of the sample three-dimensional coordinates. After obtaining the predicted characteristic parameters, the predicted pixel color and predicted pixel depth corresponding to the camera ray where the sample three-dimensional coordinates are located are determined according to the predicted characteristic parameters as the output result. The loss also includes the weighted sum of the mean square error of the predicted pixel depth and the annotated pixel depth corresponding to the camera ray where the sample three-dimensional coordinates are located in the output result.

[0137] The above are one or more implementation methods of this specification. Based on the same idea, this specification also provides a corresponding three-dimensional reconstruction device, such as Figure 5 shown.

[0138] Figure 5 A schematic diagram of a three-dimensional reconstruction device provided in this specification includes:

[0139] The conversion parameter acquisition module 500 is used to acquire the conversion parameters of the satellite image, wherein the conversion parameters include the number of pixels and the spatial resolution;

[0140] The conversion module 502 is used to convert the space remote sensing camera parameters into pinhole camera parameters according to the preset conversion relationship and the conversion parameters, so as to obtain the converted space remote sensing camera parameters;

[0141] A three-dimensional coordinate determination module 504 is used to determine the three-dimensional coordinates of the sampling point corresponding to the pixel point in the satellite image in the world coordinate system according to the converted space remote sensing camera parameters;

[0142] A characteristic parameter determination module 506 is used to input the three-dimensional coordinates of the sampling point into a pre-trained neural radiation field model to obtain the characteristic parameters of the sampling point output by the neural radiation field model;

[0143] The three-dimensional reconstruction module 508 is used to perform three-dimensional reconstruction on the satellite image according to the characteristic parameters of the sampling points.

[0144] Optionally, the conversion module 502 is specifically used to determine, for each satellite image, the distance between the space remote sensing camera and the observation center according to the observation angle of the space remote sensing camera and the satellite orbit altitude when the satellite image is transmitted obtained in the conversion parameters; determine the imaging range of the satellite image according to the number of pixels of the satellite image and the spatial resolution in the conversion parameters; determine the focal length of the space remote sensing camera according to a preset conversion relationship, the distance between the space remote sensing camera and the observation center, and the imaging range; and convert the space remote sensing camera parameters into pinhole camera parameters according to the focal length of the space remote sensing camera.

[0145] Optionally, the three-dimensional coordinate determination module 504 is specifically used to determine the intrinsic parameter matrix of the converted space remote sensing camera according to the focal length of the space remote sensing camera; and determine the extrinsic parameters of the converted space remote sensing camera according to the observation angle; for each satellite image, determine the three-dimensional coordinates of the sampling points corresponding to all pixels of the satellite image in the world coordinate system according to the intrinsic parameter matrix and the extrinsic parameters; for each pixel, determine the camera ray corresponding to the pixel; according to a preset sampling rule, sample in the camera ray of the pixel to obtain the sampling point corresponding to the pixel in the satellite image; determine the three-dimensional coordinates of the sampling point to obtain the three-dimensional coordinates of the sampling point corresponding to the pixel in the satellite image in the world coordinate system.

[0146] Optionally, the characteristic parameter determination module 506 is specifically used to perform position encoding on the three-dimensional coordinates of the sampling point to obtain the encoded three-dimensional coordinates; for each satellite image, obtain the sunlight direction vector of the satellite image; and perform position encoding on the sunlight direction vector to obtain the encoded sunlight direction vector; and input the encoded three-dimensional coordinates and the encoded sunlight direction vector into a pre-trained neural radiation field model.

[0147] Optionally, the three-dimensional reconstruction module 508 is specifically used to, for each sampling point, render the characteristic parameters of the sampling point according to a preset rendering equation to obtain the rendered characteristic parameters of the camera ray where the sampling point is located; for each camera ray, determine the pixel color and pixel depth corresponding to the camera ray according to the rendered characteristic parameters of the camera ray; and perform three-dimensional reconstruction of the several satellite images according to the colors of all pixels and the pixel depths of the several satellite images.

[0148] Optionally, the three-dimensional reconstruction module 508 is specifically used to determine the color and depth of the camera ray according to the rendered characteristic parameters of the camera ray; determine the color of the camera ray as the color of the pixel corresponding to the camera ray; and determine the depth of the camera ray as the depth of the pixel corresponding to the camera ray.

[0149] Optionally, the device further comprises:

[0150] The training module 510 is used to obtain a number of sample satellite images; and determine the sample three-dimensional coordinates of the sample sampling points corresponding to the pixel points in the sample satellite images in the world coordinate system according to the converted space remote sensing camera parameters; obtain the annotated pixel color corresponding to the camera ray where the sample three-dimensional coordinates are located as the label of the sample three-dimensional coordinates; and for each sample satellite image, obtain the sample sunlight direction vector of the sample satellite image; input the sample three-dimensional coordinates and the sample sunlight direction vector into the neural radiation field model to obtain the predicted feature parameters of the sample three-dimensional coordinates output by the neural radiation field model, and determine the predicted pixel color corresponding to the camera ray where the sample three-dimensional coordinates are located as the output result according to the predicted feature parameters; train the neural radiation field model according to the output result and the label.

[0151] Optionally, the training module 510 is specifically used to determine the current number of iterations and the number of the sample satellite images; perform position encoding on the sample three-dimensional coordinates according to the current number of iterations, the number of the sample satellite images, and a preset final number of iterations to obtain the encoded sample three-dimensional coordinates; and perform position encoding on the sample sunlight direction vector to obtain the encoded sample sunlight direction vector; and input the encoded sample three-dimensional coordinates and the encoded sample sunlight direction vector into the neural radiation field model.

[0152] This specification also provides a computer-readable storage medium, which stores a computer program, which can be used to execute the above Figure 1 A three-dimensional reconstruction method is provided.

[0153] This manual also provides Figure 6 The one shown corresponds to Figure 1 Schematic diagram of the structure of the electronic equipment. Figure 6 As shown, at the hardware level, the electronic device includes a processor, an internal bus, a network interface, a memory, and a non-volatile memory, and may also include other hardware required for the business. The processor reads the corresponding computer program from the non-volatile memory into the memory and then runs it to achieve the above Figure 1 A three-dimensional reconstruction method.

[0154] Of course, in addition to software implementation, this specification does not exclude other implementation methods, such as logic devices or a combination of software and hardware, etc., that is to say, the executor of the following processing flow is not limited to each logic unit, but can also be hardware or logic devices.

[0155] In the 1990s, improvements to a technology could be clearly distinguished as hardware improvements (for example, improvements to the circuit structure of diodes, transistors, switches, etc.) or software improvements (improvements to the method flow). However, with the development of technology, many improvements to the method flow today can be regarded as direct improvements to the hardware circuit structure. Designers almost always obtain the corresponding hardware circuit structure by programming the improved method flow into the hardware circuit. Therefore, it cannot be said that an improvement in a method flow cannot be implemented using a hardware entity module. For example, a programmable logic device (PLD) (such as a field programmable gate array (FPGA)) is such an integrated circuit whose logical function is determined by the user's programming of the device. Designers can "integrate" a digital system on a PLD by programming it themselves, without having to ask a chip manufacturer to design and produce a dedicated integrated circuit chip. Moreover, nowadays, instead of manually making integrated circuit chips, this kind of programming is mostly implemented by "logic compiler" software, which is similar to the software compiler used when developing and writing programs, and the original code before compilation must also be written in a specific programming language, which is called hardware description language (HDL). There is not only one HDL, but many kinds, such as ABEL (Advanced Boolean Expression Language), AHDL (Altera Hardware Description Language), Confluence, CUPL (Cornell University Programming Language), HDCal, JHDL (Java Hardware Description Language), Lava, Lola, MyHDL, PALASM, RHDL (Ruby Hardware Description Language), etc. The most commonly used ones are VHDL (Very-High-Speed ​​Integrated Circuit Hardware Description Language) and Verilog. Those skilled in the art should also know that it is only necessary to program the method flow slightly in the above-mentioned hardware description languages ​​and program it into the integrated circuit, and then it is easy to obtain the hardware circuit that implements the logic method flow.

[0156] The controller can be implemented in any appropriate manner, for example, the controller can take the form of a microprocessor or processor and a computer-readable medium storing a computer-readable program code (such as software or firmware) that can be executed by the (micro)processor, a logic gate, a switch, an application-specific integrated circuit (ASIC), a programmable logic controller, and an embedded microcontroller. Examples of controllers include, but are not limited to, the following microcontrollers: ARC 625D, Atmel AT91SAM, Microchip PIC18F26K20, and Silicone Labs C8051F320. The memory controller can also be implemented as part of the control logic of the memory. Those skilled in the art also know that in addition to implementing the controller in a purely computer-readable program code manner, the controller can be implemented in the form of a logic gate, a switch, an application-specific integrated circuit, a programmable logic controller, and an embedded microcontroller by logically programming the method steps. Therefore, this controller can be considered as a hardware component, and the devices included therein for implementing various functions can also be regarded as structures within the hardware component. Or even, the devices for implementing various functions can be regarded as both software modules for implementing the method and structures within the hardware component.

[0157] The systems, devices, modules or units described in the above embodiments may be implemented by computer chips or entities, or by products with certain functions. A typical implementation device is a computer. Specifically, the computer may be, for example, a personal computer, a laptop computer, a cellular phone, a camera phone, a smart phone, a personal digital assistant, a media player, a navigation device, an email device, a game console, a tablet computer, a wearable device, or a combination of any of these devices.

[0158] For the convenience of description, the above device is described in various units according to their functions. Of course, when implementing this specification, the functions of each unit can be implemented in the same or multiple software and / or hardware.

[0159] Those skilled in the art will appreciate that the embodiments of this specification may be provided as methods, systems, or computer program products. Therefore, this specification may take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, this specification may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) that contain computer-usable program code.

[0160] This specification is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the embodiments of this specification. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.

[0161] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.

[0162] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 A step that specifies a function in one or more boxes.

[0163] In a typical configuration, a computing device includes one or more processors (CPU), input / output interfaces, network interfaces, and memory.

[0164] The memory may include non-permanent storage in a computer-readable medium, random access memory (RAM) and / or non-volatile memory in the form of read-only memory (ROM) or flash RAM. The memory is an example of a computer-readable medium.

[0165] Computer readable media include permanent and non-permanent, removable and non-removable media that can be implemented by any method or technology to store information. Information can be computer readable instructions, data structures, program modules or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, compact disk read-only memory (CD-ROM), digital versatile disk (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices or any other non-transmission media that can be used to store information that can be accessed by a computing device. As defined herein, computer readable media does not include temporary computer readable media (transitory media), such as modulated data signals and carrier waves.

[0166] It should also be noted that the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, commodity or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, commodity or device. In the absence of more restrictions, the elements defined by the sentence "comprises a ..." do not exclude the existence of other identical elements in the process, method, commodity or device including the elements.

[0167] Those skilled in the art will appreciate that the embodiments of this specification may be provided as methods, systems or computer program products. Therefore, this specification may take the form of a complete hardware embodiment, a complete software embodiment or an embodiment combining software and hardware. Moreover, this specification may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.

[0168] This specification may be described in the general context of computer-executable instructions executed by a computer, such as program modules. Generally, program modules include routines, programs, objects, components, data structures, etc. that perform specific tasks or implement specific abstract data types. This specification may also be practiced in distributed computing environments where tasks are performed by remote processing devices connected through a communication network. In a distributed computing environment, program modules may be located in local and remote computer storage media including storage devices.

[0169] Each embodiment in this specification is described in a progressive manner, and the same or similar parts between the embodiments can be referred to each other, and each embodiment focuses on the differences from other embodiments. In particular, for the system embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiment.

[0170] The above description is only an embodiment of the present specification and is not intended to limit the present specification. For those skilled in the art, the present specification may have various changes and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present specification shall be included in the scope of the claims of the present specification.

Claims

1. A three-dimensional reconstruction method, It is characterized in that The method comprises: Acquire conversion parameters of the satellite image, wherein the conversion parameters include the number of pixels and spatial resolution; According to the preset conversion relationship and the conversion parameters, the space remote sensing camera parameters are converted into pinhole camera parameters to obtain converted space remote sensing camera parameters; Determine the three-dimensional coordinates of the sampling point corresponding to the pixel point in the satellite image in the world coordinate system according to the converted space remote sensing camera parameters; Inputting the three-dimensional coordinates of the sampling points into a pre-trained neural radiation field model to obtain characteristic parameters of the sampling points output by the neural radiation field model; Reconstructing the satellite image in three dimensions according to the characteristic parameters of the sampling points; According to the preset conversion relationship and the conversion parameters, the space remote sensing camera parameters are converted into pinhole camera parameters, specifically including: For each satellite image, determining the distance between the space remote sensing camera and the observation center according to the observation angle of the space remote sensing camera and the satellite orbit height when acquiring the satellite image in the conversion parameters; Determining the imaging range of the satellite image according to the number of pixels of the satellite image and the spatial resolution in the conversion parameters; The focal length of the space remote sensing camera is determined according to a preset conversion relationship, a distance between the space remote sensing camera and the observation center, and the imaging range, wherein the preset conversion relationship is as follows: is the focal length of the space remote sensing camera, R is the distance between the space remote sensing camera and the observation center, is the imaging range of the satellite image, is the number of pixels in a single row and / or a single column of the satellite image, representing the size of the imaging plane of the satellite image, is the spatial resolution of the satellite image; According to the focal length of the space remote sensing camera, converting the space remote sensing camera parameters into pinhole camera parameters; According to the converted space remote sensing camera parameters, the three-dimensional coordinates of the sampling point corresponding to the pixel point in the satellite image in the world coordinate system are determined, specifically including: Determine the intrinsic parameter matrix of the converted space remote sensing camera according to the focal length of the space remote sensing camera; and determine the extrinsic parameters of the converted space remote sensing camera according to the observation angle; For each satellite image, determine the three-dimensional coordinates of the sampling points corresponding to all the pixels of the satellite image in the world coordinate system according to the intrinsic parameter matrix and the extrinsic parameters; For each pixel, determine the camera ray corresponding to the pixel; According to a preset sampling rule, sampling is performed in the camera ray of the pixel point to obtain a sampling point corresponding to the pixel point in the satellite image; The three-dimensional coordinates of the sampling point are determined to obtain the three-dimensional coordinates of the sampling point corresponding to the pixel point in the satellite image in the world coordinate system.

2. The method according to claim 1, It is characterized in that Inputting the three-dimensional coordinates of the sampling points into a pre-trained neural radiation field model specifically includes: Performing position encoding on the three-dimensional coordinates of the sampling points to obtain encoded three-dimensional coordinates; For each satellite image, a sunlight direction vector of the satellite image is obtained; and the sunlight direction vector is position-encoded to obtain an encoded sunlight direction vector; The encoded three-dimensional coordinates and the encoded sunlight direction vector are input into a pre-trained neural radiation field model.

3. The method according to claim 1, It is characterized in that Performing three-dimensional reconstruction on the satellite image according to the characteristic parameters of the sampling points specifically includes: For each sampling point, the characteristic parameters of the sampling point are rendered according to a preset rendering equation to obtain the rendered characteristic parameters of the camera ray where the sampling point is located; For each camera ray, determine the pixel color and pixel depth corresponding to the camera ray according to the rendered characteristic parameters of the camera ray; The plurality of satellite images are three-dimensionally reconstructed according to the colors of all pixels of the plurality of satellite images and the depths of the pixels.

4. The method according to claim 3, It is characterized in that According to the rendered characteristic parameters of the camera ray, the pixel color and pixel depth corresponding to the camera ray are determined, specifically including: Determine the color and depth of the camera ray according to the rendered characteristic parameters of the camera ray; The color of the camera ray is determined as the color of the pixel corresponding to the camera ray; and the depth of the camera ray is determined as the depth of the pixel corresponding to the camera ray.

5. The method according to claim 1, It is characterized in that Training the neural radiation field model specifically includes: Acquire a number of sample satellite images; and determine the sample three-dimensional coordinates of the sample sampling points corresponding to the pixel points in the number of sample satellite images in the world coordinate system according to the converted space remote sensing camera parameters; Obtain the color of the annotated pixel point corresponding to the camera ray where the sample three-dimensional coordinates are located as the label of the sample three-dimensional coordinates; and for each sample satellite image, obtain the sample sunlight direction vector of the sample satellite image; Input the sample three-dimensional coordinates and the sample sunlight direction vector into the neural radiation field model to obtain the predicted characteristic parameters of the sample three-dimensional coordinates output by the neural radiation field model, and determine the predicted pixel point color corresponding to the camera ray where the sample three-dimensional coordinates are located as the output result according to the predicted characteristic parameters; The neural radiation field model is trained according to the output result and the label.

6. The method according to claim 5, It is characterized in that Inputting the sample three-dimensional coordinates and the sample sunlight direction vector into the neural radiation field model specifically includes: Determine the current number of iterations and the number of the plurality of sample satellite images; According to the current number of iterations, the number of the sample satellite images, and the preset final number of iterations, position encoding is performed on the sample three-dimensional coordinates to obtain the encoded sample three-dimensional coordinates; and position encoding is performed on the sample sunlight direction vector to obtain the encoded sample sunlight direction vector; The encoded sample three-dimensional coordinates and the encoded sample sunlight direction vector are input into the neural radiation field model.

7. A computer-readable storage medium, It is characterized in that The storage medium stores a computer program, and when the computer program is executed by a processor, the method according to any one of claims 1 to 6 is implemented.

8. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, It is characterized in that When the processor executes the program, the method described in any one of claims 1 to 6 is implemented.