Archived
1
Fork 0
This repository has been archived on 2025-04-09. You can view files and clone it, but cannot push or open issues or pull requests.
mozaic/src/fingerprint_test.cpp
Joshua Moerman 224b7bfc0b Adds possibility to do asymmetric fingerprint comparison
Adds another metric (doesn't work yet)
Adds more constness
2014-08-19 08:21:29 +02:00

21 lines
405 B
C++

#include <fingerprints.hpp>
#include <image_io.hpp>
extern "C" {
#include <libavformat/avformat.h>
}
#include <iostream>
using namespace std;
int main(){
av_register_all();
auto const image = open_image("test.jpg");
auto const x = rgb_wavelet_coefficients::calculate(image);
auto const y = rgb_wavelet_coefficients::pre_calculate(image);
cout << x << endl;
cout << x.distance_to(y) << endl;
}