-
Notifications
You must be signed in to change notification settings - Fork 150
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
add pHash
#709
add pHash
#709
Conversation
I know there are possible optimizations. It's a starting point. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Overall this looks great, thanks a lot. I’ll merge after the two comments have been resolved.
Cargo.toml
Outdated
@@ -54,6 +55,9 @@ features = ["property-testing", "katexit"] | |||
opt-level = 3 | |||
debug = true | |||
|
|||
[profile.dev] | |||
opt-level = 2 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What’s the reason for this change? It would be a shame to make debug builds take even longer.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
To speed up proptests
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Changed to opt-level = 1
src/imghash/mod.rs
Outdated
//! [Perceptual hashing] algorithms for images. | ||
//! | ||
//! [Perceptual hashing]: https://en.wikipedia.org/wiki/Perceptual_hashing | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The rest of this library uses “image” over “img” for module and function names - please can you rename this to image_hash or maybe perceptual_hashing.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
renamed to image_hash
I updated MSRV because |
Nice, thanks! |
Relates: #703