From 8ece6d3ec1b0105047c192c0aa044e4257118e01 Mon Sep 17 00:00:00 2001 From: Chris Xiong Date: Thu, 22 Sep 2022 00:03:01 -0400 Subject: Add "reverse image search". Fixed a stupid performance degradation in the signature library in the process. --- xsig/include/signature_db.hpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'xsig/include') 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 &paths, const populate_cfg_t &cfg); void populate_interrupt(); + std::vector> 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(); -- cgit v1.2.3