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

Function getPsnrState

e2e/webgpu-psnr-app.spec.ts:604–610  ·  view source on GitHub ↗
(page: Page, imageId = SELECTED_IMAGE_ID)

Source from the content-addressed store, hash-verified

602}
603
604async function getPsnrState(page: Page, imageId = SELECTED_IMAGE_ID): Promise<SplatPsnrState> {
605 return page.evaluate((nextImageId) => {
606 const api = (window as Window & { __COLMAP_WEBVIEW_E2E__?: ColmapWebViewE2EApi }).__COLMAP_WEBVIEW_E2E__;
607 if (!api) throw new Error('Scene E2E probe is not installed');
608 return api.getSplatPsnrState(nextImageId);
609 }, imageId);
610}
611
612async function getWebGpuSplatDebugCounters(page: Page): Promise<WebGpuSplatDebugCounters> {
613 return page.evaluate(async () => {

Calls

no outgoing calls

Tested by

no test coverage detected