testutil

package
v0.0.0-...-a797467 Latest Latest
Warning

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

Go to latest
Published: Apr 15, 2023 License: MIT Imports: 10 Imported by: 0

Documentation

Overview

Package testutil is an internal package which contains various utilities for loading and storing data.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AssertMatEqual

func AssertMatEqual(t *testing.T, expected, actual mat.Matrix)

AssertMatEqual checks if two matrices are equal and fails the test if not.

func LoadImg

func LoadImg(t *testing.T, path string) image.Image

LoadImg loads an image from a file and fails the test if it does not succeed.

func LoadImgToMat

func LoadImgToMat(t *testing.T, path string) *mat.Dense

LoadImgToMat loads an image from a file to a matrix and fails the test if it does not succeed.

func LoadMat64Txt

func LoadMat64Txt(t *testing.T, path string) *mat.Dense

LoadMat64Txt loads a float matrix from a txt file and fails the test if it does not succeed.

Types

This section is empty.

Jump to

Keyboard shortcuts

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