diff options
author | Chris Xiong <chirs241097@gmail.com> | 2022-09-22 00:03:01 -0400 |
---|---|---|
committer | Chris Xiong <chirs241097@gmail.com> | 2022-09-22 00:03:01 -0400 |
commit | 8ece6d3ec1b0105047c192c0aa044e4257118e01 (patch) | |
tree | ca4202e6e41d31c6f73fc7514c237a5b2b2c2764 /xsig/include | |
parent | 1d41325a9685cf677f8eeaa4940f032931fd8780 (diff) | |
download | deduper-8ece6d3ec1b0105047c192c0aa044e4257118e01.tar.xz |
Add "reverse image search".
Fixed a stupid performance degradation in the signature library
in the process.
Diffstat (limited to 'xsig/include')
-rw-r--r-- | xsig/include/signature_db.hpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/xsig/include/signature_db.hpp b/xsig/include/signature_db.hpp index a74e90b..9b14fbb 100644 --- a/xsig/include/signature_db.hpp +++ b/xsig/include/signature_db.hpp @@ -87,6 +87,8 @@ public: void populate(const std::vector<fs::path> &paths, const populate_cfg_t &cfg); void populate_interrupt(); + std::vector<std::pair<size_t, double>> search_image(const fs::path &path, const populate_cfg_t &cfg, bool insert = false); + //disjoint set for keeping similar images in the same group //some of these probably shouldn't be public. TBD... void ds_init(); |