ifw-odp  2.0.0-alpha
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
clipm_aperture.h
Go to the documentation of this file.
1 
2 /*********************************************************************
3  * E.S.O. - VLT project
4  *
5  * "@(#) $Id: clipm_aperture.h 262702 2014-12-08 19:16:56Z cgarcia $"
6  *
7  * Functions for aperture characterisation
8  *
9  * who when what
10  * -------- ---------- ----------------------------------------------
11  * hlorch 2006-12-08 created
12  */
13 
14 #ifndef CLIPM_APERTURE_H
15 #define CLIPM_APERTURE_H
16 
17 /*-----------------------------------------------------------------------------
18  Includes
19  -----------------------------------------------------------------------------*/
20 
21 #include <cpl.h>
22 
23 /*-----------------------------------------------------------------------------
24  Declaration Block
25  -----------------------------------------------------------------------------*/
26 
27 #ifdef __cplusplus
28 extern "C" {
29 #endif
30 
31 /*-----------------------------------------------------------------------------
32  Prototypes
33  -----------------------------------------------------------------------------*/
34 
35 cpl_error_code clipm_aperture_detect_circles(
36  const cpl_image *input,
37  const cpl_size window_xxyy[4],
38  cpl_matrix **out_circles);
39 
41  const cpl_image *input,
42  const cpl_size window_xxyy[4],
43  double *out_centre_x,
44  double *out_centre_y,
45  double *out_radius,
46  double *out_r_sigma,
47  cpl_matrix **statistics);
48 
50  const cpl_image *input,
51  const cpl_size window_xxyy[4],
52  double *centre_x,
53  double *centre_y,
54  double *angle,
55  double *length,
56  double *width,
57  cpl_matrix **statistics);
58 
59 /*cpl_error_code clipm_aperture_characterise_square(
60  const cpl_image *input,
61  const int window_xxyy[4],
62  cpl_vector **out_centre_coord,
63  double *out_size,
64  double *out_angle,
65  cpl_mask **out_mask,
66  cpl_stats **out_statistics,
67  unsigned stats_bitmask);*/
68 
69 cpl_error_code clipm_aperture_slitpos( cpl_image *input,
70  int max_width,
71  double *out_x_centre,
72  double *out_y_centre,
73  double *out_angle,
74  cpl_size *out_y_size);
75 
77  double centre_x,
78  double centre_y,
79  double angle,
80  double length,
81  double width);
82 
83 /*----------------------------------------------------------------------------*/
84 
85 #ifdef __cplusplus
86 } /* extern "C" */
87 #endif
88 
89 #endif /* CLIPM_APERTURE_H */
cpl_error_code clipm_aperture_detect_circles(const cpl_image *input, const cpl_size window_xxyy[4], cpl_matrix **out_circles)
Detect circular apertures.
Definition: clipm_aperture.c:985
cpl_matrix * clipm_aperture_get_rectangle_corners(double centre_x, double centre_y, double angle, double length, double width)
Create a matrix with 4 corner positions of a rectangle.
Definition: clipm_aperture.c:2615
cpl_error_code clipm_aperture_characterise_circular(const cpl_image *input, const cpl_size window_xxyy[4], double *out_centre_x, double *out_centre_y, double *out_radius, double *out_r_sigma, cpl_matrix **statistics)
Characterise a circular aperture.
Definition: clipm_aperture.c:1736
cpl_error_code clipm_aperture_slitpos(cpl_image *input, int max_width, double *out_x_centre, double *out_y_centre, double *out_angle, cpl_size *out_y_size)
Get a slit position.
Definition: clipm_aperture.c:2532
cpl_error_code clipm_aperture_characterise_rectangular(const cpl_image *input, const cpl_size window_xxyy[4], double *centre_x, double *centre_y, double *angle, double *length, double *width, cpl_matrix **statistics)
Characterise a rectangular aperture. PROTOTYPE ONLY, NO IMPLEMENTATION YET.
Definition: clipm_aperture.c:2080