[413088]: / src / image.h

Download this file

36 lines (28 with data), 1.3 kB

 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
#include "Rcpp.h"
#include <opencv2/opencv.hpp>
#include "opencv2/xfeatures2d.hpp"
#include "opencv2/features2d.hpp"
#include "opencv2/shape/shape_transformer.hpp"
#ifndef IMAGE_H
#define IMAGE_H
////
// Processing
////
cv::Mat preprocessImage(cv::Mat &im, const bool invert, const char* flipflop, const char* rotate);
cv::Mat reversepreprocessImage(cv::Mat &im, const char* flipflop, const char* rotate);
////
// Warping
////
Rcpp::RawVector warpImage(Rcpp::RawVector ref_image, Rcpp::RawVector query_image,
Rcpp::List mapping,
const int width1, const int height1,
const int width2, const int height2);
Rcpp::RawVector warpImageAuto(Rcpp::RawVector ref_image, Rcpp::RawVector query_image,
Rcpp::List mapping,
const int width1, const int height1,
const int width2, const int height2);
Rcpp::RawVector warpImageManual(Rcpp::RawVector ref_image, Rcpp::RawVector query_image,
Rcpp::List mapping,
const int width1, const int height1,
const int width2, const int height2);
#endif