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
2014-08-18 20:05:38 +02:00

19 lines
325 B
C++

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