Drew Short
bfcd7ba847
Removed superfluous printing to console
5 years ago
Drew Short
b817e8d30e
Fixing Windows ffi python example
* Added bat to build Windows i686 and x86_64 libraries
* Added bat file to demonstrate calling the python ffi test
* Updated the python ffi test to load the dll correctly
5 years ago
Drew Short
c08bf42ca4
Manage merge conflicts
5 years ago
Drew Short
464579078f
Working on FFI examples
5 years ago
Drew Short
8c7bc059f6
Code cleanup
* Renamed the FFI get_phashes to get_pihashes to reduce name collision with the phash implementation
5 years ago
Drew Short
8a4b0992e9
Remove useless starter file
5 years ago
Drew Short
816024b2e5
Remove old directive
5 years ago
Drew Short
8076a5281f
Remove lifetimes and internalize copies of strings
* Broke testing out into more distinct tests
5 years ago
Drew Short
e4b72b2e16
Added tests using lib with the cache disabled
5 years ago
Drew Short
f196c3a722
Extract common &CStr -> &str code and reduce allowed hamming distance
5 years ago
Drew Short
5d0091ab2a
allowing the compiler to elide the lifetime
5 years ago
Drew Short
b90d10a6cf
cleanup imports
5 years ago
Drew Short
e3560fb7bf
Address cargo warnings
5 years ago
Drew Short
da78b3a1ff
Remove AppVeyor config
* Will move to another windows build platform later
5 years ago
Drew Short
02d34471ba
Attempting a known good appveyor script
5 years ago
Drew Short
4f54d2e97f
Attempting a known good appveyor script
5 years ago
Drew Short
ae5fca3488
Rebuilt appveyor configuration
5 years ago
Drew Short
dc63f24836
Adding a build_script section to appveyor config
5 years ago
Drew Short
fd4a161f77
Updated appveyor build script format to disable MSBuild
5 years ago
Drew Short
3206c81967
Reformatted project with RustFMT
5 years ago
Drew Short
fa97ecc742
Code cleanup and addressing usize vs u32 issues
5 years ago
Drew Short
36b30e1388
Code cleanup and cache path changes
7 years ago
Drew Short
5726b1af3f
Working on passing structs through the cffi
7 years ago
Drew Short
909ae80e38
Updating gitignore
7 years ago
Drew Short
725f22f732
Updated libraries to latest versions.
* Breaking change, new hashes are computed as a result of the underlying image library update
7 years ago
Drew Short
389bc473ae
Changing the builds to be on each rust environment
8 years ago
Drew Short
c25152216c
Actually running on the docker worker
8 years ago
Drew Short
bd3d2ab0d7
Working on getting builds happening again
8 years ago
Drew Short
42cfac50aa
Starting work on patch 6
8 years ago
Henning Kowalk
8580f607d2
optimized hamming distance calculation ( #1 )
Merging pull request with hamming distance optimization.
8 years ago
Drew Short
961953b3d1
Resolving merge conflicts
8 years ago
Drew Short
78bbb520f9
Working on resolvoing development repository vs published repository differences
8 years ago
Drew Short
487401a45a
Rustfmt and code cleanup
8 years ago
Drew Short
b478901c66
Merge branch 'master' of ssh://gitlab.sothr.com:9141/warricksothr/Perceptual-Image-Hashing
8 years ago
Drew Short
af5ea1ac0f
Updating dependencies. Incrementing patch version.
8 years ago
Drew Short
88eac9cb29
Resolving test compilation issues
8 years ago
Drew Short
f3d8396873
Updating to the latest Rust + dependencies
8 years ago
Drew Short
0b28ddeb4c
Fixed some formatting issues
Looking to do micro-benchmarks with the critereon library
9 years ago
Drew Short
54598246c8
Migrated to latest dependencies
Some math appears to have changed underneath so the tests needed to be
updated. I've added an inefficient test of the max hamming distance for
the comaparisons. I'm not happy with the dhash that is getting a hamming
distance of 4 on samples 03. However with 64 bits of information in the
hash, a hamming distance of 4 says that the hashes are within 6.25% similar,
which is very similar out of the 2^64 combinations of hashes.
9 years ago
Drew Short
9fe2a1c0e6
Working on c ffi examples
9 years ago
Drew Short
e0bb7d6592
Fixed the FFI implementation. Updated the python FFI example to reflect the new changes.
9 years ago
Drew Short
60f7015937
Reverted image library. It was no longer processing jpg images. Added some saftey features to opening images. Cleaned up the library calls. Finished the lib conversion of PIHash struct. FFI stuff missing, that will come in another point release to the library.
9 years ago
Drew Short
ebd2fdaa75
Modularized some code. Changed API to use a PIHash library struct for maintaining the cache information. FFI code currently broken, will bring back next version after I figure out how to pass pointers to Rust structs around.
9 years ago
Drew Short
36cbc8d64d
Changed the exectable to print phash info for a single file, or print the similar images to the first when passed more than one image
9 years ago
Drew Short
3073006ef4
Updated dependency versions
9 years ago
Drew Short
8e3de12cc7
Had to change the version as well
9 years ago
Drew Short
8d27a1dcda
Apparently crates.io doesn't understand just the license file, So making the config change back to MIT in the config for clarity on crates.io
9 years ago
Drew Short
dc8453dc67
Ran rustfmt
9 years ago
Drew Short
e0a951ee3c
Cleanup
9 years ago
Drew Short
188fbe9101
Converted hash.rs into a module. Refactored lib.rs and the tests within.
9 years ago