ifw-odp  2.0.0-alpha
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
clipm_image_display.h
Go to the documentation of this file.
1 
2 /*********************************************************************
3  * E.S.O. - VLT project
4  *
5  * "@(#) $Id: clipm_image_display.h 262700 2014-12-08 19:16:23Z cgarcia $"
6  *
7  * Tool functions for the display of images
8  *
9  * who when what
10  * -------- ---------- ----------------------------------------------
11  * hlorch 2007-06-28 created
12  */
13 
14 #ifndef CLIPM_IMAGE_DISPLAY_H
15 #define CLIPM_IMAGE_DISPLAY_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  Types
33  -----------------------------------------------------------------------------*/
34 
45 typedef unsigned int clipm_fill_mode;
46 
48 extern const clipm_fill_mode CLIPM_FILL_VALUE;
50 extern const clipm_fill_mode CLIPM_FILL_FOREGROUND;
52 extern const clipm_fill_mode CLIPM_FILL_BACKGROUND;
54 extern const clipm_fill_mode CLIPM_FILL_BWRASTER;
56 extern const clipm_fill_mode CLIPM_FILL_HSTRIPES;
58 extern const clipm_fill_mode CLIPM_FILL_VSTRIPES;
60 extern const clipm_fill_mode CLIPM_FILL_CAROS;
62 extern const clipm_fill_mode CLIPM_FILL_DCAROS;
64 extern const clipm_fill_mode CLIPM_FILL_DSTRIPES;
66 extern const clipm_fill_mode CLIPM_FILL_DSTRIPES2;
67 
70 /*-----------------------------------------------------------------------------
71  Prototypes
72  -----------------------------------------------------------------------------*/
73 
75  const cpl_image *input,
76  cpl_size x_input_position,
77  cpl_size y_input_position,
78  cpl_size x_segmentsize,
79  cpl_size y_segmentsize,
80  cpl_size x_gapwidth,
81  cpl_size y_gapwidth,
82  int flag_gaps_bad,
83  clipm_fill_mode fill_pattern,
84  double fill_brightness);
85 
86 /*----------------------------------------------------------------------------*/
87 
88 #ifdef __cplusplus
89 } /* extern "C" */
90 #endif
91 
92 #endif /* CLIPM_IMAGE_DISPLAY_H */
const clipm_fill_mode CLIPM_FILL_FOREGROUND
Fill with foreground.
Definition: clipm_image_display.c:48
const clipm_fill_mode CLIPM_FILL_BWRASTER
Fill with raster of foreground and background.
Definition: clipm_image_display.c:50
const clipm_fill_mode CLIPM_FILL_DSTRIPES2
Fill with 135` diagonal stripes of foreground over background.
Definition: clipm_image_display.c:54
const clipm_fill_mode CLIPM_FILL_HSTRIPES
Fill with horizontal stripes of foreground and background.
Definition: clipm_image_display.c:51
const clipm_fill_mode CLIPM_FILL_DSTRIPES
Fill with 45` diagonal stripes of foreground over background.
Definition: clipm_image_display.c:53
const clipm_fill_mode CLIPM_FILL_VSTRIPES
Fill with vertical stripes of foreground and background.
Definition: clipm_image_display.c:52
const clipm_fill_mode CLIPM_FILL_CAROS
Fill with caros.
Definition: clipm_image_display.c:55
cpl_image * clipm_image_display_insert_gaps(const cpl_image *input, cpl_size x_input_position, cpl_size y_input_position, cpl_size x_segmentsize, cpl_size y_segmentsize, cpl_size x_gapwidth, cpl_size y_gapwidth, int flag_gaps_bad, clipm_fill_mode fill_pattern, double fill_brightness)
Insert horizontal and vertical gaps into an image.
Definition: clipm_image_display.c:204
unsigned int clipm_fill_mode
Fill mode type.
Definition: clipm_image_display.h:45
const clipm_fill_mode CLIPM_FILL_VALUE
Fill with given value.
Definition: clipm_image_display.c:47
const clipm_fill_mode CLIPM_FILL_BACKGROUND
Fill with background.
Definition: clipm_image_display.c:49
const clipm_fill_mode CLIPM_FILL_DCAROS
Fill with diagonal caros.
Definition: clipm_image_display.c:56