-
Notifications
You must be signed in to change notification settings - Fork 48
Open
Description
T=1初始化不透明度应该放到遍历高斯外边?
class Rasterizer:
...
def render(
self, point_list, W, H, points_xy_image, features, conic_opacity, bg_color
):
....
# loop pixel
for i in range(H):
for j in range(W):
# loop gaussian
for idx in point_list:
# init helper variables, transmirrance
T = 1
...
test_T = T * (1 - alpha)
if test_T < 0.0001:
break
# Eq. (3) from 3D Gaussian splatting paper.
color = features[idx]
for ch in range(3):
C[ch] += color[ch] * alpha * T
T = test_T
# get final color
for ch in range(3):
out_color[j, i, ch] = C[ch] + T * bg_color[ch]
return out_colorMetadata
Metadata
Assignees
Labels
No labels