Dong-hee Na
14aa1e136f
dct: Improve DCT1D to O(nlogn) algorithm ( #29 )
...
* hashcompute_test: Add benchmark
* dct: Improve DCT1D to O(nlogn) algorithm
AS-IS:
BenchmarkPerceptionHash-8 500 2893930 ns/op 456698 B/op 4455 allocs/op
TO-BE:
BenchmarkPerceptionHash-8 2000 890306 ns/op 456382 B/op 4455 allocs/op
reference: DCT type II, unscaled. Algorithm by Byeong Gi Lee, 1984.
2019-03-19 13:52:44 +09:00
Dong-hee Na
c61f6c69fb
.travis.yml: Update travis
2019-03-19 00:06:41 +09:00
Dong-hee Na
138a26ae46
README.md: Update README.md
2019-03-19 00:06:12 +09:00
Dong-hee Na
3e058be50d
hashcompute: Update Extend API ( #28 )
...
* hashcompute: Update Extend API
- AverageHashExtend -> ExtAverageHash
- PerceptionHashExtend -> ExtPerceptionHash
- DiffrenceHashExtend -> ExtDiffrenceHash
* imagehash: Update load api
2019-03-18 23:53:09 +09:00
Dong-hee Na
161b6f5676
hashcompute: Redesign XXXHashExtend API interface ( #27 )
2019-03-18 21:40:16 +09:00
Dong-hee Na
0876a2adc2
dct: Process dct algorithm in multiple goroutine ( #26 )
2019-03-18 21:09:40 +09:00
Dong-hee Na
47321c08d3
imagehash: Create a new API Bits() ( #25 )
2019-03-17 15:42:07 +09:00
Dong-hee Na
84eb1859d0
imagehash: Add new serialization API dump/load. ( #24 )
...
Create a new APIs for serializing purpose which can use
standard io.Reader/io.Writer APIs.
ToString() API will be remain for debugging purpose and
ExtImageHashFromString, ImageHashFromString will be removed after next
version.
- New APIs are added: LoadExtImageHash, LoadImageHash, xxxHash.Dump
- These APIs are deprecated: ExtImageHashFromString, ImageHashFromString
2019-03-17 11:34:56 +09:00
Dong-hee Na
7558e00b90
README.md: Update
2019-03-16 23:23:56 +09:00
Dong-hee Na
20cafe6017
hashcompute: Fix 64bits unaligned size case ( #23 )
2019-03-16 23:15:32 +09:00
Dong-hee Na
58a4aa88ab
hashcompute: Fix bit set index ( #22 )
2019-03-16 17:22:57 +09:00
Dong-hee Na
5f00903fec
README.md: Update README.md
2019-03-16 01:01:25 +09:00
Dong-hee Na
bafc8a21c3
readme: Update readme.md
2019-03-16 00:54:05 +09:00
Dong-hee Na
5f56e8609c
DifferenceHashExtend: Implement DifferenceHashExtend ( #21 )
2019-03-16 00:47:57 +09:00
Dong-hee Na
b535580cae
AverageHashExtend: Implement AverageHashExtend and fix bugs ( #20 )
2019-03-16 00:26:38 +09:00
Alex
c41a59a872
add PerceptionHashExtend function ( #18 )
...
goimagehash: Implement PerceptionHashExtend
2019-02-08 18:02:25 +09:00
Dong-hee Na
81672d7016
.travis.yml: Update Go 1.11
2018-10-01 17:34:07 +09:00
Dong-hee Na
d41c941ded
transforms: Fix the logic which getting a size of image
2018-08-19 16:35:17 +09:00
Dong-hee Na
9435cae35d
Update README.md
2018-05-12 00:53:41 +09:00
Dong-hee Na
6995fa9b0c
goimagehash: Add test
2018-05-10 11:54:51 +09:00
Dong-hee Na
e588da1f67
goimagehash: Update README.md
2018-05-09 09:37:49 +09:00
Dong-hee Na
1903317145
goimagehash: Fix quickselect algorithm to pick median value.
2018-05-08 13:33:43 +09:00
Dominik Honnef
ad2b6ded3b
Use bits.OnesCount64 when available
...
Benchmark on i7-2600k, which has the POPCNT instruction:
name old time/op new time/op delta
DistanceIdentical-8 5.08ns ± 0% 1.01ns ± 1% -80.07% (p=0.008 n=5+5)
DistanceDifferent-8 81.5ns ± 2% 1.0ns ± 0% -98.76% (p=0.016 n=5+4)
Benchmark on Cavium Octeon, a MIPS64 platform with no dedicated
instruction:
name old time/op new time/op delta
DistanceIdentical-2 120ns ± 6% 144ns ± 5% +19.93% (p=0.008 n=5+5)
DistanceDifferent-2 656ns ± 4% 144ns ± 4% -78.09% (p=0.008 n=5+5)
2018-05-02 23:52:38 +09:00
Dong-hee Na
7f23d56ee5
goimagehash: Add badge
2018-04-01 16:55:03 +09:00
Dong-hee Na
f148dae87d
goimagehash: Add codecov
2018-04-01 16:53:44 +09:00
Dong-hee Na
be737c1d73
travis: Update golang version.
2018-03-02 18:38:42 +09:00
Dong-hee Na
dbc186a437
Update AUTHORS
2017-11-17 14:33:21 +09:00
Gustavo Brunoro
71a79d6ce7
added serialization unit tests
2017-11-17 09:56:54 +09:00
Gustavo Brunoro
139dd89622
renames hashKind to Kind on unit test
2017-11-17 09:56:54 +09:00
Gustavo Brunoro
40b64eda79
adds hex serialization methods to ImageHash
...
The ToString and FromString methods create a string representation
of an ImageHash, following the format:
`<first letter of type>:<hex representation of hash`
2017-11-17 09:56:54 +09:00
Dong-hee Na
22bcbf7685
goimagehash: Make go report card happy.
2017-08-04 01:05:13 +09:00
Dong-hee Na
b969cb59dc
goimagehash: Fix typo.
2017-08-03 22:40:42 +09:00
Dong-hee Na
2b9c664be8
Update docs.
2017-07-31 23:29:35 +09:00
Dong-hee Na
7aba8954cd
[goimagehash] First implement.
2017-07-31 22:47:14 +09:00
Dong-hee Na
7312a138c1
Initial commit
2017-07-29 02:15:59 +09:00