UNPKG

@playcanvas/splat-transform

Version:

Library and CLI tool for 3D Gaussian splat format conversion and transformation

20 lines (19 loc) 1.07 kB
import { DataTable } from '../data-table'; import type { DeviceCreator } from '../types'; /** * Remove Gaussians that don't meaningfully contribute to any solid voxel. * * GPU-voxelizes the scene at a given resolution, then for each Gaussian evaluates * its opacity contribution at each occupied voxel center in its AABB range. * Discards Gaussians whose contribution is below `minContribution` at every * solid voxel. * * @param dataTable - Input Gaussian splat data. * @param createDevice - Function to create a GPU device for voxelization. * @param voxelResolution - Voxel size in world units. Default: 0.05. * @param opacityCutoff - Opacity threshold for solid voxels. Default: 0.1. * @param minContribution - Minimum Gaussian contribution at a voxel center to be kept. Default: 1/255. * @returns Filtered DataTable with floaters removed. */ declare const filterFloaters: (dataTable: DataTable, createDevice: DeviceCreator, voxelResolution?: number, opacityCutoff?: number, minContribution?: number) => Promise<DataTable>; export { filterFloaters };