struct

GS::GaussianSplatting::CameraIntrinsics

Inherits Struct < Value < Object

Camera intrinsic parameters

Constructors

from_fov(width : Int32, height : Int32, fov_x : Float32, fov_y : Float32 | Nil = nil) : CameraIntrinsics

Create from field of view

Source
new(width : Int32, height : Int32, fx : Float32, fy : Float32, cx : Float32, cy : Float32)
Source

Instance methods

cx=(cx : Float32)
Source
cy=(cy : Float32)
Source
fov_x

Field of view in radians

Source
fov_y
Source
fx=(fx : Float32)
Source
fy=(fy : Float32)
Source
height
Source
height=(height : Int32)
Source
projection_matrix

Projection matrix (3x3)

Source
tan_half_fov_x

Tan of half FOV (used in frustum culling)

Source
tan_half_fov_y
Source
width
Source
width=(width : Int32)
Source