MCPcopy Index your code
hub / github.com/ColmapView/Colmapview.github.io / createTinyGaussianSpzEntry

Function createTinyGaussianSpzEntry

e2e/webgpu-psnr-app.spec.ts:148–164  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

146}
147
148function createTinyGaussianSpzEntry(): TestDatasetFileEntry {
149 const cloud: Parameters<typeof saveSPZ>[0] = {
150 count: 1,
151 positions: new Float32Array([0, 0, 1]),
152 scales: new Float32Array([0.05, 0.05, 0.05]),
153 rotations: new Float32Array([1, 0, 0, 0]),
154 opacities: new Float32Array([0.95]),
155 sh0: rgbToSHDC(new Float32Array([1, 0, 0])),
156 shDegree: 0,
157 };
158
159 return {
160 relativePath: 'splats/tiny-gaussian.spz',
161 name: 'tiny-gaussian.spz',
162 base64: Buffer.from(new Uint8Array(saveSPZ(cloud))).toString('base64'),
163 };
164}
165
166function createSolidPngBase64(
167 width: number,

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected