Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Nr90/imgsim
/ functions
Functions
12 in github.com/Nr90/imgsim
⨍
Functions
12
◇
Types & classes
4
↓ 2 callers
Function
mean
mean computes the mean of all pixels.
ahash.go:19
↓ 2 callers
Function
rgbaToGray
rbgaToGray converts an rgba image to a greyscale image
grayscale.go:6
↓ 1 callers
Function
AverageHash
AverageHash calculates the average hash of an image. First the image is resized to 8x8. Then it is converted to grayscale. Lastly the average hash is
ahash.go:11
↓ 1 callers
Function
DifferenceHash
DifferenceHash calculates the average hash of an image. First the image is converted to grayscale Then it is resized to 9x8. Lastly the average hash i
dhash.go:11
↓ 1 callers
Function
Distance
Distance calculates the number of different bits in the hash
hash.go:16
↓ 1 callers
Function
calcAvgHash
calcAvgHash computes the average hash for the given image and mean.
ahash.go:43
↓ 1 callers
Function
calcDiffHash
calcDiff computes the average hash for the given image and mean.
dhash.go:18
Method
String
()
hash.go:11
Function
TestAverageHash
(t *testing.T)
ahash_test.go:10
Function
TestDifferenceHash
(t *testing.T)
dhash_test.go:10
Function
TestDistance
(t *testing.T)
hash_test.go:5
Function
Test_mean
(t *testing.T)
ahash_test.go:40