transforms

package
v0.0.0-...-3bbefc4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 29, 2023 License: BSD-2-Clause Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DCT1D

func DCT1D(input []float64) []float64

DCT1D function returns result of DCT-II. DCT type II, unscaled. Algorithm by Byeong Gi Lee, 1984.

func DCT2D

func DCT2D(input [][]float64, w int, h int) [][]float64

DCT2D function returns a result of DCT2D by using the seperable property.

func DCT2DFast256

func DCT2DFast256(input *[]float64) (flattens [256]float64)

DCT2DFast256 function returns a result of DCT2D by using the seperable property. DCT type II, unscaled. Algorithm by Byeong Gi Lee, 1984. Fast uses static DCT tables for improved performance. Returns flattened pixels.

func DCT2DFast64

func DCT2DFast64(input *[]float64) (flattens [64]float64)

DCT2DFast64 function returns a result of DCT2D by using the seperable property. Fast uses static DCT tables for improved performance. Returns flattened pixels.

func FlattenPixels

func FlattenPixels(pixels [][]float64, x int, y int) []float64

FlattenPixels function flattens 2d array into 1d array.

func FlattenPixelsFast64

func FlattenPixelsFast64(pixels []float64, x int, y int) []float64

FlattenPixelsFast64 function flattens 2d array into 1d array.

func Rgb2Gray

func Rgb2Gray(colorImg image.Image) [][]float64

Rgb2Gray function converts RGB to a gray scale array.

func Rgb2GrayFast

func Rgb2GrayFast(colorImg image.Image, pixels *[]float64)

Rgb2GrayFast function converts RGB to a gray scale array.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL