Divooka Reference

Gaussian Splatting

9 nodes

On this page 9

Describe Device

Function

Says what rendering and training will run on.

Signature
DescribeDevice() -> Text
string DescribeDevice()

Returns

resultText
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Gaussian Splatting
Package
Computer Graphics

Extract Video Frames

Function

Picks evenly spaced, sharp frames out of a video and writes them as photographs.

Signature
ExtractVideoFrames -> Text
    videoPath: Text
    outputFolder: Text
    frameCount: Integer
    maxSize: Integer
string ExtractVideoFrames(
    string videoPath,
    string outputFolder,
    int frameCount = 200,
    int maxSize = 1600)

Parameters

nametypedefaultdescription
videoPathText—The video: H.264, HEVC, AV1, VP9, MPEG or ProRes in MP4, MOV, MKV or WebM.
outputFolderText—The folder the frames are written to.
frameCountInteger200How many frames to keep.
maxSizeInteger1600The longest side of a written frame; 0 keeps the video's size.

Returns

FolderText
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Events Routine StateMachineState
Declared by
Gaussian Splatting
Package
Computer Graphics

Load Capture

Function

Reads a capture someone else's tool has already solved: a COLMAP workspace (images and sparse) or a folder with transforms.json.

Signature
LoadCapture(path: Text) -> Capture Scene
CaptureScene LoadCapture(string path)

Parameters

nametypedefaultdescription
pathText—

Returns

CaptureCapture Scene
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Gaussian Splatting
Package
Computer Graphics

Orbit View

Function

A 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.

Signature
OrbitView -> Splat Camera
    splat: Splat Cloud
    angle: Number
    elevation: Number
    width: Integer
    height: Integer
SplatCamera OrbitView(
    SplatCloud splat,
    double angle = 0,
    double elevation = 20,
    int width = 1280,
    int height = 720)

Parameters

nametypedefaultdescription
splatSplat Cloud—
angleNumber0Where on the circle the camera is, in degrees.
elevationNumber20How far above the horizon the camera is, in degrees.
widthInteger1280Picture width in pixels.
heightInteger720Picture height in pixels.

Returns

CameraSplat Camera
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Gaussian Splatting
Package
Computer Graphics

Reconstruct Cameras

Function

Works 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.

Signature
ReconstructCameras -> (Capture: Capture Scene, registered: Integer)
    imageFolder: Text
    ordered: Truth
CaptureScene ReconstructCameras(
    string imageFolder,
    bool ordered,
    out int registered)

Parameters

nametypedefaultdescription
imageFolderText—A folder of JPEG or PNG photographs of one scene, taken from many positions with plenty of overlap.
orderedTruth—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

CaptureCapture Scene
registeredInteger
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Events Routine StateMachineState
Declared by
Gaussian Splatting
Package
Computer Graphics

Render Orbit View

Function

Renders a splat from a point on a circle round it: the view a turntable gives.

Signature
RenderOrbitView -> Pixel Image
    splat: Splat Cloud
    angle: Number
    elevation: Number
    width: Integer
    height: Integer
PixelImage RenderOrbitView(
    SplatCloud splat,
    double angle = 0,
    double elevation = 20,
    int width = 1280,
    int height = 720)

Parameters

nametypedefaultdescription
splatSplat Cloud—
angleNumber0Where on the circle the camera is, in degrees.
elevationNumber20How far above the horizon the camera is, in degrees.
widthInteger1280Picture width in pixels.
heightInteger720Picture height in pixels.

Returns

PicturePixel Image
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Gaussian Splatting
Package
Computer Graphics

Render Splat

Function

Renders a splat as seen by a camera.

Signature
RenderSplat -> Pixel Image
    splat: Splat Cloud
    camera: Splat Camera
    antialiased: Truth
PixelImage RenderSplat(
    SplatCloud splat,
    SplatCamera camera,
    bool antialiased = false)

Parameters

nametypedefaultdescription
splatSplat Cloud—
cameraSplat Camera—
antialiasedTruthFalseRenders with the antialiasing filter; use it for a splat trained with it.

Returns

PicturePixel Image
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Gaussian Splatting
Package
Computer Graphics

Save Capture

Function

Writes a capture's cameras and sparse points as a COLMAP model, which every other splat trainer reads.

Signature
SaveCapture(capture: Capture Scene, folder: Text)
void SaveCapture(CaptureScene capture, string folder)

Parameters

nametypedefaultdescription
captureCapture Scene—
folderText—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

Function

Trains a Gaussian splat from a capture and returns it when training is done.

Signature
TrainSplat -> (Splat: Splat Cloud, quality: Number)
    capture: Capture Scene
    iterations: Integer
    maxSplats: Integer
    maxImageSize: Integer
SplatCloud TrainSplat(
    CaptureScene capture,
    int iterations,
    int maxSplats,
    int maxImageSize,
    out double quality)

Parameters

nametypedefaultdescription
captureCapture Scene—Photographs with their cameras, from Reconstruct Cameras or Load Capture.
iterationsInteger—Optimisation steps; 30,000 for the finest detail.
maxSplatsInteger—The most splats the result may have.
maxImageSizeInteger—The longest side photographs are reduced to for training.

Returns

SplatSplat Cloud
qualityNumber
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Events Routine StateMachineState
Declared by
Gaussian Splatting
Package
Computer Graphics