Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Average ¶
Average takes in a slice of RGB pixels, and returns the average across the red, green, & blue components of all pixels.
func Image ¶
Image is a helper that converts the given image into a slice of RGB pixels before performing MMCQ.
func Partition ¶
Partition takes in a slice of RGB pixels, and bisects the slice with respect to the color component with the largest spread.
func Pixels ¶
Pixels takes in a slice of RGB pixels, and performs the MMCQ process to the specified number of levels. Returns a slice of RGB colors of length 2^levels.
Types ¶
This section is empty.
Source Files
¶
- mmcq.go
Click to show internal directories.
Click to hide internal directories.