Documentation ¶
Overview ¶
Package imgd (image-data) adds functionality to process image-data, e.g. for pattern recognition using images.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetGrayImage ¶
GetGrayImage returns a gray image object
Types ¶
type GrayBoard ¶
type GrayBoard struct {
// contains filtered or unexported fields
}
GrayBoard holds grayscale figure data
func NewGrayBoard ¶
NewGrayBoard returns a new board to display samples
func (*GrayBoard) NumBins ¶
NumBins returns the computed total number of bins/spots/places in board; i.e. nrow * ncol
type GraySample ¶
type GraySample struct {
// contains filtered or unexported fields
}
GraySample holds sample data corresponding go grayscale images
func NewGraySample ¶
func NewGraySample(idx, size int, X *la.Matrix, rowMaj bool) (o *GraySample)
NewGraySample returns a new sample data
idx -- position in X matrix size -- total number of pixels = width*height X -- matrix with all pixel data (intensity of gray) rowMaj -- data is stored as a row-major matrix instead of col-major
type GraySamples ¶
type GraySamples []*GraySample
GraySamples holds a set of gray sample data
func NewGraySamples ¶
func NewGraySamples(X *la.Matrix, nSelected int, rowMaj, random bool) (selected GraySamples)
NewGraySamples returns a set of randomly selected samples
func (*GraySamples) Stat ¶
func (o *GraySamples) Stat() (smin, smax float64, maxWidth, maxHeight int)
Stat returns some statistics about all samples smin and smax are the min and max intensities
Click to show internal directories.
Click to hide internal directories.