X-shooter Pipeline Reference Manual 3.8.15
xsh_data_image_3d.h
Go to the documentation of this file.
1/* *
2 * This file is part of the ESO X-shooter Pipeline *
3 * Copyright (C) 2006 European Southern Observatory *
4 * *
5 * This library is free software; you can redistribute it and/or modify *
6 * it under the terms of the GNU General Public License as published by *
7 * the Free Software Foundation; either version 2 of the License, or *
8 * (at your option) any later version. *
9 * *
10 * This program is distributed in the hope that it will be useful, *
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of *
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
13 * GNU General Public License for more details. *
14 * *
15 * You should have received a copy of the GNU General Public License *
16 * along with this program; if not, write to the Free Software *
17 * Foundation, 51 Franklin St, Fifth Floor, Boston, MA 02111-1307 USA *
18 * */
19
20/*
21 * $Author: amodigli $
22 * $Date: 2009-09-27 10:37:36 $
23 * $Revision: 1.2 $
24*/
25
26#if !defined(XSH_DATA_IMAGE_3D_H)
27#define XSH_DATA_IMAGE_3D_H
28
29#include <xsh_data_instrument.h>
30
31#include <cpl.h>
32#include <xsh_error.h>
33
34
35typedef struct {
36 int nx, ny, nz ;
37
38 cpl_type type ;
39
40 void * pixels ;
41
43
44
45xsh_image_3d * xsh_image_3d_new( int nx, int ny, int nz, cpl_type type ) ;
46xsh_image_3d * xsh_image_3d_load( const char * filename, cpl_type type,
47 int xtnum ) ;
48
49cpl_error_code xsh_image_3d_insert( xsh_image_3d * img_3d, cpl_image * img,
50 int iz ) ;
51cpl_error_code xsh_image_3d_save( xsh_image_3d * img_3d,
52 const char * fname,
53 cpl_propertylist * header,
54 unsigned mode ) ;
55void xsh_image_3d_free( xsh_image_3d ** img_3d ) ;
56
57void * xsh_image_3d_get_data( xsh_image_3d * img_3d ) ;
61cpl_type xsh_image_3d_get_type( xsh_image_3d * img_3d ) ;
62
63#endif
static char mode[32]
void * xsh_image_3d_get_data(xsh_image_3d *img_3d)
cpl_error_code xsh_image_3d_insert(xsh_image_3d *img_3d, cpl_image *img, int iz)
int xsh_image_3d_get_size_x(xsh_image_3d *img_3d)
int xsh_image_3d_get_size_y(xsh_image_3d *img_3d)
int xsh_image_3d_get_size_z(xsh_image_3d *img_3d)
void xsh_image_3d_free(xsh_image_3d **img_3d)
cpl_error_code xsh_image_3d_save(xsh_image_3d *img_3d, const char *fname, cpl_propertylist *header, unsigned mode)
cpl_type xsh_image_3d_get_type(xsh_image_3d *img_3d)
xsh_image_3d * xsh_image_3d_new(int nx, int ny, int nz, cpl_type type)
xsh_image_3d * xsh_image_3d_load(const char *filename, cpl_type type, int xtnum)
int nx
int ny