blob: 928d396f00df244ea977dd965abd9d5e5ceeeeeb (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
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
|