aboutsummaryrefslogblamecommitdiff
path: root/xsig/include/subslice_signature.hpp
blob: 928d396f00df244ea977dd965abd9d5e5ceeeeeb (plain) (tree)
1
2
3
4

                  

                              





























                                                                              

      
//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