-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdonuts_guide.h
More file actions
40 lines (33 loc) · 961 Bytes
/
donuts_guide.h
File metadata and controls
40 lines (33 loc) · 961 Bytes
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
/******************************************
* DONUTS guider API
* (c)2015 Rumen G.Bogdanovski
******************************************/
#ifndef __DONUTS_GUIDE_H
#define __DONUTS_GUIDE_H
#include <guider_math.h>
#ifdef __cplusplus
extern "C" {
#endif
/* analyze the frame and allocate, and set buffers in fdigest
* NOTE: does not allocate *fdigest
* input: *fdata, width, height
* output: *fdigest
* returns:
*/
int dg_new_frame_digest(const double *fdata, const int width, const int height, frame_digest *fdigest);
/* calculate guider corrections in pixels
* input: *ref, *new
* output: *c
* returns:
*/
int dg_calculate_corrections(const frame_digest *ref, const frame_digest *new, corrections *c);
/* frees the buffers allocated by dg_digest_frame()
* NOTE: does not free *fdigest
* input: *ref, *new
* returns:
*/
int dg_delete_frame_digest(frame_digest *fdigest);
#ifdef __cplusplus
}
#endif
#endif /* __DONUTS_GUIDE_H */