utils

package
v0.0.0-...-c4818f5 Latest Latest
Warning

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

Go to latest
Published: Sep 20, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AffineMatrixToTensor

func AffineMatrixToTensor(mat gocv.Mat) (*tensor.Dense, error)

func BytesToT32

func BytesToT32[T int32 | float32](arr []byte) []T

func BytesToT64

func BytesToT64[T int64 | float64](arr []byte) []T

func ComputeLinearNorm

func ComputeLinearNorm(t1, t2 *tensor.Dense) (float32, error)

func ConvertImageToMat

func ConvertImageToMat(bImage []byte) (*gocv.Mat, error)

func Cross2D

func Cross2D(a, b *tensor.Dense) (float32, error)

func DerefPointer

func DerefPointer[T string | bool | int | int8 | int16 | int32 | int64 | float32 | float64](val *T) T

func OpenCVImageToJPEG

func OpenCVImageToJPEG(fPath string, jpegQuality int, img gocv.Mat) error

func RefPointer

func RefPointer[T string | bool | int | int8 | int16 | int32 | int64 | float32 | float64](val T) *T

func Subtract

func Subtract(a, b *tensor.Dense) (*tensor.Dense, error)

func TensorToPoint2fVector

func TensorToPoint2fVector(t *tensor.Dense) (gocv.Point2fVector, error)

func TensorToPoints

func TensorToPoints(t *tensor.Dense) ([]gocv.Point2f, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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