Documentation ¶
Index ¶
- func CalculateChannelRatios(redLum, greenLum, blueLum uint64, length int) (float64, float64, float64)
- func DrawLine(img image.Image, line Line, color bool)
- func GenerateLines(img *image.Gray, lineCount, precision, lineWeight int, channel ColorChannel, ...)
- func MakeGrayscale(img image.Image) *image.Gray
- func MakeRGBA(img image.Image) *image.RGBA
- func ReadImage(imageName string) image.Image
- func ResizeImage(img image.Image, width, height uint) image.Image
- func SaveImage(fileName string, img image.Image) error
- func SetupFFMPEG(output string, width, height, fps, freeze int) (*exec.Cmd, io.WriteCloser, error)
- func SplitImage(img *image.RGBA) (*image.Gray, *image.Gray, *image.Gray)
- func TotalLuminosity(img *image.Gray) uint64
- type ColorChannel
- type Line
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CalculateChannelRatios ¶
func GenerateLines ¶
func GenerateLines(img *image.Gray, lineCount, precision, lineWeight int, channel ColorChannel, out chan Line)
func SetupFFMPEG ¶
func TotalLuminosity ¶
Types ¶
type ColorChannel ¶
type ColorChannel int
const ( RedChannel ColorChannel = iota GreenChannel BlueChannel AllChannels )
Click to show internal directories.
Click to hide internal directories.