ifw-odp 5.1.1
 
Loading...
Searching...
No Matches
clipm_priv_image.h
Go to the documentation of this file.
1
5
6#ifndef CLIPM_PRIV_IMAGE_H
7#define CLIPM_PRIV_IMAGE_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
27cpl_image *clipm_priv_image_wrap( const cpl_size *size,
28 cpl_type type,
29 void *data);
30
32 const cpl_image *image,
33 double x,
34 double y,
35 cpl_size *out_x,
36 cpl_size *out_y);
37
38const cpl_binary *clipm_priv_image_bpm_get_if_exist(
39 const cpl_image *image);
40
41cpl_error_code clipm_priv_image_bpm_or( cpl_image *mod_image,
42 const cpl_image *ref_image);
43
45 cpl_image *image,
46 cpl_size left,
47 cpl_size right,
48 cpl_size lower,
49 cpl_size upper);
50
52 cpl_image *image,
53 const cpl_size *window_xxyy,
54 double limit);
55
57 const cpl_image *image,
58 const cpl_size *window_xxyy,
59 cpl_size *out_ngood);
60
62 const cpl_image *image,
63 const cpl_size *window_xxyy,
64 int allow_window_NULL,
65 cpl_size *img_size_xy,
66 cpl_size *window_size_xy,
67 cpl_size *buffer_start_xy,
68 cpl_type *type,
69 const void **data_start,
70 const cpl_binary
71 **badp_start);
72
74 const cpl_image *input,
75 const cpl_size *window_xxyy,
76 cpl_type outtype);
77
79 const cpl_image *input,
80 const cpl_size *window_xxyy);
81
82cpl_error_code clipm_priv_image_fill( cpl_image *image,
83 const cpl_size *window_xxyy,
84 double value);
85
86cpl_error_code clipm_priv_image_fill_circle(
87 cpl_image *img_modified,
88 double centre_xy[2],
89 double radius,
90 double brightness,
91 int anti_alias,
92 int additive);
93
95 cpl_image *image,
96 const cpl_matrix *points,
97 double brightness,
98 int anti_alias,
99 int additive);
100
102 cpl_image *image,
103 const double centre_xy[2],
104 double angle,
105 const double size_lw[2],
106 double brightness,
107 int anti_alias,
108 int additive);
109
110cpl_error_code clipm_priv_image_save_debug(const cpl_image *img,
111 const char *filename);
112
113void clipm_priv_image_null( cpl_image **i);
114
115/*----------------------------------------------------------------------------*/
116
117#ifdef __cplusplus
118} /* extern "C" */
119#endif
120
121#endif /* CLIPM_PRIV_IMAGE_H */
cpl_error_code clipm_priv_image_fill_circle(cpl_image *img_modified, double centre_xy[2], double radius, double brightness, int anti_alias, int additive)
Fill a circle.
Definition clipm_priv_image.c:1613
double clipm_priv_image_get_nearest_good(const cpl_image *image, double x, double y, cpl_size *out_x, cpl_size *out_y)
Return closest pixel which is not flagged as bad.
Definition clipm_priv_image.c:419
cpl_error_code clipm_priv_image_get_data_const(const cpl_image *image, const cpl_size *window_xxyy, int allow_window_NULL, cpl_size *img_size_xy, cpl_size *window_size_xy, cpl_size *buffer_start_xy, cpl_type *type, const void **data_start, const cpl_binary **badp_start)
Get image and window sizes, and data pointers to image (window).
Definition clipm_priv_image.c:1066
const cpl_binary * clipm_priv_image_bpm_get_if_exist(const cpl_image *image)
Return bad pixel mask data, if there are bad pixels, otherwise NULL.
Definition clipm_priv_image.c:572
cpl_error_code clipm_priv_image_fill(cpl_image *image, const cpl_size *window_xxyy, double value)
Apply a value to all pixels inside the image or a window of the image.
Definition clipm_priv_image.c:1487
cpl_image * clipm_priv_image_extract_cast(const cpl_image *input, const cpl_size *window_xxyy, cpl_type outtype)
Extract an image window and cast into a new image.
Definition clipm_priv_image.c:1168
cpl_vector * clipm_priv_image_copy_good_data_vector(const cpl_image *image, const cpl_size *window_xxyy, cpl_size *out_ngood)
Copy all non-bad pixels into a new vector of appropriate size.
Definition clipm_priv_image.c:895
cpl_image * clipm_priv_image_extract_round(const cpl_image *input, const cpl_size *window_xxyy)
Extract an image window and round to integer.
Definition clipm_priv_image.c:1325
cpl_image * clipm_priv_image_wrap(const cpl_size *size, cpl_type type, void *data)
Create an image by wrapping it around an existing data buffer.
Definition clipm_priv_image.c:344
cpl_error_code clipm_priv_image_bpm_reject_above(cpl_image *image, const cpl_size *window_xxyy, double limit)
Reject all pixels equal to or greater than a limit.
Definition clipm_priv_image.c:765
cpl_error_code clipm_priv_image_bpm_or(cpl_image *mod_image, const cpl_image *ref_image)
Perform a logical OR between the bad pixel masks of 2 images.
Definition clipm_priv_image.c:612
cpl_error_code clipm_priv_image_save_debug(const cpl_image *img, const char *filename)
Write an image to disk and print a message.
Definition clipm_priv_image.c:2122
cpl_error_code clipm_priv_image_bpm_border_bad(cpl_image *image, cpl_size left, cpl_size right, cpl_size lower, cpl_size upper)
Mark the border of an image as bad.
Definition clipm_priv_image.c:666
void clipm_priv_image_null(cpl_image **i)
Delete a CPL image object and set the pointer to NULL.
Definition clipm_priv_image.c:2213
cpl_error_code clipm_priv_image_fill_rectangle(cpl_image *image, const double centre_xy[2], double angle, const double size_lw[2], double brightness, int anti_alias, int additive)
Fill a rectangle.
Definition clipm_priv_image.c:2052
cpl_error_code clipm_priv_image_fill_polygon(cpl_image *image, const cpl_matrix *points, double brightness, int anti_alias, int additive)
Fill a polygon.
Definition clipm_priv_image.c:1828