|
ifw-odp
2.0.0-alpha
|
| #define | _POSIX_C_SOURCE 200112L |
| #define | max(a, b) ((a) > (b) ? (a) : (b)) |
| #define | min(a, b) ((a) < (b) ? (a) : (b)) |
| int | clipm_priv_checks_is_window_full_image (const cpl_size window_xxyy[4], const cpl_image *image) |
| Check if window coordinates represent the whole image. More... | |
| cpl_error_code | clipm_priv_checks_window_image (const cpl_size window_xxyy[4], const cpl_image *image, int allow_window_NULL, cpl_size *img_size_xy, cpl_size *window_size_xy, cpl_size *buffer_start_xy) |
| Check window coordinates with the corresponding image. More... | |
| cpl_error_code | clipm_priv_checks_window_minmax (const int window_xxyy[4], int ndims, int allow_window_NULL) |
| Check coordinates for min/max condition. More... | |
| cpl_error_code | clipm_priv_checks_window_guarantee (cpl_size window_xxyy[4], cpl_size xsize, cpl_size ysize, cpl_size min_windowsize) |
| Cut window coordinates to a FITS image range if outside, expand if necessary. More... | |
| cpl_error_code | clipm_priv_checks_window_guarantee_image (cpl_size window_xxyy[4], const cpl_image *image, cpl_size min_windowsize) |
| Cut window coordinates to a FITS image range if outside, expand if necessary. More... | |
| cpl_error_code | clipm_priv_checks_window_guarantee_window (cpl_size window_xxyy[4], const cpl_size *ref_window, cpl_size min_windowsize) |
| Cut window coordinates to an existing reference window range, expand if necessary. More... | |
| cpl_error_code | clipm_priv_checks_images_match (const cpl_image *img1, const cpl_image *img2, cpl_type *type, cpl_size *xsize, cpl_size *ysize) |
| Check whether two images match in the requested features. More... | |
| cpl_error_code | clipm_priv_checks_imtype_any (const cpl_image *image, cpl_type *out_type) |
| Check whether an image is of an allowed type. More... | |
| cpl_error_code | clipm_priv_checks_imtype_float (const cpl_image *image, cpl_type *out_type) |
| Check whether an image is of a floating-point type. More... | |
| #define _POSIX_C_SOURCE 200112L |
| #define max | ( | a, | |
| b | |||
| ) | ((a) > (b) ? (a) : (b)) |
| #define min | ( | a, | |
| b | |||
| ) | ((a) < (b) ? (a) : (b)) |
| cpl_error_code clipm_priv_checks_images_match | ( | const cpl_image * | img1, |
| const cpl_image * | img2, | ||
| cpl_type * | type, | ||
| cpl_size * | xsize, | ||
| cpl_size * | ysize | ||
| ) |
Check whether two images match in the requested features.
| img1 | Image 1 |
| img2 | Image 2 |
| type | (output) CPL type, can be NULL |
| xsize | (output) Horizontal size, can be NULL |
| ysize | (output) Vertical size, can be NULL |
| cpl_error_code clipm_priv_checks_imtype_any | ( | const cpl_image * | image, |
| cpl_type * | out_type | ||
| ) |
Check whether an image is of an allowed type.
| image | Input image |
| out_type | (Optional output) image type |
| cpl_error_code clipm_priv_checks_imtype_float | ( | const cpl_image * | image, |
| cpl_type * | out_type | ||
| ) |
Check whether an image is of a floating-point type.
| image | Input image |
| out_type | (Optional output) image type |
| int clipm_priv_checks_is_window_full_image | ( | const cpl_size | window_xxyy[4], |
| const cpl_image * | image | ||
| ) |
Check if window coordinates represent the whole image.
| window_xxyy | Coordinate buffer of the form {x1a, x1b, y1a, y1b}, minimum/maximum order is irrelevant |
| image | Image (FITS convention) |
| cpl_error_code clipm_priv_checks_window_guarantee | ( | cpl_size | window_xxyy[4], |
| cpl_size | xsize, | ||
| cpl_size | ysize, | ||
| cpl_size | min_windowsize | ||
| ) |
Cut window coordinates to a FITS image range if outside, expand if necessary.
| window_xxyy | Coordinate buffer of the form {x1a, x1b, y1a, y1b} in FITS convention, minimum/maximum order is irrelevant |
| xsize | Horizontal image size |
| ysize | Vertical image size |
| min_windowsize | Minimum window size |
| cpl_error_code clipm_priv_checks_window_guarantee_image | ( | cpl_size | window_xxyy[4], |
| const cpl_image * | image, | ||
| cpl_size | min_windowsize | ||
| ) |
Cut window coordinates to a FITS image range if outside, expand if necessary.
| window_xxyy | Coordinate buffer of the form {x1a, x1b, y1a, y1b} in FITS convention, minimum/maximum order is irrelevant |
| image | The reference image |
| min_windowsize | Minimum window size |
| cpl_error_code clipm_priv_checks_window_guarantee_window | ( | cpl_size | window_xxyy[4], |
| const cpl_size * | ref_window, | ||
| cpl_size | min_windowsize | ||
| ) |
Cut window coordinates to an existing reference window range, expand if necessary.
| window_xxyy | Coordinate buffer of the form {x1a, x1b, y1a, y1b} in FITS convention, minimum/maximum order is irrelevant |
| ref_window | Coordinate buffer of the form {x1a, x1b, y1a, y1b} in FITS convention, minimum/maximum order is irrelevant |
| min_windowsize | Minimum window size |
| cpl_error_code clipm_priv_checks_window_image | ( | const cpl_size | window_xxyy[4], |
| const cpl_image * | image, | ||
| int | allow_window_NULL, | ||
| cpl_size * | img_size_xy, | ||
| cpl_size * | window_size_xy, | ||
| cpl_size * | buffer_start_xy | ||
| ) |
Check window coordinates with the corresponding image.
| window_xxyy | Coordinate buffer of the form {x1a, x1b, y1a, y1b}, minimum/maximum order is irrelevant |
| image | Image (FITS convention) |
| allow_window_NULL | If !0, then no error is set if (window==NULL) |
| img_size_xy | Buffer of size 2, to which the image size [x, y] is put out, can be NULL |
| window_size_xy | Buffer of size 2, to which the window size is determined and written, can be NULL |
| buffer_start_xy | Buffer of size 2, to which the lower left window indices are written, starting at 0 (not FITS), can be NULL |
| cpl_error_code clipm_priv_checks_window_minmax | ( | const int | window_xxyy[4], |
| int | ndims, | ||
| int | allow_window_NULL | ||
| ) |
Check coordinates for min/max condition.
| window_xxyy | Coordinate buffer containing [xmin, xmax, ymin, ymax, zmin, zmax,...], its size must be 2*ndims |
| ndims | Number of dimensions |
| allow_window_NULL | If > 0, then no error is set if (window==NULL) |
1.8.5