Documentation ¶
Overview ¶
Package transforms32 contains DCT transformations
Index ¶
- Variables
- func AsmYCbCrToGray(c *image.YCbCr, pixels []float32)
- func DCT2DHash256(input *[]float32) [256]float32
- func DCT2DHash64(input []float32) [64]float32
- func FlattenPixels32(pixels [][]float64, x int, y int) []float64
- func ImageToGray(img image.Image, pixels *[]float32)
- func LinearTosRGB32(value float64) int
- func MedianOfPixels256(pixels []float32) float32
- func MedianOfPixels64(pixels []float32) float32
- func SRGBToLinear32(value int) float64
- func SignPow32(value, exp float64) float64
Constants ¶
This section is empty.
Variables ¶
var ( // FlagUseASM determines if ASM can be used on the current CPU FlagUseASM = false ForwardDCT64 = forwardDCT64 ForwardDCT256 = forwardDCT256 YCbCrToGray = yCbCrToGrayAlt )
Functions ¶
func AsmYCbCrToGray ¶
func DCT2DHash256 ¶
DCT2DHash256 function returns a result of DCT2D by using the seperable property. DCT type II, unscaled. Algorithm by Byeong Gi Lee, 1984. Cusstom built for Hash256. Returns flattened pixels
func DCT2DHash64 ¶
DCT2DHash64 function returns a result of DCT2D by using the seperable property. DCT type II, unscaled. Algorithm by Byeong Gi Lee, 1984. Cusstom built for Hash64. Returns flattened pixels
func FlattenPixels32 ¶
FlattenPixels function flattens 2d array into 1d array.
func ImageToGray ¶
ImageToGray function converts an Image to a gray scale array.
func LinearTosRGB32 ¶
func MedianOfPixels256 ¶
MedianOfPixels256 function returns a median value of pixels. It uses quick selection algorithm.
func MedianOfPixels64 ¶
MedianOfPixels64 function returns a median value of pixels. It uses quick selection algorithm.
func SRGBToLinear32 ¶
Types ¶
This section is empty.