helpers

package
v0.0.0-...-09c5bf5 Latest Latest
Warning

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

Go to latest
Published: Feb 10, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CalculatePercentage

func CalculatePercentage(clusterPoints, totalPoints int) (percentage float64)

func ConvertToHEX

func ConvertToHEX(point kmeans.Point) string

func ExtractColors

func ExtractColors(image image.Image) []kmeans.Point

func LoadImage

func LoadImage(filepath string) (image.Image, error)

func ResizeImage

func ResizeImage(image image.Image, width uint) (resized image.Image)

Types

This section is empty.

Jump to

Keyboard shortcuts

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