Versions in this module Expand all Collapse all v1 v1.0.0 May 14, 2026 Changes in this version + const HashSize + const ImageSize + var ErrDihedralDCTSize = errors.New("pdq: expected 16x16 for DCT dihedral") + var ErrMatrixLength = errors.New("pdq: matrix length is not the expected 64x64") + var ErrQuantizeLength = errors.New("pdq: expected 16x16 for DCT quantization") + var ErrTorbenElementLength = errors.New("pdq: expected 256 elements for torben median") + func ComputeQuality(matrix []float32) (int, error) + func DCT64To16(input []float32) []float32 + func DihedralHashes(dct []float32) ([8][16]uint16, error) + func JaroszFilter(src []float32, numRows, numCols int) ([]float32, error) + func PrepareImage(src image.Image) (luma []float32, numRows, numCols int, err error) + func Quantize(input []float32, median float32) ([16]uint16, error) + func ResizeBilinear(src image.Image, size int) *image.RGBA + func ToLuminance(src *image.RGBA, numRows, numCols int) ([]float32, error) + func ToRGBA(src image.Image) *image.RGBA + func TorbenMedian(m []float32) (float32, error)