JImageHash
JImageHash copied to clipboard
Parity with Python
https://github.com/thorn-oss/perception
- [ ] Marr-Hildreth
- [ ] Color Moment
- [ ] wHash (wavelet hash)
~~Could you provide some documentation for how the hash is calculated? I looked at Color Moment and it calls the open cv implementation.~~
Color Moment & Marr : https://www.phash.org/docs/pubs/thesis_zauner.pdf Wavelet: https://github.com/thorn-oss/perception/blob/0dcecd14fa18d5864491b9f2be9a89a724373e00/perception/hashers/image/wavelet.py
I would really appreciate an implementation of Color Moment. I found a working Python implementation of it that seems like it should be easy to translate - just doing Mean, Standard Deviation and Skewness operations on the HSV channels.
hash: https://github.com/chongwar/image-sort/blob/d19d990809c3caf5d4219aa3497df8ca760e0fcc/_hash.py#L83 hamming: https://github.com/chongwar/image-sort/blob/d19d990809c3caf5d4219aa3497df8ca760e0fcc/_hash.py#L118
I'm trying to take a stab at implementing it with your library, I'm not feeling super confident though.
Created #70 with a rough draft,