Gaussian Splatting
9 nodes
On this page 9
Describe Device
FunctionSays what rendering and training will run on.
DescribeDevice() -> Text
string DescribeDevice()
Returns
| result | Text |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Gaussian Splatting
- Package
- Computer Graphics
Extract Video Frames
FunctionPicks evenly spaced, sharp frames out of a video and writes them as photographs.
ExtractVideoFrames -> Text
videoPath: Text
outputFolder: Text
frameCount: Integer
maxSize: Integerstring ExtractVideoFrames(
string videoPath,
string outputFolder,
int frameCount = 200,
int maxSize = 1600)Parameters
| name | type | default | description |
|---|---|---|---|
| videoPath | Text | — | The video: H.264, HEVC, AV1, VP9, MPEG or ProRes in MP4, MOV, MKV or WebM. |
| outputFolder | Text | — | The folder the frames are written to. |
| frameCount | Integer | 200 | How many frames to keep. |
| maxSize | Integer | 1600 | The longest side of a written frame; 0 keeps the video's size. |
Returns
| Folder | Text |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Events Routine StateMachineState
- Declared by
- Gaussian Splatting
- Package
- Computer Graphics
Load Capture
FunctionReads a capture someone else's tool has already solved: a COLMAP workspace (images and sparse) or a folder with transforms.json.
LoadCapture(path: Text) -> Capture Scene
CaptureScene LoadCapture(string path)
Parameters
| name | type | default | description |
|---|---|---|---|
| path | Text | — |
Returns
| Capture | Capture Scene |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Gaussian Splatting
- Package
- Computer Graphics
Orbit View
FunctionA camera on a circle round a splat's subject, far enough back to hold it. Where the subject is and which way is up are guessed from the splats, since a splat file carries no cameras; a view from a side the capture never saw will be soft.
OrbitView -> Splat Camera
splat: Splat Cloud
angle: Number
elevation: Number
width: Integer
height: IntegerSplatCamera OrbitView(
SplatCloud splat,
double angle = 0,
double elevation = 20,
int width = 1280,
int height = 720)Parameters
| name | type | default | description |
|---|---|---|---|
| splat | Splat Cloud | — | |
| angle | Number | 0 | Where on the circle the camera is, in degrees. |
| elevation | Number | 20 | How far above the horizon the camera is, in degrees. |
| width | Integer | 1280 | Picture width in pixels. |
| height | Integer | 720 | Picture height in pixels. |
Returns
| Camera | Splat Camera |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Gaussian Splatting
- Package
- Computer Graphics
Reconstruct Cameras
FunctionWorks out where each photograph in a folder was taken from, by structure from motion: the step that turns pictures into a capture a splat can be trained from.
ReconstructCameras -> (Capture: Capture Scene, registered: Integer)
imageFolder: Text
ordered: TruthCaptureScene ReconstructCameras(
string imageFolder,
bool ordered,
out int registered)Parameters
| name | type | default | description |
|---|---|---|---|
| imageFolder | Text | — | A folder of JPEG or PNG photographs of one scene, taken from many positions with plenty of overlap. |
| ordered | Truth | — | Whether the photographs are in the order they were taken, as frames of a video are; matching then looks at neighbours first, which is much faster. |
Returns
| Capture | Capture Scene |
| registered | Integer |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Events Routine StateMachineState
- Declared by
- Gaussian Splatting
- Package
- Computer Graphics
Render Orbit View
FunctionRenders a splat from a point on a circle round it: the view a turntable gives.
RenderOrbitView -> Pixel Image
splat: Splat Cloud
angle: Number
elevation: Number
width: Integer
height: IntegerPixelImage RenderOrbitView(
SplatCloud splat,
double angle = 0,
double elevation = 20,
int width = 1280,
int height = 720)Parameters
| name | type | default | description |
|---|---|---|---|
| splat | Splat Cloud | — | |
| angle | Number | 0 | Where on the circle the camera is, in degrees. |
| elevation | Number | 20 | How far above the horizon the camera is, in degrees. |
| width | Integer | 1280 | Picture width in pixels. |
| height | Integer | 720 | Picture height in pixels. |
Returns
| Picture | Pixel Image |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Gaussian Splatting
- Package
- Computer Graphics
Render Splat
FunctionRenders a splat as seen by a camera.
RenderSplat -> Pixel Image
splat: Splat Cloud
camera: Splat Camera
antialiased: TruthPixelImage RenderSplat(
SplatCloud splat,
SplatCamera camera,
bool antialiased = false)Parameters
| name | type | default | description |
|---|---|---|---|
| splat | Splat Cloud | — | |
| camera | Splat Camera | — | |
| antialiased | Truth | False | Renders with the antialiasing filter; use it for a splat trained with it. |
Returns
| Picture | Pixel Image |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Gaussian Splatting
- Package
- Computer Graphics
Save Capture
FunctionWrites a capture's cameras and sparse points as a COLMAP model, which every other splat trainer reads.
SaveCapture(capture: Capture Scene, folder: Text)
void SaveCapture(CaptureScene capture, string folder)
Parameters
| name | type | default | description |
|---|---|---|---|
| capture | Capture Scene | — | |
| folder | Text | — | The folder the model's three files are written to, usually sparse/0 beside an images folder. |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Events Routine StateMachineState
- Declared by
- Gaussian Splatting
- Package
- Computer Graphics
Train Splat
FunctionTrains a Gaussian splat from a capture and returns it when training is done.
TrainSplat -> (Splat: Splat Cloud, quality: Number)
capture: Capture Scene
iterations: Integer
maxSplats: Integer
maxImageSize: IntegerSplatCloud TrainSplat(
CaptureScene capture,
int iterations,
int maxSplats,
int maxImageSize,
out double quality)Parameters
| name | type | default | description |
|---|---|---|---|
| capture | Capture Scene | — | Photographs with their cameras, from Reconstruct Cameras or Load Capture. |
| iterations | Integer | — | Optimisation steps; 30,000 for the finest detail. |
| maxSplats | Integer | — | The most splats the result may have. |
| maxImageSize | Integer | — | The longest side photographs are reduced to for training. |
Returns
| Splat | Splat Cloud |
| quality | Number |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Events Routine StateMachineState
- Declared by
- Gaussian Splatting
- Package
- Computer Graphics