|
ifw-odp 5.0.0
|
Classes | |
| struct | clipm_match_circle_par_t |
Macros | |
| #define | clipm_aperture_DEBUG_IMGSAVE(image, name) |
Typedefs | |
| typedef struct clipm_match_circle_par_t | clipm_match_circle_par_t |
Functions | |
| cpl_error_code | clipm_aperture_detect_circles (const cpl_image *input, const cpl_size window_xxyy[4], cpl_matrix **out_circles) |
| Detect circular apertures. | |
| 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. | |
| 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. | |
| cpl_error_code | clipm_aperture_characterise_square (const cpl_image *input, const int window_xxyy[4], cpl_vector **out_centre_coord, double *out_size, double *out_angle, cpl_mask **out_mask, cpl_stats **out_statistics, unsigned stats_bitmask) |
| Characterise a square aperture. PROTOTYPE ONLY, NO IMPLEMENTATION YET. | |
| 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. | |
| 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. | |
This module provides functions for the characterization of image objects (apertures).
| #define clipm_aperture_DEBUG_IMGSAVE | ( | image, | |
| name ) |
| typedef struct clipm_match_circle_par_t clipm_match_circle_par_t |
| 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.
| input | Input image (FITS convention) |
| window_xxyy | Coordinate buffer of the form {xa, xb, ya, yb}, can be NULL, minimum/maximum order is irrelevant |
| out_centre_x | (Optional output) x centre |
| out_centre_y | (Optional output) y centre |
| out_radius | (Optional output) radius |
| out_r_sigma | (Optional output) sigma of the radius' edge |
| statistics | Optional output statistics, can be NULL |
| Column | 0: Aperture | 1: Background |
|---|---|---|
| Row 0: Mean | ... | ... |
| Row 1: Median | ... | ... |
| Row 2: Standard Deviation | ... | ... |
| 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.
| input | Input image (FITS convention) |
| window_xxyy | Coordinate buffer of the form {xa, xb, ya, yb}, can be NULL, minimum/maximum order is irrelevant |
| centre_x | (Optional output) x centre |
| centre_y | (Optional output) y centre |
| angle | (Optional output) angle (mathematically positive, i.e. counterclockwise) |
| length | (Optional output) length (in direction of angle) |
| width | (Optional output) width |
| statistics | (Optional output) statistics, can be NULL |
| Column | 0: Aperture | 1: Background |
|---|---|---|
| Row 0: Mean | ... | ... |
| Row 1: Median | ... | ... |
| Row 2: Standard Deviation | ... | ... |
| cpl_error_code clipm_aperture_characterise_square | ( | const cpl_image * | input, |
| const int | window_xxyy[4], | ||
| cpl_vector ** | out_centre_coord, | ||
| double * | out_size, | ||
| double * | out_angle, | ||
| cpl_mask ** | out_mask, | ||
| cpl_stats ** | out_statistics, | ||
| unsigned | stats_bitmask ) |
Characterise a square aperture. PROTOTYPE ONLY, NO IMPLEMENTATION YET.
| input | Input image (FITS convention) |
| window_xxyy | Coordinate buffer of the form {xa, xb, ya, yb}, can be NULL, minimum/maximum order is irrelevant |
| out_centre_coord | Output centre coordinate |
| out_size | Output aperture size (edge length) |
| out_angle | Output rotation angle |
| out_mask | Optional output pixel mask, can be NULL |
| out_statistics | Optional output statistics, can be NULL |
| stats_bitmask | Statistics type definition |
| cpl_error_code clipm_aperture_detect_circles | ( | const cpl_image * | input, |
| const cpl_size | window_xxyy[4], | ||
| cpl_matrix ** | out_circles ) |
Detect circular apertures.
| input | Input image (FITS convention) |
| window_xxyy | Coordinate buffer of the form {xa, xb, ya, yb}, can be NULL, minimum/maximum order is irrelevant |
| out_circles | Output matrix containing the circle parameters for every found aperture (see below), NULL in the case of error |
| 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.
| centre_x | X centre position |
| centre_y | Y centre position |
| angle | Orientation (mathematically positive, i.e. counterclockwise) |
| length | Length, in the direction of angle |
| width | Width |
| 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.
| input | Input image (FITS convention) |
| max_width | Maximum slit width |
| out_x_centre | Output central x position |
| out_y_centre | Output central y position |
| out_angle | Output angle (mathematically positive) 0...Pi |
| out_y_size | Output number of image lines |