Documentation ¶
Overview ¶
Package haar provides a Haar wavelet function for bitmap images.
Index ¶
Constants ¶
View Source
const ColourChannels = 3
ColourChannels is the number of channels for one color. We will be using three colour channels per pixel at all times.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Coef ¶
type Coef [ColourChannels]float64
Coef is the union of coefficients for all channels of the original image.
type Matrix ¶
type Matrix struct { // Coefs is the slice of coefficients resulting from a forward 2D Haar // transform. The position of a coefficient (x,y) is (y * Width + x). Coefs []Coef // The number of columns in the matrix. Width uint // The number of rows in the matrix. Height uint }
Matrix is the result of the Haar transform, a two-dimensional matrix of coefficients.
Click to show internal directories.
Click to hide internal directories.