-
Notifications
You must be signed in to change notification settings - Fork 8
Expand file tree
/
Copy pathRcppExports.cpp
More file actions
383 lines (377 loc) · 23.1 KB
/
Copy pathRcppExports.cpp
File metadata and controls
383 lines (377 loc) · 23.1 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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
// Generated by using Rcpp::compileAttributes() -> do not edit by hand
// Generator token: 10BE3573-1514-4C36-9D1C-5A225CD40393
#include <Rcpp.h>
using namespace Rcpp;
#ifdef RCPP_USE_GLOBAL_ROSTREAM
Rcpp::Rostream<true>& Rcpp::Rcout = Rcpp::Rcpp_cout_get();
Rcpp::Rostream<false>& Rcpp::Rcerr = Rcpp::Rcpp_cerr_get();
#endif
// interpolateAkimaGrid
void interpolateAkimaGrid(NumericVector x, NumericVector y, NumericMatrix grid, NumericMatrix output);
RcppExport SEXP _ProFound_interpolateAkimaGrid(SEXP xSEXP, SEXP ySEXP, SEXP gridSEXP, SEXP outputSEXP) {
BEGIN_RCPP
Rcpp::RNGScope rcpp_rngScope_gen;
Rcpp::traits::input_parameter< NumericVector >::type x(xSEXP);
Rcpp::traits::input_parameter< NumericVector >::type y(ySEXP);
Rcpp::traits::input_parameter< NumericMatrix >::type grid(gridSEXP);
Rcpp::traits::input_parameter< NumericMatrix >::type output(outputSEXP);
interpolateAkimaGrid(x, y, grid, output);
return R_NilValue;
END_RCPP
}
// interpolateLinearGrid
void interpolateLinearGrid(NumericVector xseq, NumericVector yseq, NumericMatrix tempmat_sky, NumericMatrix output);
RcppExport SEXP _ProFound_interpolateLinearGrid(SEXP xseqSEXP, SEXP yseqSEXP, SEXP tempmat_skySEXP, SEXP outputSEXP) {
BEGIN_RCPP
Rcpp::RNGScope rcpp_rngScope_gen;
Rcpp::traits::input_parameter< NumericVector >::type xseq(xseqSEXP);
Rcpp::traits::input_parameter< NumericVector >::type yseq(yseqSEXP);
Rcpp::traits::input_parameter< NumericMatrix >::type tempmat_sky(tempmat_skySEXP);
Rcpp::traits::input_parameter< NumericMatrix >::type output(outputSEXP);
interpolateLinearGrid(xseq, yseq, tempmat_sky, output);
return R_NilValue;
END_RCPP
}
// profoundAperCover
NumericVector profoundAperCover(NumericVector x, NumericVector y, double cx, double cy, double rad, int depth, int nthreads);
RcppExport SEXP _ProFound_profoundAperCover(SEXP xSEXP, SEXP ySEXP, SEXP cxSEXP, SEXP cySEXP, SEXP radSEXP, SEXP depthSEXP, SEXP nthreadsSEXP) {
BEGIN_RCPP
Rcpp::RObject rcpp_result_gen;
Rcpp::RNGScope rcpp_rngScope_gen;
Rcpp::traits::input_parameter< NumericVector >::type x(xSEXP);
Rcpp::traits::input_parameter< NumericVector >::type y(ySEXP);
Rcpp::traits::input_parameter< double >::type cx(cxSEXP);
Rcpp::traits::input_parameter< double >::type cy(cySEXP);
Rcpp::traits::input_parameter< double >::type rad(radSEXP);
Rcpp::traits::input_parameter< int >::type depth(depthSEXP);
Rcpp::traits::input_parameter< int >::type nthreads(nthreadsSEXP);
rcpp_result_gen = Rcpp::wrap(profoundAperCover(x, y, cx, cy, rad, depth, nthreads));
return rcpp_result_gen;
END_RCPP
}
// profoundAperWeight
NumericMatrix profoundAperWeight(NumericVector cx, NumericVector cy, NumericVector rad, int dimx, int dimy, NumericVector wt, NumericVector rad_re, NumericVector nser, int depth, int nthreads);
RcppExport SEXP _ProFound_profoundAperWeight(SEXP cxSEXP, SEXP cySEXP, SEXP radSEXP, SEXP dimxSEXP, SEXP dimySEXP, SEXP wtSEXP, SEXP rad_reSEXP, SEXP nserSEXP, SEXP depthSEXP, SEXP nthreadsSEXP) {
BEGIN_RCPP
Rcpp::RObject rcpp_result_gen;
Rcpp::RNGScope rcpp_rngScope_gen;
Rcpp::traits::input_parameter< NumericVector >::type cx(cxSEXP);
Rcpp::traits::input_parameter< NumericVector >::type cy(cySEXP);
Rcpp::traits::input_parameter< NumericVector >::type rad(radSEXP);
Rcpp::traits::input_parameter< int >::type dimx(dimxSEXP);
Rcpp::traits::input_parameter< int >::type dimy(dimySEXP);
Rcpp::traits::input_parameter< NumericVector >::type wt(wtSEXP);
Rcpp::traits::input_parameter< NumericVector >::type rad_re(rad_reSEXP);
Rcpp::traits::input_parameter< NumericVector >::type nser(nserSEXP);
Rcpp::traits::input_parameter< int >::type depth(depthSEXP);
Rcpp::traits::input_parameter< int >::type nthreads(nthreadsSEXP);
rcpp_result_gen = Rcpp::wrap(profoundAperWeight(cx, cy, rad, dimx, dimy, wt, rad_re, nser, depth, nthreads));
return rcpp_result_gen;
END_RCPP
}
// profoundAperFlux
NumericVector profoundAperFlux(NumericMatrix image, NumericVector cx, NumericVector cy, NumericVector rad, NumericVector wt, NumericVector rad_re, NumericVector nser, bool deblend, int depth, int iterations, int nthreads);
RcppExport SEXP _ProFound_profoundAperFlux(SEXP imageSEXP, SEXP cxSEXP, SEXP cySEXP, SEXP radSEXP, SEXP wtSEXP, SEXP rad_reSEXP, SEXP nserSEXP, SEXP deblendSEXP, SEXP depthSEXP, SEXP iterationsSEXP, SEXP nthreadsSEXP) {
BEGIN_RCPP
Rcpp::RObject rcpp_result_gen;
Rcpp::RNGScope rcpp_rngScope_gen;
Rcpp::traits::input_parameter< NumericMatrix >::type image(imageSEXP);
Rcpp::traits::input_parameter< NumericVector >::type cx(cxSEXP);
Rcpp::traits::input_parameter< NumericVector >::type cy(cySEXP);
Rcpp::traits::input_parameter< NumericVector >::type rad(radSEXP);
Rcpp::traits::input_parameter< NumericVector >::type wt(wtSEXP);
Rcpp::traits::input_parameter< NumericVector >::type rad_re(rad_reSEXP);
Rcpp::traits::input_parameter< NumericVector >::type nser(nserSEXP);
Rcpp::traits::input_parameter< bool >::type deblend(deblendSEXP);
Rcpp::traits::input_parameter< int >::type depth(depthSEXP);
Rcpp::traits::input_parameter< int >::type iterations(iterationsSEXP);
Rcpp::traits::input_parameter< int >::type nthreads(nthreadsSEXP);
rcpp_result_gen = Rcpp::wrap(profoundAperFlux(image, cx, cy, rad, wt, rad_re, nser, deblend, depth, iterations, nthreads));
return rcpp_result_gen;
END_RCPP
}
// dilate_cpp
IntegerMatrix dilate_cpp(IntegerMatrix segim, IntegerMatrix kern, IntegerVector expand, int nthreads);
RcppExport SEXP _ProFound_dilate_cpp(SEXP segimSEXP, SEXP kernSEXP, SEXP expandSEXP, SEXP nthreadsSEXP) {
BEGIN_RCPP
Rcpp::RObject rcpp_result_gen;
Rcpp::RNGScope rcpp_rngScope_gen;
Rcpp::traits::input_parameter< IntegerMatrix >::type segim(segimSEXP);
Rcpp::traits::input_parameter< IntegerMatrix >::type kern(kernSEXP);
Rcpp::traits::input_parameter< IntegerVector >::type expand(expandSEXP);
Rcpp::traits::input_parameter< int >::type nthreads(nthreadsSEXP);
rcpp_result_gen = Rcpp::wrap(dilate_cpp(segim, kern, expand, nthreads));
return rcpp_result_gen;
END_RCPP
}
// profoundEllipCover
NumericVector profoundEllipCover(NumericVector x, NumericVector y, double cx, double cy, double rad, double ang, double axrat, int depth, int nthreads);
RcppExport SEXP _ProFound_profoundEllipCover(SEXP xSEXP, SEXP ySEXP, SEXP cxSEXP, SEXP cySEXP, SEXP radSEXP, SEXP angSEXP, SEXP axratSEXP, SEXP depthSEXP, SEXP nthreadsSEXP) {
BEGIN_RCPP
Rcpp::RObject rcpp_result_gen;
Rcpp::RNGScope rcpp_rngScope_gen;
Rcpp::traits::input_parameter< NumericVector >::type x(xSEXP);
Rcpp::traits::input_parameter< NumericVector >::type y(ySEXP);
Rcpp::traits::input_parameter< double >::type cx(cxSEXP);
Rcpp::traits::input_parameter< double >::type cy(cySEXP);
Rcpp::traits::input_parameter< double >::type rad(radSEXP);
Rcpp::traits::input_parameter< double >::type ang(angSEXP);
Rcpp::traits::input_parameter< double >::type axrat(axratSEXP);
Rcpp::traits::input_parameter< int >::type depth(depthSEXP);
Rcpp::traits::input_parameter< int >::type nthreads(nthreadsSEXP);
rcpp_result_gen = Rcpp::wrap(profoundEllipCover(x, y, cx, cy, rad, ang, axrat, depth, nthreads));
return rcpp_result_gen;
END_RCPP
}
// profoundEllipWeight
NumericMatrix profoundEllipWeight(NumericVector cx, NumericVector cy, NumericVector rad, NumericVector ang, NumericVector axrat, int dimx, int dimy, NumericVector wt, NumericVector rad_re, NumericVector nser, int depth, int nthreads);
RcppExport SEXP _ProFound_profoundEllipWeight(SEXP cxSEXP, SEXP cySEXP, SEXP radSEXP, SEXP angSEXP, SEXP axratSEXP, SEXP dimxSEXP, SEXP dimySEXP, SEXP wtSEXP, SEXP rad_reSEXP, SEXP nserSEXP, SEXP depthSEXP, SEXP nthreadsSEXP) {
BEGIN_RCPP
Rcpp::RObject rcpp_result_gen;
Rcpp::RNGScope rcpp_rngScope_gen;
Rcpp::traits::input_parameter< NumericVector >::type cx(cxSEXP);
Rcpp::traits::input_parameter< NumericVector >::type cy(cySEXP);
Rcpp::traits::input_parameter< NumericVector >::type rad(radSEXP);
Rcpp::traits::input_parameter< NumericVector >::type ang(angSEXP);
Rcpp::traits::input_parameter< NumericVector >::type axrat(axratSEXP);
Rcpp::traits::input_parameter< int >::type dimx(dimxSEXP);
Rcpp::traits::input_parameter< int >::type dimy(dimySEXP);
Rcpp::traits::input_parameter< NumericVector >::type wt(wtSEXP);
Rcpp::traits::input_parameter< NumericVector >::type rad_re(rad_reSEXP);
Rcpp::traits::input_parameter< NumericVector >::type nser(nserSEXP);
Rcpp::traits::input_parameter< int >::type depth(depthSEXP);
Rcpp::traits::input_parameter< int >::type nthreads(nthreadsSEXP);
rcpp_result_gen = Rcpp::wrap(profoundEllipWeight(cx, cy, rad, ang, axrat, dimx, dimy, wt, rad_re, nser, depth, nthreads));
return rcpp_result_gen;
END_RCPP
}
// profoundEllipFlux
NumericVector profoundEllipFlux(NumericMatrix image, NumericVector cx, NumericVector cy, NumericVector rad, NumericVector ang, NumericVector axrat, NumericVector wt, NumericVector rad_re, NumericVector nser, bool deblend, int depth, int iterations, int nthreads);
RcppExport SEXP _ProFound_profoundEllipFlux(SEXP imageSEXP, SEXP cxSEXP, SEXP cySEXP, SEXP radSEXP, SEXP angSEXP, SEXP axratSEXP, SEXP wtSEXP, SEXP rad_reSEXP, SEXP nserSEXP, SEXP deblendSEXP, SEXP depthSEXP, SEXP iterationsSEXP, SEXP nthreadsSEXP) {
BEGIN_RCPP
Rcpp::RObject rcpp_result_gen;
Rcpp::RNGScope rcpp_rngScope_gen;
Rcpp::traits::input_parameter< NumericMatrix >::type image(imageSEXP);
Rcpp::traits::input_parameter< NumericVector >::type cx(cxSEXP);
Rcpp::traits::input_parameter< NumericVector >::type cy(cySEXP);
Rcpp::traits::input_parameter< NumericVector >::type rad(radSEXP);
Rcpp::traits::input_parameter< NumericVector >::type ang(angSEXP);
Rcpp::traits::input_parameter< NumericVector >::type axrat(axratSEXP);
Rcpp::traits::input_parameter< NumericVector >::type wt(wtSEXP);
Rcpp::traits::input_parameter< NumericVector >::type rad_re(rad_reSEXP);
Rcpp::traits::input_parameter< NumericVector >::type nser(nserSEXP);
Rcpp::traits::input_parameter< bool >::type deblend(deblendSEXP);
Rcpp::traits::input_parameter< int >::type depth(depthSEXP);
Rcpp::traits::input_parameter< int >::type iterations(iterationsSEXP);
Rcpp::traits::input_parameter< int >::type nthreads(nthreadsSEXP);
rcpp_result_gen = Rcpp::wrap(profoundEllipFlux(image, cx, cy, rad, ang, axrat, wt, rad_re, nser, deblend, depth, iterations, nthreads));
return rcpp_result_gen;
END_RCPP
}
// profoundPolyCover
NumericVector profoundPolyCover(NumericVector x, NumericVector y, NumericVector poly_x, NumericVector poly_y, int depth, int nthreads);
RcppExport SEXP _ProFound_profoundPolyCover(SEXP xSEXP, SEXP ySEXP, SEXP poly_xSEXP, SEXP poly_ySEXP, SEXP depthSEXP, SEXP nthreadsSEXP) {
BEGIN_RCPP
Rcpp::RObject rcpp_result_gen;
Rcpp::RNGScope rcpp_rngScope_gen;
Rcpp::traits::input_parameter< NumericVector >::type x(xSEXP);
Rcpp::traits::input_parameter< NumericVector >::type y(ySEXP);
Rcpp::traits::input_parameter< NumericVector >::type poly_x(poly_xSEXP);
Rcpp::traits::input_parameter< NumericVector >::type poly_y(poly_ySEXP);
Rcpp::traits::input_parameter< int >::type depth(depthSEXP);
Rcpp::traits::input_parameter< int >::type nthreads(nthreadsSEXP);
rcpp_result_gen = Rcpp::wrap(profoundPolyCover(x, y, poly_x, poly_y, depth, nthreads));
return rcpp_result_gen;
END_RCPP
}
// profoundPolyFlux
double profoundPolyFlux(NumericMatrix image, NumericVector poly_x, NumericVector poly_y, int depth, int nthreads);
RcppExport SEXP _ProFound_profoundPolyFlux(SEXP imageSEXP, SEXP poly_xSEXP, SEXP poly_ySEXP, SEXP depthSEXP, SEXP nthreadsSEXP) {
BEGIN_RCPP
Rcpp::RObject rcpp_result_gen;
Rcpp::RNGScope rcpp_rngScope_gen;
Rcpp::traits::input_parameter< NumericMatrix >::type image(imageSEXP);
Rcpp::traits::input_parameter< NumericVector >::type poly_x(poly_xSEXP);
Rcpp::traits::input_parameter< NumericVector >::type poly_y(poly_ySEXP);
Rcpp::traits::input_parameter< int >::type depth(depthSEXP);
Rcpp::traits::input_parameter< int >::type nthreads(nthreadsSEXP);
rcpp_result_gen = Rcpp::wrap(profoundPolyFlux(image, poly_x, poly_y, depth, nthreads));
return rcpp_result_gen;
END_RCPP
}
// Cadacs_MakeSkyGrid
void Cadacs_MakeSkyGrid(Rcpp::NumericMatrix image, Rcpp::NumericMatrix sky, Rcpp::NumericMatrix skyRMS, Rcpp::Nullable<Rcpp::IntegerMatrix> objects, Rcpp::Nullable<Rcpp::IntegerMatrix> mask, const int box1, const int box2, const int grid1, const int grid2, const int boxadd1, const int boxadd2, const int type, const int skypixmin, const int boxiters, const int doclip, const int skytype, const int skyRMStype, const double sigmasel, int nthreads);
RcppExport SEXP _ProFound_Cadacs_MakeSkyGrid(SEXP imageSEXP, SEXP skySEXP, SEXP skyRMSSEXP, SEXP objectsSEXP, SEXP maskSEXP, SEXP box1SEXP, SEXP box2SEXP, SEXP grid1SEXP, SEXP grid2SEXP, SEXP boxadd1SEXP, SEXP boxadd2SEXP, SEXP typeSEXP, SEXP skypixminSEXP, SEXP boxitersSEXP, SEXP doclipSEXP, SEXP skytypeSEXP, SEXP skyRMStypeSEXP, SEXP sigmaselSEXP, SEXP nthreadsSEXP) {
BEGIN_RCPP
Rcpp::RNGScope rcpp_rngScope_gen;
Rcpp::traits::input_parameter< Rcpp::NumericMatrix >::type image(imageSEXP);
Rcpp::traits::input_parameter< Rcpp::NumericMatrix >::type sky(skySEXP);
Rcpp::traits::input_parameter< Rcpp::NumericMatrix >::type skyRMS(skyRMSSEXP);
Rcpp::traits::input_parameter< Rcpp::Nullable<Rcpp::IntegerMatrix> >::type objects(objectsSEXP);
Rcpp::traits::input_parameter< Rcpp::Nullable<Rcpp::IntegerMatrix> >::type mask(maskSEXP);
Rcpp::traits::input_parameter< const int >::type box1(box1SEXP);
Rcpp::traits::input_parameter< const int >::type box2(box2SEXP);
Rcpp::traits::input_parameter< const int >::type grid1(grid1SEXP);
Rcpp::traits::input_parameter< const int >::type grid2(grid2SEXP);
Rcpp::traits::input_parameter< const int >::type boxadd1(boxadd1SEXP);
Rcpp::traits::input_parameter< const int >::type boxadd2(boxadd2SEXP);
Rcpp::traits::input_parameter< const int >::type type(typeSEXP);
Rcpp::traits::input_parameter< const int >::type skypixmin(skypixminSEXP);
Rcpp::traits::input_parameter< const int >::type boxiters(boxitersSEXP);
Rcpp::traits::input_parameter< const int >::type doclip(doclipSEXP);
Rcpp::traits::input_parameter< const int >::type skytype(skytypeSEXP);
Rcpp::traits::input_parameter< const int >::type skyRMStype(skyRMStypeSEXP);
Rcpp::traits::input_parameter< const double >::type sigmasel(sigmaselSEXP);
Rcpp::traits::input_parameter< int >::type nthreads(nthreadsSEXP);
Cadacs_MakeSkyGrid(image, sky, skyRMS, objects, mask, box1, box2, grid1, grid2, boxadd1, boxadd2, type, skypixmin, boxiters, doclip, skytype, skyRMStype, sigmasel, nthreads);
return R_NilValue;
END_RCPP
}
// profoundSegimFlux
NumericVector profoundSegimFlux(NumericMatrix image, NumericMatrix segim, int nthreads);
RcppExport SEXP _ProFound_profoundSegimFlux(SEXP imageSEXP, SEXP segimSEXP, SEXP nthreadsSEXP) {
BEGIN_RCPP
Rcpp::RObject rcpp_result_gen;
Rcpp::RNGScope rcpp_rngScope_gen;
Rcpp::traits::input_parameter< NumericMatrix >::type image(imageSEXP);
Rcpp::traits::input_parameter< NumericMatrix >::type segim(segimSEXP);
Rcpp::traits::input_parameter< int >::type nthreads(nthreadsSEXP);
rcpp_result_gen = Rcpp::wrap(profoundSegimFlux(image, segim, nthreads));
return rcpp_result_gen;
END_RCPP
}
// vec_this_in_vec_that
LogicalVector vec_this_in_vec_that(IntegerVector vec_this, IntegerVector vec_that, bool invert, int nthreads);
RcppExport SEXP _ProFound_vec_this_in_vec_that(SEXP vec_thisSEXP, SEXP vec_thatSEXP, SEXP invertSEXP, SEXP nthreadsSEXP) {
BEGIN_RCPP
Rcpp::RObject rcpp_result_gen;
Rcpp::RNGScope rcpp_rngScope_gen;
Rcpp::traits::input_parameter< IntegerVector >::type vec_this(vec_thisSEXP);
Rcpp::traits::input_parameter< IntegerVector >::type vec_that(vec_thatSEXP);
Rcpp::traits::input_parameter< bool >::type invert(invertSEXP);
Rcpp::traits::input_parameter< int >::type nthreads(nthreadsSEXP);
rcpp_result_gen = Rcpp::wrap(vec_this_in_vec_that(vec_this, vec_that, invert, nthreads));
return rcpp_result_gen;
END_RCPP
}
// mat_this_in_vec_that
LogicalMatrix mat_this_in_vec_that(IntegerMatrix mat_this, IntegerVector vec_that, bool invert, int nthreads);
RcppExport SEXP _ProFound_mat_this_in_vec_that(SEXP mat_thisSEXP, SEXP vec_thatSEXP, SEXP invertSEXP, SEXP nthreadsSEXP) {
BEGIN_RCPP
Rcpp::RObject rcpp_result_gen;
Rcpp::RNGScope rcpp_rngScope_gen;
Rcpp::traits::input_parameter< IntegerMatrix >::type mat_this(mat_thisSEXP);
Rcpp::traits::input_parameter< IntegerVector >::type vec_that(vec_thatSEXP);
Rcpp::traits::input_parameter< bool >::type invert(invertSEXP);
Rcpp::traits::input_parameter< int >::type nthreads(nthreadsSEXP);
rcpp_result_gen = Rcpp::wrap(mat_this_in_vec_that(mat_this, vec_that, invert, nthreads));
return rcpp_result_gen;
END_RCPP
}
// water_cpp
Rcpp::IntegerMatrix water_cpp(Rcpp::NumericVector image, const int nx, const int ny, const double abstol, const double reltol, const double cliptol, const int ext, const double skycut, const int pixcut, const bool verbose, const int Ncheck, int nthreads);
RcppExport SEXP _ProFound_water_cpp(SEXP imageSEXP, SEXP nxSEXP, SEXP nySEXP, SEXP abstolSEXP, SEXP reltolSEXP, SEXP cliptolSEXP, SEXP extSEXP, SEXP skycutSEXP, SEXP pixcutSEXP, SEXP verboseSEXP, SEXP NcheckSEXP, SEXP nthreadsSEXP) {
BEGIN_RCPP
Rcpp::RObject rcpp_result_gen;
Rcpp::RNGScope rcpp_rngScope_gen;
Rcpp::traits::input_parameter< Rcpp::NumericVector >::type image(imageSEXP);
Rcpp::traits::input_parameter< const int >::type nx(nxSEXP);
Rcpp::traits::input_parameter< const int >::type ny(nySEXP);
Rcpp::traits::input_parameter< const double >::type abstol(abstolSEXP);
Rcpp::traits::input_parameter< const double >::type reltol(reltolSEXP);
Rcpp::traits::input_parameter< const double >::type cliptol(cliptolSEXP);
Rcpp::traits::input_parameter< const int >::type ext(extSEXP);
Rcpp::traits::input_parameter< const double >::type skycut(skycutSEXP);
Rcpp::traits::input_parameter< const int >::type pixcut(pixcutSEXP);
Rcpp::traits::input_parameter< const bool >::type verbose(verboseSEXP);
Rcpp::traits::input_parameter< const int >::type Ncheck(NcheckSEXP);
Rcpp::traits::input_parameter< int >::type nthreads(nthreadsSEXP);
rcpp_result_gen = Rcpp::wrap(water_cpp(image, nx, ny, abstol, reltol, cliptol, ext, skycut, pixcut, verbose, Ncheck, nthreads));
return rcpp_result_gen;
END_RCPP
}
// addmat
NumericMatrix addmat(NumericMatrix base, NumericMatrix add, IntegerVector xlim, IntegerVector ylim);
RcppExport SEXP _ProFound_addmat(SEXP baseSEXP, SEXP addSEXP, SEXP xlimSEXP, SEXP ylimSEXP) {
BEGIN_RCPP
Rcpp::RObject rcpp_result_gen;
Rcpp::RNGScope rcpp_rngScope_gen;
Rcpp::traits::input_parameter< NumericMatrix >::type base(baseSEXP);
Rcpp::traits::input_parameter< NumericMatrix >::type add(addSEXP);
Rcpp::traits::input_parameter< IntegerVector >::type xlim(xlimSEXP);
Rcpp::traits::input_parameter< IntegerVector >::type ylim(ylimSEXP);
rcpp_result_gen = Rcpp::wrap(addmat(base, add, xlim, ylim));
return rcpp_result_gen;
END_RCPP
}
// order_cpp
IntegerVector order_cpp(NumericVector x);
RcppExport SEXP _ProFound_order_cpp(SEXP xSEXP) {
BEGIN_RCPP
Rcpp::RObject rcpp_result_gen;
Rcpp::RNGScope rcpp_rngScope_gen;
Rcpp::traits::input_parameter< NumericVector >::type x(xSEXP);
rcpp_result_gen = Rcpp::wrap(order_cpp(x));
return rcpp_result_gen;
END_RCPP
}
// tabulate_cpp
IntegerVector tabulate_cpp(const IntegerVector& x, const int max);
RcppExport SEXP _ProFound_tabulate_cpp(SEXP xSEXP, SEXP maxSEXP) {
BEGIN_RCPP
Rcpp::RObject rcpp_result_gen;
Rcpp::RNGScope rcpp_rngScope_gen;
Rcpp::traits::input_parameter< const IntegerVector& >::type x(xSEXP);
Rcpp::traits::input_parameter< const int >::type max(maxSEXP);
rcpp_result_gen = Rcpp::wrap(tabulate_cpp(x, max));
return rcpp_result_gen;
END_RCPP
}
// water_cpp_old
IntegerVector water_cpp_old(const NumericVector image, const int nx, const int ny, const double abstol, const double reltol, const double cliptol, const int ext, const double skycut, const int pixcut, const bool verbose, const int Ncheck);
RcppExport SEXP _ProFound_water_cpp_old(SEXP imageSEXP, SEXP nxSEXP, SEXP nySEXP, SEXP abstolSEXP, SEXP reltolSEXP, SEXP cliptolSEXP, SEXP extSEXP, SEXP skycutSEXP, SEXP pixcutSEXP, SEXP verboseSEXP, SEXP NcheckSEXP) {
BEGIN_RCPP
Rcpp::RObject rcpp_result_gen;
Rcpp::RNGScope rcpp_rngScope_gen;
Rcpp::traits::input_parameter< const NumericVector >::type image(imageSEXP);
Rcpp::traits::input_parameter< const int >::type nx(nxSEXP);
Rcpp::traits::input_parameter< const int >::type ny(nySEXP);
Rcpp::traits::input_parameter< const double >::type abstol(abstolSEXP);
Rcpp::traits::input_parameter< const double >::type reltol(reltolSEXP);
Rcpp::traits::input_parameter< const double >::type cliptol(cliptolSEXP);
Rcpp::traits::input_parameter< const int >::type ext(extSEXP);
Rcpp::traits::input_parameter< const double >::type skycut(skycutSEXP);
Rcpp::traits::input_parameter< const int >::type pixcut(pixcutSEXP);
Rcpp::traits::input_parameter< const bool >::type verbose(verboseSEXP);
Rcpp::traits::input_parameter< const int >::type Ncheck(NcheckSEXP);
rcpp_result_gen = Rcpp::wrap(water_cpp_old(image, nx, ny, abstol, reltol, cliptol, ext, skycut, pixcut, verbose, Ncheck));
return rcpp_result_gen;
END_RCPP
}
static const R_CallMethodDef CallEntries[] = {
{"_ProFound_interpolateAkimaGrid", (DL_FUNC) &_ProFound_interpolateAkimaGrid, 4},
{"_ProFound_interpolateLinearGrid", (DL_FUNC) &_ProFound_interpolateLinearGrid, 4},
{"_ProFound_profoundAperCover", (DL_FUNC) &_ProFound_profoundAperCover, 7},
{"_ProFound_profoundAperWeight", (DL_FUNC) &_ProFound_profoundAperWeight, 10},
{"_ProFound_profoundAperFlux", (DL_FUNC) &_ProFound_profoundAperFlux, 11},
{"_ProFound_dilate_cpp", (DL_FUNC) &_ProFound_dilate_cpp, 4},
{"_ProFound_profoundEllipCover", (DL_FUNC) &_ProFound_profoundEllipCover, 9},
{"_ProFound_profoundEllipWeight", (DL_FUNC) &_ProFound_profoundEllipWeight, 12},
{"_ProFound_profoundEllipFlux", (DL_FUNC) &_ProFound_profoundEllipFlux, 13},
{"_ProFound_profoundPolyCover", (DL_FUNC) &_ProFound_profoundPolyCover, 6},
{"_ProFound_profoundPolyFlux", (DL_FUNC) &_ProFound_profoundPolyFlux, 5},
{"_ProFound_Cadacs_MakeSkyGrid", (DL_FUNC) &_ProFound_Cadacs_MakeSkyGrid, 19},
{"_ProFound_profoundSegimFlux", (DL_FUNC) &_ProFound_profoundSegimFlux, 3},
{"_ProFound_vec_this_in_vec_that", (DL_FUNC) &_ProFound_vec_this_in_vec_that, 4},
{"_ProFound_mat_this_in_vec_that", (DL_FUNC) &_ProFound_mat_this_in_vec_that, 4},
{"_ProFound_water_cpp", (DL_FUNC) &_ProFound_water_cpp, 12},
{"_ProFound_addmat", (DL_FUNC) &_ProFound_addmat, 4},
{"_ProFound_order_cpp", (DL_FUNC) &_ProFound_order_cpp, 1},
{"_ProFound_tabulate_cpp", (DL_FUNC) &_ProFound_tabulate_cpp, 2},
{"_ProFound_water_cpp_old", (DL_FUNC) &_ProFound_water_cpp_old, 11},
{NULL, NULL, 0}
};
RcppExport void R_init_ProFound(DllInfo *dll) {
R_registerRoutines(dll, NULL, CallEntries, NULL, NULL);
R_useDynamicSymbols(dll, FALSE);
}