cptvframe

package
v0.0.0-...-ae7134e Latest Latest
Warning

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

Go to latest
Published: Dec 15, 2020 License: Apache-2.0 Imports: 1 Imported by: 8

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CameraSpec

type CameraSpec interface {
	ResX() int
	ResY() int
	FPS() int
}

Interface that all thermal camera implementations should implement

type Frame

type Frame struct {
	Pix    [][]uint16
	Status Telemetry
}

Frame represents the thermal readings for a single frame.

func NewFrame

func NewFrame(c CameraSpec) *Frame

Creates a new frame sized for the provided camera implementation

func (*Frame) Copy

func (fr *Frame) Copy(orig *Frame)

Copy sets current frame as other frame

func (*Frame) CreateCopy

func (fr *Frame) CreateCopy() *Frame

Copy sets current frame as other frame

type Telemetry

type Telemetry struct {
	TimeOn          time.Duration
	FFCState        string
	FrameCount      int
	FrameMean       uint16
	TempC           float64
	LastFFCTempC    float64
	LastFFCTime     time.Duration
	BackgroundFrame bool
}

Jump to

Keyboard shortcuts

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