gicube.h
00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028 #ifndef GICUBE_H
00029 #define GICUBE_H
00030
00031 #include <cxtypes.h>
00032
00033 #include <cpl_matrix.h>
00034 #include <cpl_image.h>
00035 #include <cpl_propertylist.h>
00036
00037
00038 #ifdef __cplusplus
00039 extern "C" {
00040 #endif
00041
00042
00043 typedef struct GiCube GiCube;
00044
00045
00046 GiCube* giraffe_cube_new(void);
00047 GiCube* giraffe_cube_create(cxsize width, cxsize height, cxsize depth,
00048 cxdouble* data);
00049 void giraffe_cube_delete(GiCube* self);
00050
00051 cxsize giraffe_cube_get_width(const GiCube* self);
00052 cxsize giraffe_cube_get_height(const GiCube* self);
00053 cxsize giraffe_cube_get_depth(const GiCube* self);
00054
00055 cxsize giraffe_cube_get_size(const GiCube* self);
00056 cxint giraffe_cube_set_size(GiCube* self, cxsize width, cxsize height,
00057 cxsize depth);
00058
00059 cxdouble* giraffe_cube_get_data(const GiCube* self);
00060
00061 cxbool giraffe_cube_has_xaxis(const GiCube* self);
00062 cxbool giraffe_cube_has_yaxis(const GiCube* self);
00063 cxbool giraffe_cube_has_zaxis(const GiCube* self);
00064 cxbool giraffe_cube_has_wcs(const GiCube* self);
00065
00066 cxint giraffe_cube_get_xaxis(const GiCube* self, cxdouble* start,
00067 cxdouble* step);
00068 cxint giraffe_cube_get_yaxis(const GiCube* self, cxdouble* start,
00069 cxdouble* step);
00070 cxint giraffe_cube_get_zaxis(const GiCube* self, cxdouble* start,
00071 cxdouble* step);
00072
00073 cxint giraffe_cube_set_xaxis(GiCube* self, cxdouble start, cxdouble step);
00074 cxint giraffe_cube_set_yaxis(GiCube* self, cxdouble start, cxdouble step);
00075 cxint giraffe_cube_set_zaxis(GiCube* self, cxdouble start, cxdouble step);
00076
00077 void giraffe_cube_clear_wcs(GiCube* self);
00078
00079 cxint giraffe_cube_set_wcs(GiCube* self, const cpl_propertylist* axes,
00080 const cpl_matrix* transformation);
00081
00082 cxint giraffe_cube_sqrt(GiCube* self);
00083
00084 cpl_image* giraffe_cube_integrate(const GiCube* self, cxdouble start,
00085 cxdouble end);
00086
00087 cxint giraffe_cube_save(const GiCube* self, cpl_propertylist* properties,
00088 const cxchar* filename, cxcptr data);
00089
00090
00091 #ifdef __cplusplus
00092 }
00093 #endif
00094
00095 #endif