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