ifw-odp 5.1.1
 
Loading...
Searching...
No Matches
clipm_priv_checks.h
Go to the documentation of this file.
1
5
6#ifndef CLIPM_PRIV_CHECKS_H
7#define CLIPM_PRIV_CHECKS_H
8
9/*-----------------------------------------------------------------------------
10 Includes
11 -----------------------------------------------------------------------------*/
12
13#include <cpl.h>
14
15/*-----------------------------------------------------------------------------
16 Declaration Block
17 -----------------------------------------------------------------------------*/
18
19#ifdef __cplusplus
20extern "C" {
21#endif
22
23/*-----------------------------------------------------------------------------
24 Prototypes
25 -----------------------------------------------------------------------------*/
26
28 const cpl_size window_xxyy[4],
29 const cpl_image *image);
31 const cpl_size window_xxyy[4],
32 const cpl_image *image,
33 int allow_window_NULL,
34 cpl_size *img_size_xy,
35 cpl_size *window_size_xy,
36 cpl_size *buffer_start_xy);
38 const int window_xxyy[4],
39 int ndims,
40 int allow_window_NULL);
42 cpl_size window_xxyy[4],
43 cpl_size xsize,
44 cpl_size ysize,
45 cpl_size min_wsize);
47 cpl_size window_xxyy[4],
48 const cpl_image *image,
49 cpl_size min_wsize);
51 cpl_size window_xxyy[4],
52 const cpl_size *ref_window,
53 cpl_size min_wsize);
55 const cpl_image *img1,
56 const cpl_image *img2,
57 cpl_type *type,
58 cpl_size *xsize,
59 cpl_size *ysize);
60cpl_error_code clipm_priv_checks_imtype_any(
61 const cpl_image *image,
62 cpl_type *out_type);
64 const cpl_image *image,
65 cpl_type *out_type);
66
67/*----------------------------------------------------------------------------*/
68
69#ifdef __cplusplus
70} /* extern "C" */
71#endif
72
73#endif /* CLIPM_PRIV_CHECKS_H */
cpl_error_code clipm_priv_checks_window_guarantee_image(cpl_size window_xxyy[4], const cpl_image *image, cpl_size min_wsize)
Cut window coordinates to a FITS image range if outside, expand if necessary.
Definition clipm_priv_checks.c:410
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.
Definition clipm_priv_checks.c:524
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.
Definition clipm_priv_checks.c:653
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.
Definition clipm_priv_checks.c:66
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.
Definition clipm_priv_checks.c:607
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.
Definition clipm_priv_checks.c:144
cpl_error_code clipm_priv_checks_window_guarantee(cpl_size window_xxyy[4], cpl_size xsize, cpl_size ysize, cpl_size min_wsize)
Cut window coordinates to a FITS image range if outside, expand if necessary.
Definition clipm_priv_checks.c:318
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.
Definition clipm_priv_checks.c:260
cpl_error_code clipm_priv_checks_window_guarantee_window(cpl_size window_xxyy[4], const cpl_size *ref_window, cpl_size min_wsize)
Cut window coordinates to an existing reference window range, expand if necessary.
Definition clipm_priv_checks.c:455