ifw-odp 5.1.1
 
Loading...
Searching...
No Matches
cpl_image_defs.h
Go to the documentation of this file.
1
5
6/* $Id: cpl_image_defs.h 241707 2013-05-03 15:58:53Z cgarcia $
7 *
8 * This file is part of the ESO Common Pipeline Library
9 * Copyright (C) 2001-2008 European Southern Observatory
10 *
11 * This program is free software; you can redistribute it and/or modify
12 * it under the terms of the GNU General Public License as published by
13 * the Free Software Foundation; either version 2 of the License, or
14 * (at your option) any later version.
15 *
16 * This program is distributed in the hope that it will be useful,
17 * but WITHOUT ANY WARRANTY; without even the implied warranty of
18 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19 * GNU General Public License for more details.
20 *
21 * You should have received a copy of the GNU General Public License
22 * along with this program; if not, write to the Free Software
23 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
24 */
25
26/*
27 * $Author: cgarcia $
28 * $Date: 2013-05-03 15:58:53 +0000 (Fri, 03 May 2013) $
29 * $Revision: 241707 $
30 * $Name: $
31 */
32
33#ifndef CPL_IMAGE_DEFS_H
34#define CPL_IMAGE_DEFS_H
35
36/*-----------------------------------------------------------------------------
37 Includes
38 -----------------------------------------------------------------------------*/
39
40#include "cpl_image.h"
41#include "cpl_type.h"
42#include "cpl_mask.h"
43
44CPL_BEGIN_DECLS
45
46/*-----------------------------------------------------------------------------
47 Define
48 -----------------------------------------------------------------------------*/
49
50#define CPL_CLASS_NONE 0
51#define CPL_CLASS_DOUBLE 1
52#define CPL_CLASS_FLOAT 2
53#define CPL_CLASS_INT 3
54#define CPL_CLASS_DOUBLE_COMPLEX 4
55#define CPL_CLASS_FLOAT_COMPLEX 5
56
57/*-----------------------------------------------------------------------------
58 New types
59 -----------------------------------------------------------------------------*/
60
62 /* Size of the image in x and y */
63 cpl_size nx, ny;
64 /* Type of the pixels used for the cpl_image */
65 cpl_type type;
66 /* Pointer to pixel buffer as a 1d buffer */
67 void * pixels;
68 /* Bad Pixels mask */
69 cpl_mask * bpm;
70};
71
72CPL_END_DECLS
73
74#endif
75
Definition cpl_image_defs.h:61
cpl_size ny
Definition cpl_image_defs.h:63
void * pixels
Definition cpl_image_defs.h:67
cpl_type type
Definition cpl_image_defs.h:65
cpl_mask * bpm
Definition cpl_image_defs.h:69
cpl_size nx
Definition cpl_image_defs.h:63