aboutsummaryrefslogtreecommitdiff
path: root/xsig/include/subslice_signature.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'xsig/include/subslice_signature.hpp')
-rw-r--r--xsig/include/subslice_signature.hpp36
1 files changed, 36 insertions, 0 deletions
diff --git a/xsig/include/subslice_signature.hpp b/xsig/include/subslice_signature.hpp
new file mode 100644
index 0000000..928d396
--- /dev/null
+++ b/xsig/include/subslice_signature.hpp
@@ -0,0 +1,36 @@
+//Chris Xiong 2022
+//License: MPL-2.0
+#ifndef SUBSLICE_SIGNATURE_HPP
+#define SUBSLICE_SIGNATURE_HPP
+#include "signature.hpp"
+
+#include <vector>
+#include <filesystem>
+
+namespace cv
+{
+ class Mat;
+};
+
+class subsliced_signature
+{
+public:
+ signature full;
+ std::vector<signature> subslices;
+ size_t nhslices, nvslices;
+
+ static subsliced_signature from_path(const std::filesystem::path &path,
+ size_t nhslices, size_t nvslices,
+ const signature_config &fcfg,
+ const signature_config &scfg);
+ static subsliced_signature from_file(const char *fn,
+ size_t nhslices, size_t nvslices,
+ const signature_config &fcfg,
+ const signature_config &scfg);
+ static subsliced_signature from_cvmatrix(cv::Mat *m,
+ size_t nhslices, size_t nvslices,
+ const signature_config &fcfg,
+ const signature_config &scfg);
+};
+
+#endif