helpers

package
v0.0.0-...-5a9b0ed Latest Latest
Warning

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

Go to latest
Published: Oct 1, 2020 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenerateSubBounds

func GenerateSubBounds(in *matrix.M, offset int) []image.Rectangle

GenerateSubBounds based on an input matrix. Useful to run algorithms in parallel, each focusing on a sub-bound.

func LoadImage

func LoadImage(fname string) (image.Image, *matrix.M)

LoadImage opens a file and attempts to decode the image If the dimensions of the image are bigger than expected, then the image is resized to fit the expected resolution.

func RunInParallel

func RunInParallel(in *matrix.M, offset int, fn func(wg *sync.WaitGroup, bounds image.Rectangle))

Types

This section is empty.

Jump to

Keyboard shortcuts

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