Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DTC ¶
DTC computes the perceptual hash for img using phash dtc image technique.
- Reduce size to 32x32
- Reduce color to greyscale
- Compute the DCT.
- Reduce the DCT to 8x8 in order to keep high frequencies.
- Compute the median value of 8x8 dtc.
- Further reduce the DCT into an uint64.
func Distance ¶ added in v0.2.0
Distance returns the distance between two hashes by calculating the number of different bits in the hash
func FindKeypoints ¶
FindKeypoints returns a list of points that are interesting/key points It does that by detecting corners using cornerdectect.Fast9
func FromTriangles ¶
FromTriangles calculates 3 perceptual hash of src per triangles.
A triangle is transformed into it's equilateral version then we run a DTC on the 3 different angles of the triangle.
When two triangle have the same perceptual hash, it means that the features in the triangle are perceptually similar.
Triangles could come from FindKeypoints or your own library.
This function will start a goroutine per CPU.
Types ¶
This section is empty.
Source Files ¶
Directories ¶
Path | Synopsis |
---|---|
rotate90
transformation invariant image phash based on https://github.com/pippy360/transformationInvariantImageSearch
|
transformation invariant image phash based on https://github.com/pippy360/transformationInvariantImageSearch |
tii
transformation invariant image phash based on https://github.com/pippy360/transformationInvariantImageSearch
|
transformation invariant image phash based on https://github.com/pippy360/transformationInvariantImageSearch |