StabStitch<T>

Models & Types · AiDotNet.Video.Stabilization

StabStitch joint video stabilization and stitching for panoramic output.

Inheritance: NeuralNetworkBase<T> → VideoNeuralNetworkBase<T> → VideoStabilizationBase<T> → StabStitch<T>

For Beginners

StabStitch jointly stabilizes and stitches video for panoramic applications. It produces smooth, wide-angle video from multiple camera feeds or a moving camera.

How It Works

References:

  • Paper: “StabStitch: Simultaneous Video Stabilization and Stitching” (2023)

StabStitch jointly optimizes video stabilization and stitching from moving cameras, using thin-plate-spline mesh warping to simultaneously remove camera shake and produce a seamless panoramic output without separate stabilization and stitching stages.

Example

// Create a StabStitch model for joint stabilization and stitching
var architecture = new NeuralNetworkArchitecture<double>(
    inputType: InputType.ThreeDimensional,
    taskType: NeuralNetworkTaskType.Generative,
    inputHeight: 256, inputWidth: 256, inputDepth: 3);
var options = new StabStitchOptions();
var stabStitch = new StabStitch<double>(architecture, options);
            
// Or load a pre-trained ONNX model for inference
var stabStitchOnnx = new StabStitch<double>(architecture, "stabstitch_model.onnx");

Constructors

Constructor Summary
StabStitch(NeuralNetworkArchitecture<T> architecture, StabStitchOptions options, IGradientBasedOptimizer<T, Tensor<T>, Tensor<T>> optimizer) Creates a StabStitch model for native training and inference.
StabStitch(NeuralNetworkArchitecture<T> architecture, string modelPath, StabStitchOptions options) Creates a StabStitch model for native training and inference.

Methods

Method Summary
ModelMetadata<T> GetModelMetadata()
Tensor<T> Stabilize(Tensor<T> unstableFrames)