Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Image ¶
Image type is a decomposed image
func Create ¶
Create returns a new image when provided with a filename and the number of centroids desired
func CreateAndRun ¶
CreateAndRun is a combination of the Create and Run functions. It runs k-means on the supplied image - provided by name in a relative to the executable when given the number of centroids and iterations desired
func (*Image) CreateColorImage ¶
CreateColorImage recolors the original image provided using each pixel's nearest centroid
func (*Image) CreateColorSwatch ¶
CreateColorSwatch creates a color swatch from the Image type provided the color swatch is a color list of the centroids (each centroid is 60px x 60px)
func (*Image) PrintCentroids ¶
func (m *Image) PrintCentroids()
PrintCentroids prints out the current centroids to Standard Output