opensfm

package
v1.0.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 12, 2024 License: MIT Imports: 2 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BiasSchema

type BiasSchema struct {
	Rotation    []float64 `json:"rotation"`
	Translation []float64 `json:"translation"`
	Scale       float64   `json:"scale"`
}

type CameraSchema

type CameraSchema struct {
	ProjectionType string  `json:"projection_type"`
	Width          int     `json:"width"`
	Height         int     `json:"height"`
	Focal          float64 `json:"focal"`
	K1             float64 `json:"k1"`
	K2             float64 `json:"k2"`
}

type PointSchema

type PointSchema struct {
	Color       []float64 `json:"color"` // 0-255 float
	Coordinates []float64 `json:"coordinates"`
}

type ReconstructionJsonSchema

type ReconstructionJsonSchema []ReconstructionSchema

ReconstructionJson represents the reconstruction.json output by OpenSFM

func LoadReconstruction

func LoadReconstruction(filename string) (ReconstructionJsonSchema, error)

func ReadReconstruction added in v1.0.1

func ReadReconstruction(in io.Reader) (ReconstructionJsonSchema, error)

type ReconstructionSchema

type ReconstructionSchema struct {
	Cameras      map[string]CameraSchema `json:"cameras"`
	Shots        map[string]ShotSchema   `json:"shots"`
	Points       map[string]PointSchema  `json:"points"`
	Biases       map[string]BiasSchema   `json:"biases"`
	RigCameras   map[string]RigCamera    `json:"rig_cameras"`
	RigInstances map[string]RigInstance  `json:"rig_instances"`
	ReferenceLLA ReferenceLLA            `json:"reference_lla"`
}

type ReferenceLLA

type ReferenceLLA struct {
	Latitude  float64 `json:"latitude"`
	Longitude float64 `json:"longitude"`
	Altitude  float64 `json:"altitude"`
}

type RigCamera

type RigCamera struct {
	Rotation    []float64 `json:"rotation"`
	Translation []float64 `json:"translation"`
}

type RigInstance

type RigInstance struct {
	Rotation     []float64         `json:"rotation"`
	Translation  []float64         `json:"translation"`
	RigCameraIDs map[string]string `json:"rig_camera_ids"`
}

type ShotSchema

type ShotSchema struct {
	Rotation    []float64 `json:"rotation"`
	Translation []float64 `json:"translation"`
	Orientation int       `json:"orientation"`
	Camera      string    `json:"camera"`
	CaptureTime float64   `json:"capture_time"`
	Scale       float64   `json:"scale"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL