Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ConvertToRGBA ¶
ConvertToRGBA converts from RGB (Red Green Blue ) format to RGB (Red Green Blue Alpha Format) In RGBA format,all Pixels are stored in a single sequence. Each slice of 4 consecutive elements represent a single pixel RGBA values. A constant alpha level of 255 is appended to each pixel's RGB value
func MakeTrainingSet ¶
MakeTrainingSet create a training set (samples) from the image pixel array
Types ¶
type Kmeg ¶
Kmeg Struct to hold the Kmeg information
type RGBImage ¶
RGBImage :holds data for pixels of image in RGB format Pixels is in matrix form - each row holds color levels of a single pixel
func ConvertToRGB ¶
ConvertToRGB :converts from RGBA (Red Green Blue Alpha ) format to RGB (Red Green Blue Format) Drops Alpha value from the color vector (color vector is of length 3 for RGB vs 4 in RGBA)