KilianB / JImageHash

Perceptual image hashing library used to match similar images
MIT License
401 stars 81 forks source link

Allow even size filter kernels #12

Open KilianB opened 5 years ago

KilianB commented 5 years ago

Currently only odd sized kernels are allowed e.g.

[1 0 1
 0 1 0 
 1 0 2]

If a kernel is evenly sized the computed pixel falls between 2 "buckets". The intermediary value has to be computed.