Documentation ¶
Index ¶
- func DCT1D(input []float64) []float64
- func DCT1DFast64(input []float64)
- func DCT2D(input [][]float64, w int, h int) [][]float64
- func DCT2DFast64(input *[]float64)
- func FlattenPixels(pixels [][]float64, x int, y int) []float64
- func FlattenPixelsFast64(pixels []float64, x int, y int) []float64
- func Rgb2Gray(colorImg image.Image) [][]float64
- func Rgb2GrayFast(colorImg image.Image, pixels *[]float64)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DCT1D ¶
DCT1D function returns result of DCT-II. DCT type II, unscaled. Algorithm by Byeong Gi Lee, 1984.
func DCT1DFast64 ¶ added in v1.1.0
func DCT1DFast64(input []float64)
DCT1DFast64 function returns result of DCT-II. DCT type II, unscaled. Algorithm by Byeong Gi Lee, 1984. Static implementation by Evan Oberholster, 2022.
func DCT2DFast64 ¶ added in v1.1.0
func DCT2DFast64(input *[]float64)
DCT2DFast64 function returns a result of DCT2D by using the seperable property. Fast uses static DCT tables for improved performance.
func FlattenPixels ¶
FlattenPixels function flattens 2d array into 1d array.
func FlattenPixelsFast64 ¶ added in v1.1.0
FlattenPixelsFast64 function flattens 2d array into 1d array.
func Rgb2GrayFast ¶ added in v1.1.0
Rgb2GrayFast function converts RGB to a gray scale array.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.