imut

package
v0.0.0-...-2a14176 Latest Latest
Warning

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

Go to latest
Published: Mar 8, 2024 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MakeGray

func MakeGray(m image.Image) *image.Gray

func MakeGrayFromNeural

func MakeGrayFromNeural(p *neural.Neural, size image.Point) *image.Gray

func MakeGrayFromNeural_outs

func MakeGrayFromNeural_outs(p *neural.Neural, size image.Point) *image.Gray

func MakeSamplesGray

func MakeSamplesGray(g *image.Gray) []neural.Sample

func SaveImagePNG

func SaveImagePNG(m image.Image, filename string) error

Types

type Point2f

type Point2f struct {
	X, Y float64
}

func PolarToCartesian

func PolarToCartesian(p Polar) Point2f

func Pt2f

func Pt2f(x, y float64) Point2f

Pt2f is shorthand for Point2f{X, Y}.

func (Point2f) Add

func (a Point2f) Add(b Point2f) Point2f

func (Point2f) DivScalar

func (a Point2f) DivScalar(scalar float64) Point2f

func (Point2f) MulScalar

func (a Point2f) MulScalar(scalar float64) Point2f

func (Point2f) Sub

func (a Point2f) Sub(b Point2f) Point2f

type Polar

type Polar struct {
	Rho float64
	Phi float64
}

Jump to

Keyboard shortcuts

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