|
Algorithm 1 Forward Rendering and Gated Optimization in Lumina-4DGS |
-
Require:
3D Gaussians , Camera Pose , Time t, Image
-
Ensure:
Final Rendered Image , Updated Parameters
-
1:
Initialization: Global AE/AWB parameters (), Bilateral Grid , Threshold
-
2:
//—Stage 1: Forward Rendering (Pixel-wise integration)—
-
3:
for each ray r traversing sorted Gaussians do
-
4:
Calculate canonical color via Spherical Harmonics:
-
5:
// Step A: Global AWB and AE Compensation
-
6:
Apply channel-wise gain (AWB) and global bias (AE):
-
7:
-
8:
// Step B: Local Photometric Refinement
-
9:
Sample grid affine matrix for spatial position :
-
10:
-
11:
Apply local affine correction:
-
12:
-
13:
// Step C: Volumetric Alpha Blending
-
14:
Accumulate transmittance and final color:
-
15:
-
16:
end for
-
17:
Assemble pixels to form
-
18:
//—Stage 2: Object-Aware SSIM-Gated Optimization—
-
19:
Render raw geometry image without exposure compensation
-
20:
Calculate object-level structural reliability:
-
21:
if then
-
22:
// Structure is reliable, unfreeze appearance
-
23:
else
-
24:
// Structure is chaotic, freeze appearance
-
25:
end if
-
26:
//—Stage 3: Gradient Modulation—
-
27:
Compute total loss (see Equation (20))
-
28:
Update Geometry:
-
29:
Update Exposure:
-
30:
return
|