Documentation
¶
Index ¶
- func CreateCams(pathFile, leftOutput, rightOutput string, numberOfInterpolations int, ...) error
- func GetCamCenters(path []Coordinate, rp, camBoreSpacing, maxCamRadius float64) (Coordinate, Coordinate)
- func WriteCam(path []Coordinate, outputFile string) error
- type Coordinate
- func ConvertCoord(target, camCenter Coordinate, n, i int, rp float64, right bool) Coordinate
- func GetCams(path []Coordinate, leftCamCenter, rightCamCenter Coordinate, rp float64) (left, right []Coordinate)
- func Interpolate(path []Coordinate, n int) []Coordinate
- func ReadCoordsCsv(csvFile string) ([]Coordinate, error)
- func Scale(path []Coordinate, sx, sy float64) []Coordinate
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateCams ¶
func GetCamCenters ¶
func GetCamCenters(path []Coordinate, rp, camBoreSpacing, maxCamRadius float64) (Coordinate, Coordinate)
iteratively find where the cam centers should be to give the correct maxCamRadius
func WriteCam ¶
func WriteCam(path []Coordinate, outputFile string) error
Types ¶
type Coordinate ¶
type Coordinate struct {
X, Y float64
}
func ConvertCoord ¶
func ConvertCoord(target, camCenter Coordinate, n, i int, rp float64, right bool) Coordinate
n- total number of coordinates i- index of this coordinate right- is this the right cam?
func GetCams ¶
func GetCams( path []Coordinate, leftCamCenter, rightCamCenter Coordinate, rp float64) ( left, right []Coordinate)
func Interpolate ¶
func Interpolate(path []Coordinate, n int) []Coordinate
func ReadCoordsCsv ¶
func ReadCoordsCsv(csvFile string) ([]Coordinate, error)
func Scale ¶
func Scale(path []Coordinate, sx, sy float64) []Coordinate
Click to show internal directories.
Click to hide internal directories.