|
a |
|
b/src/RcppExports.cpp |
|
|
1 |
// Generated by using Rcpp::compileAttributes() -> do not edit by hand |
|
|
2 |
// Generator token: 10BE3573-1514-4C36-9D1C-5A225CD40393 |
|
|
3 |
|
|
|
4 |
#include <RcppArmadillo.h> |
|
|
5 |
#include <Rcpp.h> |
|
|
6 |
|
|
|
7 |
using namespace Rcpp; |
|
|
8 |
|
|
|
9 |
#ifdef RCPP_USE_GLOBAL_ROSTREAM |
|
|
10 |
Rcpp::Rostream<true>& Rcpp::Rcout = Rcpp::Rcpp_cout_get(); |
|
|
11 |
Rcpp::Rostream<false>& Rcpp::Rcerr = Rcpp::Rcpp_cerr_get(); |
|
|
12 |
#endif |
|
|
13 |
|
|
|
14 |
// automated_registeration_rawvector |
|
|
15 |
Rcpp::List automated_registeration_rawvector(Rcpp::RawVector ref_image, Rcpp::RawVector query_image, const int width1, const int height1, const int width2, const int height2, const float GOOD_MATCH_PERCENT, const int MAX_FEATURES, const bool invert_query, const bool invert_ref, Rcpp::String flipflop_query, Rcpp::String flipflop_ref, Rcpp::String rotate_query, Rcpp::String rotate_ref, Rcpp::String matcher, Rcpp::String method); |
|
|
16 |
RcppExport SEXP _VoltRon_automated_registeration_rawvector(SEXP ref_imageSEXP, SEXP query_imageSEXP, SEXP width1SEXP, SEXP height1SEXP, SEXP width2SEXP, SEXP height2SEXP, SEXP GOOD_MATCH_PERCENTSEXP, SEXP MAX_FEATURESSEXP, SEXP invert_querySEXP, SEXP invert_refSEXP, SEXP flipflop_querySEXP, SEXP flipflop_refSEXP, SEXP rotate_querySEXP, SEXP rotate_refSEXP, SEXP matcherSEXP, SEXP methodSEXP) { |
|
|
17 |
BEGIN_RCPP |
|
|
18 |
Rcpp::RObject rcpp_result_gen; |
|
|
19 |
Rcpp::RNGScope rcpp_rngScope_gen; |
|
|
20 |
Rcpp::traits::input_parameter< Rcpp::RawVector >::type ref_image(ref_imageSEXP); |
|
|
21 |
Rcpp::traits::input_parameter< Rcpp::RawVector >::type query_image(query_imageSEXP); |
|
|
22 |
Rcpp::traits::input_parameter< const int >::type width1(width1SEXP); |
|
|
23 |
Rcpp::traits::input_parameter< const int >::type height1(height1SEXP); |
|
|
24 |
Rcpp::traits::input_parameter< const int >::type width2(width2SEXP); |
|
|
25 |
Rcpp::traits::input_parameter< const int >::type height2(height2SEXP); |
|
|
26 |
Rcpp::traits::input_parameter< const float >::type GOOD_MATCH_PERCENT(GOOD_MATCH_PERCENTSEXP); |
|
|
27 |
Rcpp::traits::input_parameter< const int >::type MAX_FEATURES(MAX_FEATURESSEXP); |
|
|
28 |
Rcpp::traits::input_parameter< const bool >::type invert_query(invert_querySEXP); |
|
|
29 |
Rcpp::traits::input_parameter< const bool >::type invert_ref(invert_refSEXP); |
|
|
30 |
Rcpp::traits::input_parameter< Rcpp::String >::type flipflop_query(flipflop_querySEXP); |
|
|
31 |
Rcpp::traits::input_parameter< Rcpp::String >::type flipflop_ref(flipflop_refSEXP); |
|
|
32 |
Rcpp::traits::input_parameter< Rcpp::String >::type rotate_query(rotate_querySEXP); |
|
|
33 |
Rcpp::traits::input_parameter< Rcpp::String >::type rotate_ref(rotate_refSEXP); |
|
|
34 |
Rcpp::traits::input_parameter< Rcpp::String >::type matcher(matcherSEXP); |
|
|
35 |
Rcpp::traits::input_parameter< Rcpp::String >::type method(methodSEXP); |
|
|
36 |
rcpp_result_gen = Rcpp::wrap(automated_registeration_rawvector(ref_image, query_image, width1, height1, width2, height2, GOOD_MATCH_PERCENT, MAX_FEATURES, invert_query, invert_ref, flipflop_query, flipflop_ref, rotate_query, rotate_ref, matcher, method)); |
|
|
37 |
return rcpp_result_gen; |
|
|
38 |
END_RCPP |
|
|
39 |
} |
|
|
40 |
// replaceNaMatrix |
|
|
41 |
Rcpp::NumericMatrix replaceNaMatrix(Rcpp::NumericMatrix mat, int replace); |
|
|
42 |
RcppExport SEXP _VoltRon_replaceNaMatrix(SEXP matSEXP, SEXP replaceSEXP) { |
|
|
43 |
BEGIN_RCPP |
|
|
44 |
Rcpp::RObject rcpp_result_gen; |
|
|
45 |
Rcpp::traits::input_parameter< Rcpp::NumericMatrix >::type mat(matSEXP); |
|
|
46 |
Rcpp::traits::input_parameter< int >::type replace(replaceSEXP); |
|
|
47 |
rcpp_result_gen = Rcpp::wrap(replaceNaMatrix(mat, replace)); |
|
|
48 |
return rcpp_result_gen; |
|
|
49 |
END_RCPP |
|
|
50 |
} |
|
|
51 |
// warpImage |
|
|
52 |
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); |
|
|
53 |
RcppExport SEXP _VoltRon_warpImage(SEXP ref_imageSEXP, SEXP query_imageSEXP, SEXP mappingSEXP, SEXP width1SEXP, SEXP height1SEXP, SEXP width2SEXP, SEXP height2SEXP) { |
|
|
54 |
BEGIN_RCPP |
|
|
55 |
Rcpp::RObject rcpp_result_gen; |
|
|
56 |
Rcpp::RNGScope rcpp_rngScope_gen; |
|
|
57 |
Rcpp::traits::input_parameter< Rcpp::RawVector >::type ref_image(ref_imageSEXP); |
|
|
58 |
Rcpp::traits::input_parameter< Rcpp::RawVector >::type query_image(query_imageSEXP); |
|
|
59 |
Rcpp::traits::input_parameter< Rcpp::List >::type mapping(mappingSEXP); |
|
|
60 |
Rcpp::traits::input_parameter< const int >::type width1(width1SEXP); |
|
|
61 |
Rcpp::traits::input_parameter< const int >::type height1(height1SEXP); |
|
|
62 |
Rcpp::traits::input_parameter< const int >::type width2(width2SEXP); |
|
|
63 |
Rcpp::traits::input_parameter< const int >::type height2(height2SEXP); |
|
|
64 |
rcpp_result_gen = Rcpp::wrap(warpImage(ref_image, query_image, mapping, width1, height1, width2, height2)); |
|
|
65 |
return rcpp_result_gen; |
|
|
66 |
END_RCPP |
|
|
67 |
} |
|
|
68 |
// warpImageAuto |
|
|
69 |
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); |
|
|
70 |
RcppExport SEXP _VoltRon_warpImageAuto(SEXP ref_imageSEXP, SEXP query_imageSEXP, SEXP mappingSEXP, SEXP width1SEXP, SEXP height1SEXP, SEXP width2SEXP, SEXP height2SEXP) { |
|
|
71 |
BEGIN_RCPP |
|
|
72 |
Rcpp::RObject rcpp_result_gen; |
|
|
73 |
Rcpp::RNGScope rcpp_rngScope_gen; |
|
|
74 |
Rcpp::traits::input_parameter< Rcpp::RawVector >::type ref_image(ref_imageSEXP); |
|
|
75 |
Rcpp::traits::input_parameter< Rcpp::RawVector >::type query_image(query_imageSEXP); |
|
|
76 |
Rcpp::traits::input_parameter< Rcpp::List >::type mapping(mappingSEXP); |
|
|
77 |
Rcpp::traits::input_parameter< const int >::type width1(width1SEXP); |
|
|
78 |
Rcpp::traits::input_parameter< const int >::type height1(height1SEXP); |
|
|
79 |
Rcpp::traits::input_parameter< const int >::type width2(width2SEXP); |
|
|
80 |
Rcpp::traits::input_parameter< const int >::type height2(height2SEXP); |
|
|
81 |
rcpp_result_gen = Rcpp::wrap(warpImageAuto(ref_image, query_image, mapping, width1, height1, width2, height2)); |
|
|
82 |
return rcpp_result_gen; |
|
|
83 |
END_RCPP |
|
|
84 |
} |
|
|
85 |
// warpImageManual |
|
|
86 |
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); |
|
|
87 |
RcppExport SEXP _VoltRon_warpImageManual(SEXP ref_imageSEXP, SEXP query_imageSEXP, SEXP mappingSEXP, SEXP width1SEXP, SEXP height1SEXP, SEXP width2SEXP, SEXP height2SEXP) { |
|
|
88 |
BEGIN_RCPP |
|
|
89 |
Rcpp::RObject rcpp_result_gen; |
|
|
90 |
Rcpp::RNGScope rcpp_rngScope_gen; |
|
|
91 |
Rcpp::traits::input_parameter< Rcpp::RawVector >::type ref_image(ref_imageSEXP); |
|
|
92 |
Rcpp::traits::input_parameter< Rcpp::RawVector >::type query_image(query_imageSEXP); |
|
|
93 |
Rcpp::traits::input_parameter< Rcpp::List >::type mapping(mappingSEXP); |
|
|
94 |
Rcpp::traits::input_parameter< const int >::type width1(width1SEXP); |
|
|
95 |
Rcpp::traits::input_parameter< const int >::type height1(height1SEXP); |
|
|
96 |
Rcpp::traits::input_parameter< const int >::type width2(width2SEXP); |
|
|
97 |
Rcpp::traits::input_parameter< const int >::type height2(height2SEXP); |
|
|
98 |
rcpp_result_gen = Rcpp::wrap(warpImageManual(ref_image, query_image, mapping, width1, height1, width2, height2)); |
|
|
99 |
return rcpp_result_gen; |
|
|
100 |
END_RCPP |
|
|
101 |
} |
|
|
102 |
// manual_registeration_rawvector |
|
|
103 |
Rcpp::List manual_registeration_rawvector(Rcpp::RawVector ref_image, Rcpp::RawVector query_image, Rcpp::NumericMatrix reference_landmark, Rcpp::NumericMatrix query_landmark, const int width1, const int height1, const int width2, const int height2, Rcpp::String method); |
|
|
104 |
RcppExport SEXP _VoltRon_manual_registeration_rawvector(SEXP ref_imageSEXP, SEXP query_imageSEXP, SEXP reference_landmarkSEXP, SEXP query_landmarkSEXP, SEXP width1SEXP, SEXP height1SEXP, SEXP width2SEXP, SEXP height2SEXP, SEXP methodSEXP) { |
|
|
105 |
BEGIN_RCPP |
|
|
106 |
Rcpp::RObject rcpp_result_gen; |
|
|
107 |
Rcpp::RNGScope rcpp_rngScope_gen; |
|
|
108 |
Rcpp::traits::input_parameter< Rcpp::RawVector >::type ref_image(ref_imageSEXP); |
|
|
109 |
Rcpp::traits::input_parameter< Rcpp::RawVector >::type query_image(query_imageSEXP); |
|
|
110 |
Rcpp::traits::input_parameter< Rcpp::NumericMatrix >::type reference_landmark(reference_landmarkSEXP); |
|
|
111 |
Rcpp::traits::input_parameter< Rcpp::NumericMatrix >::type query_landmark(query_landmarkSEXP); |
|
|
112 |
Rcpp::traits::input_parameter< const int >::type width1(width1SEXP); |
|
|
113 |
Rcpp::traits::input_parameter< const int >::type height1(height1SEXP); |
|
|
114 |
Rcpp::traits::input_parameter< const int >::type width2(width2SEXP); |
|
|
115 |
Rcpp::traits::input_parameter< const int >::type height2(height2SEXP); |
|
|
116 |
Rcpp::traits::input_parameter< Rcpp::String >::type method(methodSEXP); |
|
|
117 |
rcpp_result_gen = Rcpp::wrap(manual_registeration_rawvector(ref_image, query_image, reference_landmark, query_landmark, width1, height1, width2, height2, method)); |
|
|
118 |
return rcpp_result_gen; |
|
|
119 |
END_RCPP |
|
|
120 |
} |
|
|
121 |
// applyMapping |
|
|
122 |
Rcpp::NumericMatrix applyMapping(Rcpp::NumericMatrix coords, Rcpp::List mapping); |
|
|
123 |
RcppExport SEXP _VoltRon_applyMapping(SEXP coordsSEXP, SEXP mappingSEXP) { |
|
|
124 |
BEGIN_RCPP |
|
|
125 |
Rcpp::RObject rcpp_result_gen; |
|
|
126 |
Rcpp::RNGScope rcpp_rngScope_gen; |
|
|
127 |
Rcpp::traits::input_parameter< Rcpp::NumericMatrix >::type coords(coordsSEXP); |
|
|
128 |
Rcpp::traits::input_parameter< Rcpp::List >::type mapping(mappingSEXP); |
|
|
129 |
rcpp_result_gen = Rcpp::wrap(applyMapping(coords, mapping)); |
|
|
130 |
return rcpp_result_gen; |
|
|
131 |
END_RCPP |
|
|
132 |
} |
|
|
133 |
// build_snn_rank |
|
|
134 |
Rcpp::List build_snn_rank(Rcpp::IntegerMatrix neighbors); |
|
|
135 |
RcppExport SEXP _VoltRon_build_snn_rank(SEXP neighborsSEXP) { |
|
|
136 |
BEGIN_RCPP |
|
|
137 |
Rcpp::RObject rcpp_result_gen; |
|
|
138 |
Rcpp::traits::input_parameter< Rcpp::IntegerMatrix >::type neighbors(neighborsSEXP); |
|
|
139 |
rcpp_result_gen = Rcpp::wrap(build_snn_rank(neighbors)); |
|
|
140 |
return rcpp_result_gen; |
|
|
141 |
END_RCPP |
|
|
142 |
} |
|
|
143 |
// build_snn_number |
|
|
144 |
Rcpp::List build_snn_number(Rcpp::IntegerMatrix neighbors); |
|
|
145 |
RcppExport SEXP _VoltRon_build_snn_number(SEXP neighborsSEXP) { |
|
|
146 |
BEGIN_RCPP |
|
|
147 |
Rcpp::RObject rcpp_result_gen; |
|
|
148 |
Rcpp::traits::input_parameter< Rcpp::IntegerMatrix >::type neighbors(neighborsSEXP); |
|
|
149 |
rcpp_result_gen = Rcpp::wrap(build_snn_number(neighbors)); |
|
|
150 |
return rcpp_result_gen; |
|
|
151 |
END_RCPP |
|
|
152 |
} |
|
|
153 |
// replacePatternInRcppVectorWrapper |
|
|
154 |
Rcpp::CharacterVector replacePatternInRcppVectorWrapper(Rcpp::CharacterVector textVector, const std::string& pattern, const std::string& replacement); |
|
|
155 |
RcppExport SEXP _VoltRon_replacePatternInRcppVectorWrapper(SEXP textVectorSEXP, SEXP patternSEXP, SEXP replacementSEXP) { |
|
|
156 |
BEGIN_RCPP |
|
|
157 |
Rcpp::RObject rcpp_result_gen; |
|
|
158 |
Rcpp::RNGScope rcpp_rngScope_gen; |
|
|
159 |
Rcpp::traits::input_parameter< Rcpp::CharacterVector >::type textVector(textVectorSEXP); |
|
|
160 |
Rcpp::traits::input_parameter< const std::string& >::type pattern(patternSEXP); |
|
|
161 |
Rcpp::traits::input_parameter< const std::string& >::type replacement(replacementSEXP); |
|
|
162 |
rcpp_result_gen = Rcpp::wrap(replacePatternInRcppVectorWrapper(textVector, pattern, replacement)); |
|
|
163 |
return rcpp_result_gen; |
|
|
164 |
END_RCPP |
|
|
165 |
} |
|
|
166 |
|
|
|
167 |
static const R_CallMethodDef CallEntries[] = { |
|
|
168 |
{"_VoltRon_automated_registeration_rawvector", (DL_FUNC) &_VoltRon_automated_registeration_rawvector, 16}, |
|
|
169 |
{"_VoltRon_replaceNaMatrix", (DL_FUNC) &_VoltRon_replaceNaMatrix, 2}, |
|
|
170 |
{"_VoltRon_warpImage", (DL_FUNC) &_VoltRon_warpImage, 7}, |
|
|
171 |
{"_VoltRon_warpImageAuto", (DL_FUNC) &_VoltRon_warpImageAuto, 7}, |
|
|
172 |
{"_VoltRon_warpImageManual", (DL_FUNC) &_VoltRon_warpImageManual, 7}, |
|
|
173 |
{"_VoltRon_manual_registeration_rawvector", (DL_FUNC) &_VoltRon_manual_registeration_rawvector, 9}, |
|
|
174 |
{"_VoltRon_applyMapping", (DL_FUNC) &_VoltRon_applyMapping, 2}, |
|
|
175 |
{"_VoltRon_build_snn_rank", (DL_FUNC) &_VoltRon_build_snn_rank, 1}, |
|
|
176 |
{"_VoltRon_build_snn_number", (DL_FUNC) &_VoltRon_build_snn_number, 1}, |
|
|
177 |
{"_VoltRon_replacePatternInRcppVectorWrapper", (DL_FUNC) &_VoltRon_replacePatternInRcppVectorWrapper, 3}, |
|
|
178 |
{NULL, NULL, 0} |
|
|
179 |
}; |
|
|
180 |
|
|
|
181 |
RcppExport void R_init_VoltRon(DllInfo *dll) { |
|
|
182 |
R_registerRoutines(dll, NULL, CallEntries, NULL, NULL); |
|
|
183 |
R_useDynamicSymbols(dll, FALSE); |
|
|
184 |
} |