geometry

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Jul 23, 2022 License: MIT Imports: 3 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DetectCorners

func DetectCorners(src *image.Gray) []image.Point

DetectCorners gives you a list of points containing corner of the image src src needs to be a grayscale image

func InPlaceRotation90

func InPlaceRotation90(src image.Image) image.Image

InPlaceRotation90 returns an image that references src and that will output you a 90 degrees rotation of src.

func Min

func Min(a, b int) int

Min between a and b

func SquareDistance

func SquareDistance(one, two image.Point) int

SquareDistance gives you distance^2 between two image.Point you'd have to Srqt it for it to be the correct distance.

Types

type Points

type Points []image.Point

Points is a slice of points.

func (Points) Len

func (p Points) Len() int

func (Points) Less

func (p Points) Less(i, j int) bool

func (Points) Swap

func (p Points) Swap(i, j int)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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