poslegm/scala-phash

Incorrect DCT hashes calculation

Closed this issue · 1 comments

Current algorithm calculates zero DCT distance for attached images. It is not correct.

Answer of original pHash is 29.

There are two problems:

  1. (easy) image resizing: need to use NEAREST_NEIGHBOR interpolation
  2. (hard) image convolution: algorithm is broken