A method for three-dimensional reconstruction of an indoor scene image

By filtering indoor image data and restoring dynamic occlusion masks, combined with unsharpened mask enhancement and 3D Gaussian element optimization, the instability problem of 3D reconstruction under the influence of dynamic targets was solved, multi-dimensional evaluation was achieved, and the quality and efficiency of reconstruction results were improved.

CN123181736APending Publication Date: 2026-11-27TONGJI UNIV
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202611581949.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-10-13
Publication Date
2026-11-27

AI Technical Summary

Technical Problem

Existing indoor 3D reconstruction methods are easily affected by human activities, temporary object occlusion, and image quality differences when dealing with dynamic targets, resulting in insufficient integrity and stability of 3D reconstruction results. Furthermore, the evaluation indicators lack uniformity, making it difficult to conduct quantitative comparisons from multiple dimensions.

Method used

By filtering and segmenting continuous image data, a dynamic occlusion mask is generated to restore the occluded area. An unsharpened mask is used to enhance image features. The reconstruction process is optimized by combining a three-dimensional Gaussian meta-model, and the reconstruction results are comprehensively evaluated.

Benefits of technology

It improves the stability and integrity of 3D reconstruction results, reduces the interference of dynamic targets on feature matching and camera pose calculation, and provides a multi-dimensional evaluation index system to ensure reconstruction quality and efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN123181736A_ABST
    Figure CN123181736A_ABST
Patent Text Reader

Abstract

The application discloses a kind of indoor scene image three-dimensional reconstruction methods, comprising: obtaining the original indoor image sequence of indoor scene to be reconstructed, target area segmentation is carried out to each image frame, dynamic target area is determined and dynamic occlusion mask is generated, the occluded area is recovered using static scene information in adjacent image frames, obtain first image sequence;Using non-sharpening mask to generate candidate enhancement result, and based on Laplacian variance and Brenner gradient, candidate enhancement result is evaluated and updated successively, and second image sequence is obtained;Feature extraction and multi-view feature matching are carried out to second image sequence, camera parameter and camera pose are calculated and initial three-dimensional scene information is obtained, and then three-dimensional scene reconstruction is carried out.The application can reduce the cross-view observation interference caused by dynamic target, improve the structure feature expression of weak texture and local blurred image, and improve the stability of feature matching and camera pose calculation.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention belongs to the field of image processing technology, and specifically relates to a method for three-dimensional reconstruction of indoor scene images. Background Technology

[0002] Traditional methods for acquiring indoor spatial information mainly rely on manual surveying and on-site investigations, which are insufficient to meet the rapid digitization needs of architectural spaces. With the development of image acquisition and 3D reconstruction technologies, 3D reconstruction of indoor spaces based on continuous image sequences is gradually being applied in fields such as architectural surveying, spatial analysis, and digital modeling. Existing methods typically recover spatial structure through image feature matching, camera pose estimation, and 3D scene representation (Szeliski, 2010; Schönberger et al., 2016).

[0003] In the prior art, CN110555908A discloses a 3D reconstruction method based on indoor moving target background restoration. This method acquires RGB and depth image sequences of a dynamic indoor scene, detects targets in the images, and determines the moving target region by combining feature matching results between adjacent image frames and camera pose information. Then, it uses static background information from corresponding positions in other image frames to restore the area occluded by the moving target. Finally, it performs 3D point cloud reconstruction based on the restored image data. This technique can reduce the interference of moving targets on indoor 3D reconstruction results to a certain extent and improve the background hole problem caused by directly removing moving targets. However, this type of method mainly addresses scene inconsistencies caused by dynamic targets. The input images may still have differences in sharpness, local blurring, weak edges, and weak textures caused by shooting movement, focus changes, indoor lighting conditions, and the scene's own texture features. When such images are directly used in subsequent feature extraction, feature matching, and camera pose estimation, it can easily lead to insufficient effective features or unstable feature correspondences, thus affecting the estimation of spatial relationships between consecutive images and the subsequent 3D scene reconstruction results.

[0004] However, in actual indoor data acquisition, human activity, temporary object occlusion, weak texture areas, and image quality differences can affect the representation of architectural spatial information, reducing the integrity and stability of 3D reconstruction results. Existing methods mainly focus on optimizing reconstruction algorithms, with insufficient attention paid to the standardization of image data during the acquisition phase. Especially when dynamic occlusion and varying degrees of image quality differences exist simultaneously in continuous indoor images, simply identifying, removing, or repairing dynamic target areas is insufficient to eliminate the impact of low-quality images on multi-view feature extraction, feature matching, and camera pose calculation. Furthermore, existing 3D reconstruction methods typically evaluate reconstruction results using single metrics such as visual quality, geometric error, or runtime. The lack of a unified correlation between these metrics makes it difficult to quantitatively compare the comprehensive performance of different image processing and 3D reconstruction processes from multiple dimensions.

[0005] Therefore, it is necessary to further improve the quality of indoor continuous image data and the integrity and consistency of the evaluation of 3D reconstruction results under complex acquisition conditions. Summary of the Invention

[0006] The purpose of this invention is to overcome the shortcomings of the existing technology and provide a method for three-dimensional reconstruction of indoor scene images.

[0007] The objective of this invention can be achieved through the following technical solutions: This invention provides a method for three-dimensional reconstruction of indoor scene images, comprising the following steps: Obtain the original indoor image sequence of the indoor scene to be reconstructed; The target region is segmented in each image frame of the original indoor image sequence to obtain candidate target regions. Dynamic target regions are determined from the candidate target regions and a corresponding dynamic occlusion mask is generated. Based on the dynamic occlusion mask, the occluded region corresponding to the dynamic target region is restored using static scene information in adjacent image frames to obtain the first image sequence. For each image frame in the first image sequence, the corresponding image frame is used as the initial evaluation object. Unsharpened masks are used to generate candidate enhancement results for sequential evaluation. The Laplacian variance and Brenner gradient of each candidate enhancement result and the current evaluation object are obtained respectively. When the Laplacian variance and Brenner gradient of the candidate enhancement result are both higher than the current evaluation object, the candidate enhancement result is updated to the current evaluation object. Otherwise, the current evaluation object is kept unchanged, and the final current evaluation objects are combined into the second image sequence. Image feature extraction and multi-view feature matching are performed on the second image sequence. Camera parameters and camera pose are calculated based on the multi-view feature matching results to obtain initial 3D scene information. 3D scene reconstruction is performed based on the second image sequence, the camera parameters, the camera pose, and the initial 3D scene information to obtain the indoor scene 3D reconstruction result.

[0008] Furthermore, the acquisition of the original indoor image sequence of the indoor scene to be reconstructed specifically includes: The system continuously moves along the indoor scene to be reconstructed to collect continuous image data, so that adjacent shooting perspectives have scene overlap. The continuous image data is extracted at preset time intervals to obtain discrete indoor image frames. The discrete indoor image frames are quality-screened based on their exposure state, focus state, motion blur state, and scene overlap with adjacent image frames. The retained image frames are then arranged in the order of acquisition to obtain the original indoor image sequence.

[0009] Furthermore, the step of segmenting each image frame in the original indoor image sequence to obtain candidate target regions, determining dynamic target regions from the candidate target regions, and generating corresponding dynamic occlusion masks specifically includes: Target region segmentation is performed on each image frame in the original indoor image sequence to obtain multiple candidate target regions and target masks corresponding to each candidate target region; Based on the state of the appearance, disappearance or position change of the target corresponding to the candidate target region between consecutive image frames, a dynamic target region is determined from the candidate target region; An initial dynamic occlusion mask is generated based on the target mask corresponding to the dynamic target region.

[0010] Furthermore, after generating the initial dynamic occlusion mask based on the target mask corresponding to the dynamic target region, the method further includes: The edge missing areas, broken areas, internal holes, and uncovered dynamic target areas in the initial dynamic occlusion mask are supplemented and corrected. Remove redundant mask regions that cover static scene content from the initial dynamic occlusion mask to obtain a binary dynamic occlusion mask corresponding to each image frame. The static scene content includes at least one of walls, ceilings, floors, and furniture.

[0011] Furthermore, the step of recovering the occluded region corresponding to the dynamic target region using static scene information in adjacent image frames based on the dynamic occlusion mask to obtain the first image sequence specifically includes: The occluded area in the current image frame is determined based on the dynamic occlusion mask; Based on the scene correspondence between the current image frame and adjacent image frames, a background region in the adjacent image frames that corresponds to the occluded region and whose static scene information is observable is determined; The occluded area in the current image frame is supplemented with the image content of the background area to obtain the restored image frame; The recovered image frames are arranged in the order of the original indoor image sequence to obtain the first image sequence.

[0012] Furthermore, the step of generating candidate enhancement results for sequential evaluation using an unsharpened mask specifically includes: The enhancement parameters of the unsharpened mask are set as enhancement radius, enhancement amount, and threshold, and the search is performed item by item within the preset parameter range corresponding to each enhancement parameter according to the order of enhancement radius, enhancement amount, and threshold, with a preset search step size. Each time the current enhancement parameters are adjusted, a corresponding candidate enhancement result is generated, and the Laplacian variance and Brenner gradient of the candidate enhancement result are obtained. When the Laplace variance and Brenner gradient of the candidate enhancement result are both higher than the Laplace variance and Brenner gradient of the current evaluation object, the current enhancement parameter state is retained, and the current enhancement parameters are adjusted along the current search direction. If further adjustment of the current enhancement parameter fails to simultaneously increase the Laplacian variance and the Brenner gradient, retain the state of the previous effective enhancement parameter and proceed to the search for the next enhancement parameter. When the enhancement radius, enhancement amount, and threshold have all been searched, or when the cumulative number of searches for enhancement parameters reaches the preset maximum number of searches, the parameter search for the corresponding image frame ends, and the final current evaluation object is obtained based on the retained enhancement parameter status.

[0013] Furthermore, the step of reconstructing the 3D scene based on the second image sequence, the camera parameters, the camera pose, and the initial 3D scene information to obtain the 3D reconstruction result of the indoor scene specifically includes: The second image sequence, the camera parameters, the camera pose, and the initial 3D scene information are input into a 3D scene reconstruction model based on 3D Gaussian primitives. The three-dimensional Gaussian primitives are trained and optimized using the Deblurring-3DGS model, and the residual motion blur and defocus blur in the second image sequence are optimized to obtain a three-dimensional scene representation; The three-dimensional scene representation is used to output a three-dimensional scene model, a rendered image, and three-dimensional point cloud data as the result of the three-dimensional reconstruction of the indoor scene.

[0014] Furthermore, the indoor scene 3D reconstruction result includes rendered images and 3D point cloud data. After obtaining the indoor scene 3D reconstruction result, it also includes: The rendered image is compared with the corresponding reference image to obtain structural similarity index, peak signal-to-noise ratio and learned perceptual image patch similarity as visual quality index; The three-dimensional point cloud data is compared with the reference geometric model to obtain the average nearest distance from each point in the reconstructed point cloud to the surface of the reference geometric model and the reverse average nearest distance from the sampling points on the surface of the reference geometric model to the reconstructed point cloud as geometric quality indicators. The total computation time from the input of the original indoor image sequence to the output of the 3D reconstruction result of the indoor scene is used as a process efficiency indicator. The total computation time includes the computation time for image preprocessing, dynamic occlusion processing, image adaptive enhancement, camera pose calculation, and 3D scene reconstruction.

[0015] Furthermore, the comprehensive geometric error is determined based on the average nearest distance from each point in the reconstructed point cloud to the surface of the reference geometric model and the reverse average nearest distance from the sampling points on the surface of the reference geometric model to the reconstructed point cloud. The comprehensive geometric error is calculated using the following formula: in, The comprehensive geometric error; The average nearest distance from each point in the reconstructed point cloud to the surface of the reference geometric model; The reverse average nearest distance from the sampling point on the surface of the reference geometric model to the reconstructed point cloud is given.

[0016] Furthermore, the visual quality index, the geometric quality index, and the process efficiency index are normalized to obtain visual quality sub-indicators. Geometric quality sub-indices and process efficiency sub-indicators And according to the visual quality sub-indicators The geometric quality sub-indices and the process efficiency sub-indicators Determine the comprehensive reconstruction evaluation coefficient The comprehensive reconstruction evaluation coefficient , is represented as: in, The visual quality sub-indicator; The geometric quality sub-index; This refers to a sub-index of process efficiency. The weighting coefficients corresponding to the visual quality sub-indicators; The weighting coefficients corresponding to the geometric quality sub-indices; The weighting coefficients corresponding to the process efficiency sub-indicators are as follows: .

[0017] Compared with the prior art, the present invention has the following advantages: (1) In the existing process of continuous indoor image acquisition, problems such as abnormal exposure, local defocus, motion blur, and insufficient overlap of adjacent viewpoints are prone to occur. Low-quality images are prone to insufficient feature extraction and accumulation of incorrect matching after entering the subsequent reconstruction process. This invention filters the exposure state, focus state, motion blur state, and scene overlap relationship between adjacent image frames of continuously acquired images to form an original indoor image sequence, thereby reducing the interference of obviously abnormal images on subsequent dynamic target judgment, feature matching, and camera pose calculation, and providing continuous input data with effective scene correspondence for subsequent 3D reconstruction.

[0018] (2) Existing dynamic target segmentation results are prone to problems such as missing edges, broken masks, internal holes, and incorrect coverage of static areas, which can lead to the retention of dynamic targets or the incorrect removal of effective static scene information. This invention supplements and corrects the initial dynamic occlusion mask and removes redundant mask areas that cover static scene content, so that the dynamic occlusion area has a better correspondence with the actual dynamic target area, providing a more accurate processing range for subsequent background restoration.

[0019] (3) While existing indoor dynamic scene 3D reconstruction methods can detect or remove moving targets, directly removing dynamic targets can easily lead to a loss of background information. Furthermore, when the background restoration area does not accurately correspond to the current image viewpoint, it may introduce new inconsistencies in cross-view content. This invention determines the occluded area based on a dynamic occlusion mask and recovers the occluded area using corresponding and observable static scene information in adjacent image frames to obtain a first image sequence. This allows the static scene information occluded by people or temporary objects to be preserved while removing interference, reducing cross-view observation conflicts caused by the positional changes of dynamic targets in different image frames.

[0020] Furthermore, since subsequent feature matching and camera pose calculation rely on repeated observations of the same static scene from different perspectives, this processing is not only used to fill in image gaps, but also to reduce the situation where dynamic target edges are mistakenly used as static features in matching. This makes the features involved in camera pose estimation more derived from the real static scene, thereby reducing the possibility of dynamic interference continuing to propagate into the pose solving and 3D scene optimization stages.

[0021] (4) Existing image enhancement methods usually use uniform enhancement parameters. However, the sharpness, texture intensity, and blur level of consecutive indoor images are not consistent, which easily leads to the problem of insufficient enhancement of some images and over-enhancement of others. Over-enhancement may also amplify noise or form false edges, which will increase the mismatch of multi-view features. This invention uses an unsharpened mask to generate candidate enhancement results for each image frame in the first image sequence, and uses Laplacian variance and Brenner gradient to evaluate the candidate enhancement results. The corresponding enhancement state is retained only when both indicators are improved. When the current enhancement parameter cannot be adjusted to improve both indicators at the same time, the increase of the parameter is stopped and the next parameter search is started.

[0022] Through the above processing, the enhancement level can be determined separately for the structural feature states of different images. While strengthening the structural information of weak textures, weak edges, and locally blurred areas, it limits the over-sharpening that may be caused by a continuous increase in a single evaluation index. Furthermore, this enhancement process occurs after dynamic occlusion recovery, which reduces the enhancement of dynamic content such as human edges and temporary object outlines. This ensures that the effective structural information in the final second image sequence comes more from stable indoor static scenes, thereby improving the stability of subsequent multi-view feature matching and camera pose calculation. This is one of the more important technical effects of this invention compared to existing technologies that only perform dynamic target removal or background restoration.

[0023] (5) For the motion blur and defocus blur that remain after image preprocessing, this invention performs feature matching and camera pose calculation based on the second image sequence, and then adopts a 3D scene reconstruction model based on 3D Gaussian primitives. In specific implementations, the Deblurring-3DGS model is used for further optimization. This makes 2D image processing and 3D scene optimization a continuous processing process, reducing the impact of residual blur on the final 3D scene representation.

[0024] (6) Existing 3D reconstruction results are usually evaluated using a single metric, such as visual quality, geometric error, or runtime, which makes it difficult to simultaneously reflect rendering quality, geometric integrity, and computational overhead. This invention uses SSIM, PSNR, and LPIPS to evaluate visual quality, and ACC and COMP to evaluate geometric quality. It also combines runtime to form a workflow efficiency metric, and further obtains the comprehensive geometric error and CREI comprehensive reconstruction evaluation coefficient. This allows for comparison of different image processing and 3D reconstruction schemes from multiple dimensions, including visual, geometric, and efficiency aspects, avoiding the one-sidedness caused by evaluating only a single metric. Attached Figure Description

[0025] Figure 1 This is a flowchart of the indoor scene image three-dimensional reconstruction method according to an embodiment of the present invention; Figure 2 This is a schematic diagram of indoor continuous image acquisition and uniform frame dropping according to an embodiment of the present invention; Figure 3 This is a flowchart of image target region segmentation and dynamic occlusion region restoration according to an embodiment of the present invention; Figure 4 This is a flowchart of the image feature adaptive enhancement and parameter search process according to an embodiment of the present invention; Figure 5 This is a flowchart of the 3D Gaussian deblurring and scene reconstruction based on Deblurring-3DGS according to an embodiment of the present invention. Detailed Implementation

[0026] The technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some, not all, of the embodiments of the present invention. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort should fall within the scope of protection of the present invention.

[0027] like Figure 1 As shown, this embodiment provides a method for three-dimensional reconstruction of indoor scene images; In the first specific embodiment, a standard color camera or a mobile terminal with color imaging capabilities is used to continuously move and capture images along the indoor space to be reconstructed. The shooting path covers walls, ceilings, floors, furniture, and main passageways, and adjacent shooting perspectives retain scene overlap. During acquisition, the focal length, exposure mode, and image resolution are kept relatively stable to avoid frequent lens switching and digital zoom. This reduces differences in brightness, scale, and local structure caused by abrupt changes in shooting parameters and allows subsequent cross-frame matching to be based on continuous observation.

[0028] S1. Obtain the original indoor image sequence of the indoor scene to be reconstructed.

[0029] like Figure 2 As shown, continuous video or continuously captured images are extracted into frames at preset time intervals to obtain discrete indoor image frames arranged in chronological order. The preset time interval is set according to the camera movement speed and scene scale, ensuring that adjacent image frames have both significant changes in perspective and sufficient common scene areas. Shorter frame extraction intervals are used for acquisition processes with faster camera movement speeds, while longer frame extraction intervals are used for acquisition processes with slower camera movement speeds.

[0030] Quality screening was performed on discrete indoor image frames. Screening criteria included exposure status, focus status, motion blur status, and scene overlap with adjacent image frames. Severely overexposed frames were identified by the proportion of bright, saturated pixels; severely out-of-focus frames and frames with significant motion blur were identified by sharpness indicators; and image frames with insufficient overlap between adjacent scenes were identified by the effective matching ratio after local feature matching and geometric verification. Each screening threshold was determined before formal acquisition using a calibration sequence obtained from the same imaging device, ensuring that the thresholds were matched to sensor noise, resolution, and lens imaging characteristics.

[0031] In one implementation, the proportion of highlighted pixels is calculated after converting the image to grayscale. and effective matching ratio : in, The total number of pixels in the image. For the first grayscale value of each pixel. The threshold for determining highlight saturation. For indicator functions, This represents the initial number of feature matching pairs obtained between adjacent image frames. This represents the number of interior point matching pairs retained after geometric verification. Used to reflect the degree of overexposure. This is used to reflect the effective scene overlap between adjacent views. During actual filtering, it will... Clarity index and By using a combination of methods, rather than relying on a single metric to delete image frames, we can avoid misclassifying wall and ceiling images with weak textures but still valid geometric information as invalid frames.

[0032] After image filtering, the retained valid image frames are arranged in the order of acquisition to form the original indoor image sequence: in, This is the original indoor image sequence. The first image in the original indoor image sequence frame, Image frame number, This represents the number of valid images retained after quality screening. The original indoor image sequence serves as input for dynamic occlusion region processing.

[0033] S2. Perform dynamic occlusion processing on the original indoor image sequence to obtain the first image sequence.

[0034] like Figure 3 As shown, for Each image frame in the dataset is segmented to obtain multiple candidate target regions and corresponding target masks. In indoor scenes, walls, ceilings, floors, and fixed furniture typically remain relatively stable during continuous acquisition; however, people, moving objects, and objects temporarily placed and then removed appear, disappear, or change position between consecutive image frames. Based on these temporal changes, dynamic target regions that need to be excluded from the 3D reconstruction input data are determined from the candidate target regions, and corresponding initial dynamic occlusion masks are generated.

[0035] In one specific implementation, target region segmentation is performed using the Mask R-CNN instance segmentation network. The network employs a ResNet-50 residual backbone and an FPN feature pyramid to extract multi-scale features. The RPN candidate region generation branch generates candidate boxes, the RoIAlign layer maps candidate regions of different scales to fixed-size features, the classification branch and bounding box regression branch determine the target category and location, and the mask branch outputs a pixel-level binary target mask. With this structure, people, pets, movable seats, and other objects with clear instance boundaries form independent masks, facilitating subsequent cross-frame association on an instance-by-instance basis.

[0036] Cross-frame dynamic state determination first estimates the global camera motion between adjacent image frames using static feature points that do not belong to the candidate target region, and then maps the candidate region in the later image frame to the coordinate system of the current image frame. For the same target that still undergoes a significant positional change after camera motion compensation, the corresponding candidate region is determined to be a dynamic target region; walls, cabinets, and fixed decorations that only exhibit consistent projection changes with camera viewpoint changes are not included in the dynamic target region. If a candidate target appears or disappears only in a subset of consecutive image frames, it is also treated as a temporary dynamic object. This distinguishes between camera movement and scene target movement, reducing the possibility of misclassifying static backgrounds as dynamic regions.

[0037] After the initial dynamic occlusion mask is generated, it is checked and corrected. For areas with missing segmentation boundaries, broken masks, internal holes, and incomplete coverage of dynamic targets, connected component merging, hole filling, and morphological closing operations are used to fill in the gaps. For cases where a small safety margin needs to be retained outside the target boundary, morphological dilation of one to several pixels is performed. Redundant areas that incorrectly cover walls, ceilings, floors, and fixed furniture are deleted based on the cross-frame static consistency results. The corrected images yield binary dynamic occlusion masks corresponding to each image frame. The mask value is The pixels represent the dynamically occluded area that needs to be restored, and the mask value is... The pixels represent the preserved original static scene area.

[0038] In the first dynamic occlusion restoration method, the ProPainter video restoration framework is used and in accordance with... Figure 3 The encoder, multiple MSVT modules, and decoder shown constitute a temporal restoration network. Successive image frames and their corresponding binary dynamic occlusion masks are input into the network. The network first calculates the forward and backward optical flow between adjacent image frames, then the cyclic optical flow completion module completes the missing or unreliable optical flow within the masked region. Subsequently, global propagation in the image domain and local propagation in the feature domain are performed, allowing the static background information observed in adjacent frames to be transmitted to the current frame along the completed optical flow. The propagated features are then used to guide the sparse video Transformer module for spatiotemporal attention updates via multiple masks. Finally, the decoder recovers the RGB image. The MSVT module focuses on calculating attention only for spatiotemporal regions containing masks or related to mask propagation, thus enabling the utilization of background information from distant frames in long sequences while reducing the computational load on irrelevant static regions.

[0039] For the The relationship between the frame, the mask input, and the reconstructed image is expressed as follows: in, The input mask image for the temporal repair network, The first image in the original indoor image sequence frame, For the first Binary dynamic occlusion mask for frames. For element-wise multiplication, The candidate images for restoration output by the temporal restoration network. To complete the first step after dynamic occlusion recovery Frame. This combination method allows the original pixels to be directly preserved in non-masked areas, and the recovery result is written only in dynamically occluded areas, reducing unnecessary modifications to the original static scene colors and textures.

[0040] In the second dynamic occlusion recovery method, a lightweight temporal fusion based on optical flow alignment is employed, and a RAFT network is used to calculate the dense optical flow between adjacent image frames. The RAFT network consists of a feature encoder, a context encoder, a full pair correlation volume, and a recurrent update module. The feature encoder extracts pixel-wise features from the current image frame and adjacent image frames, respectively. The full pair correlation volume records the matching relationship between all pixel features of the two frames. The recurrent update module queries the correlation volume multiple times and gradually corrects the optical flow field. The obtained dense optical flow is used to back-map adjacent image frames to the coordinate system of the current image frame. Then, fusion weights are determined from the effective background observations of multiple adjacent frames according to temporal distance and photometric consistency, and the masked region is weighted and fused. This method is suitable for scenarios with short occlusion duration and directly observable background of adjacent frames, and has a shorter computation chain. The first method based on MSVT can utilize background information over a longer time range and is more suitable for scenarios where people stay for a long time or where the occlusion area is large.

[0041] After completing the dynamic occlusion restoration of all image frames, the first image sequence is formed: in, This is the first image sequence. For the first Frame-by-frame image restoration The number of valid images is consistent with that in the original indoor image sequence. The first image sequence retains the indoor static scene information obtained through temporal reconstruction and serves as the input for adaptive image feature enhancement.

[0042] S3. Perform adaptive enhancement of image features on the first image sequence to obtain the second image sequence.

[0043] like Figure 4 As shown, for Each frame in the image is evaluated separately to assess the structural features. Walls, ceilings, solid-color cabinets, and smooth floors are characterized by repetitive textures, weak local gradients, and a small number of feature points. Moving the camera also introduces varying degrees of motion blur and local defocusing. Therefore, this step does not use uniform enhancement parameters for all images, but instead searches for unsharpened mask parameters corresponding to the current image's own state frame by frame.

[0044] Each frame is first converted to either the luminance component or grayscale image. Calculate the Laplacian variance and Brenner gradient for the image under the current enhancement parameters. The Laplacian variance is calculated as follows: in, For the first Laplace variance under each parameter search state The number of pixels participating in the evaluation. For the first Under the parameter search state, the first The response value of each pixel after processing by the discrete Laplacian operator. The average value of all Laplace responses. This is the current parameter search status number. It reflects the degree of change in image edges and high-frequency structural information.

[0045] Brenner gradient uses the sum of squared grayscale differences between two pixels.

[0046] Unsharpened mask enhancement first utilizes a radius of A Gaussian kernel is used to obtain a smooth image, then high-frequency differences are extracted from the original image, and the enhancement amount is determined accordingly. and threshold Update pixels. The brightness domain processing relationship is represented as follows: in, This is the brightness map of the current evaluation object. For the enhanced radius A defined Gaussian smoothing kernel, For convolution operations, To smooth the image, It is a high-frequency differential, To increase quantity, For the threshold, This generates candidate enhancement results for the current parameter combination. In color image processing, the above operations are preferentially performed only on the luminance component before being combined with the original chrominance component to reduce color cast.

[0047] The enhancement parameters include at least the enhancement radius. Increase and threshold .

[0048] Each time the current enhancement parameters are adjusted, the Laplace variance corresponding to the candidate enhancement results is obtained again. and Brenner gradient and the state of the previous valid parameter and Comparison. When the candidate enhancement results simultaneously satisfy: The candidate enhancement results are then updated to the current evaluation object, and adjustments continue along the current parameter search direction. When further changes to the current enhancement parameters fail to improve both metrics simultaneously, the previous effective parameter state is retained, the current parameter increase is stopped, and the search for the next enhancement parameter begins. The search for the current image frame ends when the enhancement radius, enhancement amount, and threshold have all been searched, or when the cumulative number of parameter searches reaches the preset maximum number of searches. Figure 4 Evaluation status in From binary state This indicates that the two indicators will not be pre-combined into a single score, thus avoiding the situation where artificially setting indicator weights would lead to a significant decrease in one indicator still being accepted.

[0049] The first image sequence is processed using the enhancement parameters retained from each frame. While preserving the original static scene content and color relationships as much as possible, the structural information of weak textures, weak edges, and locally blurred areas is enhanced to form the second image sequence. in, This is the second image sequence. For the first The final enhanced image of the frame, The effective number of images is determined by the second image sequence. This sequence undergoes dynamic occlusion recovery followed by frame-by-frame structural feature enhancement. Therefore, when used as input for camera pose calculation and 3D scene reconstruction, it reduces the involvement of dynamic edges in incorrect matching and simultaneously increases the effective structural information involved in feature extraction in weakly textured static regions.

[0050] S4. Perform camera pose calculation and 3D scene reconstruction based on the second image sequence.

[0051] right Image feature extraction and multi-view feature matching are performed. In one specific implementation, the incremental Structure-from-Motion workflow in COLMAP is adopted. First, local features and descriptors with scale and rotation stability are extracted in each image frame. Since the input data is arranged in the order of continuous shooting, sequential matching is performed on image frames that are temporally adjacent and within a preset neighborhood. Then, RANSAC is used to perform geometric verification of the fundamental matrix, homography matrix, or essential matrix, and matching pairs that do not meet the multi-view geometric constraints are deleted. Initial image pairs with a sufficient number of inliers and disparity are selected to establish an initial structure. Subsequently, the remaining images are registered frame by frame. Sparse 3D points are generated through triangulation, and beamforming is used to jointly optimize camera intrinsic parameters, camera extrinsic parameters, and 3D point positions. This yields camera parameters, camera pose, and a sparse 3D point cloud as scene initialization information.

[0052] For consecutive video frames, sequential matching has a lower computational cost than pairwise matching of all images and is consistent with the temporal adjacency relationship at the time of acquisition. For scenarios with loops or multiple interconnected rooms, adding non-adjacent candidate frame matching obtained from image retrieval to sequential matching can supplement cross-path constraints and reduce pose drift on long paths.

[0053] like Figure 5 As shown, the second image sequence, camera parameters, camera pose, and initial 3D scene information are input into a scene reconstruction model based on 3D Gaussian primitives. Each 3D Gaussian primitive includes at least 3D position. Rotation parameters Scale parameters Opacity and spherical harmonics used to describe view-dependent colors. The Gaussian covariance matrix consists of a rotation matrix and a scaling matrix: in, Let G be the covariance matrix of the three-dimensional Gaussian elements. For rotation parameters The resulting rotation matrix, For scale parameters The resulting scale matrix, This represents the matrix transpose. The Gaussian set progressively fits the geometry and appearance of the interior scene by performing gradient optimization on position, scale, rotation, opacity, and color parameters, and by performing densification, splitting, or clipping of Gaussian units during training.

[0054] In the first 3D scene reconstruction method, Deblurring-3DGS is used to process the residual blur that still exists after 2D standardization. Figure 5 In For a small multilayer perceptron, the inputs are the encoding of the 3D Gaussian position, rotation parameters, scale parameters, and the encoding of the viewing direction. The outputs are the rotation perturbation factor and scale perturbation factor corresponding to each Gaussian. in, The parameter set is Multilayer perceptron, For three-dimensional Gaussian positions, For rotation parameters, For scale parameters, The viewing direction corresponding to the current training image. For position encoding functions, For rotational perturbation factor, The scale perturbation factor. The position encoding function is expanded using multi-frequency sine and cosine: in, For the position or orientation components that need to be encoded The number of frequency layers used for position coding. This refers to the frequency index. During the training phase, it is used... and The rotation and scale corresponding to the Gaussian covariance are adjusted so that the transformed Gaussian can be used to fit the local diffusion blur in the input image; the base Gaussian without blur perturbation is used for rendering in the inference and scene output stages so that the reconstruction result retains finer structural boundaries.

[0055] For scenes with significant camera motion components in the residual blur, the second 3D scene reconstruction method adds camera pose sampling during exposure in addition to the Gaussian optimization mentioned above. For each training image, the camera pose obtained from Structure-from-Motion is used as the exposure center pose, and several sub-poses are estimated in its neighborhood. The Gaussian rendering results under each sub-pose are integrated according to the exposure weights to form a simulated blurred image. The reconstruction error is then calculated with the input image, and the Gaussian parameters and sub-poses are updated in reverse. This method is more suitable for images with significant residual camera shake during handheld shooting; when the residual blur is mainly manifested as defocus and local diffusion, the first covariance perturbation method has a simpler training structure.

[0056] After training and optimization of the 3D scene, the output includes a 3D scene model, rendered images, and 3D point cloud data. The 3D scene model is used for digital representation of indoor spaces, the rendered images are used for visual quality evaluation, and the 3D point cloud data is used for geometric quality evaluation. This ensures a one-to-one correspondence between the reconstruction output and subsequent evaluation data.

[0057] S5. Evaluate the quality of the 3D reconstruction results of the indoor scene.

[0058] Visual quality assessment uses the structural similarity metric SSIM, peak signal-to-noise ratio (PSNR), and learned perceptual patch similarity (LPIPS). The reference image is either a clear image not used in training for the corresponding viewpoint, or a high-quality image acquired separately under the same camera pose. SSIM evaluates the similarity between the rendered image and the reference image in terms of brightness, contrast, and structure; PSNR reflects the pixel error level; and LPIPS uses depth feature distance to reflect perceptual differences. Higher SSIM and PSNR indicate better visual consistency, while lower LPIPS indicates smaller perceptual differences.

[0059] Geometric quality assessment uses two nearest-nearest-neighbor metrics, ACC and COMP, which are in opposite directions. ACC is the average nearest-nearest-neighbor distance from each point in the reconstructed point cloud to the surface of the reference geometric model, reflecting the degree to which the reconstructed points deviate from the real surface. COMP is the reverse average nearest-nearest-neighbor distance from the sampling points on the reference geometric model surface to the reconstructed point cloud, reflecting the completeness of the real scene surface covered by the reconstructed point cloud. The reference geometric model is obtained using laser scanning, structured light scanning, or other measurement methods with higher accuracy than the reconstruction results being evaluated. The overall geometric error (OVERALL) is calculated using the following formula: in, To account for geometric errors, To reconstruct the average nearest distance from the point cloud to the surface of the reference geometric model, The inverse average nearest distance from the sampling point on the surface of the reference geometric model to the reconstructed point cloud. The lower the value, the smaller the overall error in terms of accuracy and completeness.

[0060] The process efficiency record tracks the total time from the input of the original indoor image sequence to the output of the 3D scene reconstruction result. The total time consists of image preprocessing time, dynamic occlusion processing time, image adaptive enhancement time, camera pose calculation time, and 3D scene reconstruction time. Different schemes are evaluated using the same hardware, image resolution, number of input frames, and stopping conditions to ensure the time data is comparable across different scenarios.

[0061] To ensure that the visual, geometric, and efficiency dimensions are all included in the CREI comprehensive evaluation, one specific evaluation method uses the index corresponding to the baseline processing scheme as the normalized benchmark. Visual quality sub-indicators Geometric quality sub-indices and process efficiency sub-indicators Determine them according to the following formulas respectively: in, , and The visual quality indicators for the current processing scheme are... , and The visual quality index corresponding to the benchmark processing scheme. The overall geometric error of the current processing scheme, The comprehensive geometric error of the benchmark processing scheme, This represents the total runtime of the current processing solution. This represents the total runtime of the baseline processing scheme. By taking the smallest possible LPIPS, OVERALL, and runtime metrics as the ratio of the baseline value to the current value, we can achieve this. , and The values ​​consistently reflect the general trend that larger values ​​indicate better relative performance.

[0062] Further construct the CREI comprehensive reconstruction evaluation coefficient: And satisfy: in, To comprehensively reconstruct the evaluation coefficient, For visual quality sub-indicators Geometric quality sub-index This is a sub-indicator of process efficiency. These are the weighting coefficients corresponding to visual quality. The weighting coefficients corresponding to geometric mass. This refers to the weighting coefficient corresponding to process efficiency. The weight is set according to the application goal: when architectural surveying places more emphasis on geometric quality, it is increased. Immersive displays place greater emphasis on rendering effects to improve... When mobile devices or batch processing prioritize operational efficiency, improve When using benchmark ratio normalization, This indicates that the current solution outperforms the benchmark solution under the given weights.

[0063] If the aforementioned functions are implemented as software functional units and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of this invention, or the part that contributes to the prior art, or a part of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute all or part of the steps of the methods described in the various embodiments of this invention. The aforementioned storage medium includes various media capable of storing program code, such as USB flash drives, portable hard drives, read-only memory (ROM), random access memory (RAM), magnetic disks, or optical disks.

[0064] The above description is merely a specific embodiment of the present invention, but the scope of protection of the present invention is not limited thereto. Any person skilled in the art can easily conceive of various equivalent modifications or substitutions within the technical scope disclosed in the present invention, and these modifications or substitutions should all be covered within the scope of protection of the present invention. Therefore, the scope of protection of the present invention should be determined by the scope of the claims.

Claims

1. A method for three-dimensional reconstruction of indoor scene images, characterized in that, Includes the following steps: Obtain the original indoor image sequence of the indoor scene to be reconstructed; The target region is segmented in each image frame of the original indoor image sequence to obtain candidate target regions. Dynamic target regions are determined from the candidate target regions and a corresponding dynamic occlusion mask is generated. Based on the dynamic occlusion mask, the occluded region corresponding to the dynamic target region is restored using static scene information in adjacent image frames to obtain the first image sequence. For each image frame in the first image sequence, the corresponding image frame is used as the initial evaluation object. Unsharpened masks are used to generate candidate enhancement results for sequential evaluation. The Laplacian variance and Brenner gradient of each candidate enhancement result and the current evaluation object are obtained respectively. When the Laplacian variance and Brenner gradient of the candidate enhancement result are both higher than the current evaluation object, the candidate enhancement result is updated to the current evaluation object. Otherwise, the current evaluation object is kept unchanged, and the final current evaluation objects are combined into the second image sequence. Image feature extraction and multi-view feature matching are performed on the second image sequence. Camera parameters and camera pose are calculated based on the multi-view feature matching results to obtain initial 3D scene information. 3D scene reconstruction is performed based on the second image sequence, the camera parameters, the camera pose, and the initial 3D scene information to obtain the indoor scene 3D reconstruction result.

2. The method for three-dimensional reconstruction of indoor scene images according to claim 1, characterized in that, The acquisition of the original indoor image sequence of the indoor scene to be reconstructed specifically includes: The system continuously moves along the indoor scene to be reconstructed to collect continuous image data, so that adjacent shooting perspectives have scene overlap. The continuous image data is extracted at preset time intervals to obtain discrete indoor image frames. The discrete indoor image frames are quality-screened based on their exposure state, focus state, motion blur state, and scene overlap with adjacent image frames. The retained image frames are then arranged in the order of acquisition to obtain the original indoor image sequence.

3. The method for three-dimensional reconstruction of indoor scene images according to claim 1, characterized in that, The step of segmenting each image frame in the original indoor image sequence to obtain candidate target regions, determining dynamic target regions from the candidate target regions, and generating corresponding dynamic occlusion masks specifically includes: Target region segmentation is performed on each image frame in the original indoor image sequence to obtain multiple candidate target regions and target masks corresponding to each candidate target region; Based on the state of the appearance, disappearance or position change of the target corresponding to the candidate target region between consecutive image frames, a dynamic target region is determined from the candidate target region; An initial dynamic occlusion mask is generated based on the target mask corresponding to the dynamic target region.

4. The method for three-dimensional reconstruction of indoor scene images according to claim 3, characterized in that, After generating the initial dynamic occlusion mask based on the target mask corresponding to the dynamic target region, the method further includes: The edge missing areas, broken areas, internal holes, and uncovered dynamic target areas in the initial dynamic occlusion mask are supplemented and corrected. Remove redundant mask regions that cover static scene content from the initial dynamic occlusion mask to obtain a binary dynamic occlusion mask corresponding to each image frame. The static scene content includes at least one of walls, ceilings, floors, and furniture.

5. The method for three-dimensional reconstruction of indoor scene images according to claim 1, characterized in that, The step of recovering the occluded region corresponding to the dynamic target region using static scene information in adjacent image frames based on the dynamic occlusion mask to obtain the first image sequence specifically includes: The occluded area in the current image frame is determined based on the dynamic occlusion mask; Based on the scene correspondence between the current image frame and adjacent image frames, a background region in the adjacent image frames that corresponds to the occluded region and whose static scene information is observable is determined; The occluded area in the current image frame is supplemented with the image content of the background area to obtain the restored image frame; The recovered image frames are arranged in the order of the original indoor image sequence to obtain the first image sequence.

6. The method for three-dimensional reconstruction of indoor scene images according to claim 1, characterized in that, The process of generating candidate enhancement results for sequential evaluation using an unsharpened mask specifically includes: The enhancement parameters of the unsharpened mask are set as enhancement radius, enhancement amount, and threshold, and the search is performed item by item within the preset parameter range corresponding to each enhancement parameter according to the order of enhancement radius, enhancement amount, and threshold, with a preset search step size. Each time the current enhancement parameters are adjusted, a corresponding candidate enhancement result is generated, and the Laplacian variance and Brenner gradient of the candidate enhancement result are obtained. When the Laplace variance and Brenner gradient of the candidate enhancement result are both higher than the Laplace variance and Brenner gradient of the current evaluation object, the current enhancement parameter state is retained, and the current enhancement parameters are adjusted along the current search direction. If further adjustment of the current enhancement parameter fails to simultaneously increase the Laplacian variance and the Brenner gradient, retain the state of the previous effective enhancement parameter and proceed to the search for the next enhancement parameter. When the enhancement radius, enhancement amount, and threshold have all been searched, or when the cumulative number of searches for enhancement parameters reaches the preset maximum number of searches, the parameter search for the corresponding image frame ends, and the final current evaluation object is obtained based on the retained enhancement parameter status.

7. The method for three-dimensional reconstruction of indoor scene images according to claim 1, characterized in that, The step of reconstructing a 3D scene based on the second image sequence, the camera parameters, the camera pose, and the initial 3D scene information to obtain a 3D reconstruction result of the indoor scene specifically includes: The second image sequence, the camera parameters, the camera pose, and the initial 3D scene information are input into a 3D scene reconstruction model based on 3D Gaussian primitives. The three-dimensional Gaussian primitives are trained and optimized using the Deblurring-3DGS model, and the residual motion blur and defocus blur in the second image sequence are optimized to obtain a three-dimensional scene representation; The three-dimensional scene representation is used to output a three-dimensional scene model, a rendered image, and three-dimensional point cloud data as the result of the three-dimensional reconstruction of the indoor scene.

8. The method for three-dimensional reconstruction of indoor scene images according to claim 1, characterized in that, The 3D reconstruction result of the indoor scene includes rendered images and 3D point cloud data. After obtaining the 3D reconstruction result of the indoor scene, it also includes: The rendered image is compared with the corresponding reference image to obtain structural similarity index, peak signal-to-noise ratio and learned perceptual image patch similarity as visual quality index; The three-dimensional point cloud data is compared with the reference geometric model to obtain the average nearest distance from each point in the reconstructed point cloud to the surface of the reference geometric model and the reverse average nearest distance from the sampling points on the surface of the reference geometric model to the reconstructed point cloud as geometric quality indicators. The total computation time from the input of the original indoor image sequence to the output of the 3D reconstruction result of the indoor scene is used as a process efficiency indicator. The total computation time includes the computation time for image preprocessing, dynamic occlusion processing, image adaptive enhancement, camera pose calculation, and 3D scene reconstruction.

9. The method for three-dimensional reconstruction of an indoor scene image according to claim 8, characterized in that, The comprehensive geometric error is determined based on the average nearest distance from each point in the reconstructed point cloud to the surface of the reference geometric model and the reverse average nearest distance from the sampling points on the surface of the reference geometric model to the reconstructed point cloud. The comprehensive geometric error is calculated using the following formula: in, The comprehensive geometric error; The average nearest distance from each point in the reconstructed point cloud to the surface of the reference geometric model; The reverse average nearest distance from the sampling point on the surface of the reference geometric model to the reconstructed point cloud is given.

10. A method for three-dimensional reconstruction of an indoor scene image according to claim 8, characterized in that, The visual quality index, geometric quality index, and process efficiency index are normalized to obtain visual quality sub-indicators. Geometric quality sub-indices and process efficiency sub-indicators And according to the visual quality sub-indicators The geometric quality sub-indices and the process efficiency sub-indicators Determine the comprehensive reconstruction evaluation coefficient The comprehensive reconstruction evaluation coefficient , is represented as: in, The visual quality sub-indicator; The geometric quality sub-index; This refers to a sub-index of process efficiency. The weighting coefficients corresponding to the visual quality sub-indicators; The weighting coefficients corresponding to the geometric quality sub-indices; The weighting coefficients corresponding to the process efficiency sub-indicators are as follows: .