transforms32

package
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: Apr 5, 2023 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

Package transforms32 contains DCT transformations

Index

Constants

This section is empty.

Variables

View Source
var (
	// FlagUseASM determines if ASM can be used on the current CPU
	FlagUseASM    = false
	ForwardDCT64  = forwardDCT64
	ForwardDCT256 = forwardDCT256
	YCbCrToGray   = yCbCrToGrayAlt
)

Functions

func AsmYCbCrToGray

func AsmYCbCrToGray(c *image.YCbCr, pixels []float32)

func DCT2DHash256

func DCT2DHash256(input *[]float32) [256]float32

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

func DCT2DHash64(input []float32) [64]float32

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

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

FlattenPixels function flattens 2d array into 1d array.

func ImageToGray

func ImageToGray(img image.Image, pixels *[]float32)

ImageToGray function converts an Image to a gray scale array.

func LinearTosRGB32

func LinearTosRGB32(value float64) int

func MedianOfPixels256

func MedianOfPixels256(pixels []float32) float32

MedianOfPixels256 function returns a median value of pixels. It uses quick selection algorithm.

func MedianOfPixels64

func MedianOfPixels64(pixels []float32) float32

MedianOfPixels64 function returns a median value of pixels. It uses quick selection algorithm.

func SRGBToLinear32

func SRGBToLinear32(value int) float64

func SignPow32

func SignPow32(value, exp float64) float64

Types

This section is empty.

Jump to

Keyboard shortcuts

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