Skip to content

T=1初始化不透明度应该放到遍历高斯外边? #3

@Wang-Chbo

Description

@Wang-Chbo

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_color

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions