plastimatch
Loading...
Searching...
No Matches
proj_image.h
Go to the documentation of this file.
1/* -----------------------------------------------------------------------
2 See COPYRIGHT.TXT and LICENSE.TXT for copyright and license information
3 ----------------------------------------------------------------------- */
4#ifndef _proj_image_h_
5#define _proj_image_h_
6
7#include "plmbase_config.h"
8#include <string>
9
10class Proj_image;
11class Proj_matrix;
12
14public:
15 Proj_image (void);
16 Proj_image (const char* img_filename, const char* mat_filename);
17 Proj_image (const std::string& img_filename,
18 const std::string& mat_filename = "");
19 Proj_image (const char* img_filename, const double xy_offset[2]);
20 ~Proj_image (void);
21
22public:
23 int dim[2]; /* dim[0] = cols, dim[1] = rows */
24 double xy_offset[2]; /* Offset of center pixel */
25 Proj_matrix *pmat; /* Geometry of panel and source */
26 float* img; /* Pixel data */
27
28public:
29 void clear ();
30 bool have_image ();
31 void init ();
32 void save (const char *img_filename, const char *mat_filename);
33 void load (const std::string& img_filename, std::string mat_filename = "");
34 void load_pfm (const char* img_filename, const char* mat_filename);
35 void load_raw (const char* img_filename, const char* mat_filename);
36 void load_hnd (const char* img_filename);
37 void set_xy_offset (const double xy_offset[2]);
38
39 void debug_header ();
40 void stats ();
41};
42
44PLMBASE_C_API void proj_image_create_img (Proj_image *proj, int dim[2]);
45
46#endif
Definition proj_image.h:13
void set_xy_offset(const double xy_offset[2])
Proj_matrix * pmat
Definition proj_image.h:25
float * img
Definition proj_image.h:26
Definition proj_matrix.h:10
#define PLMBASE_API
Definition plmbase_config.h:19
#define PLMBASE_C_API
Definition plmbase_config.h:18
EXTERNC void proj_image_create_img(Proj_image *proj, int dim[2])
Definition proj_image.cxx:396
EXTERNC void proj_image_create_pmat(Proj_image *proj)
Definition proj_image.cxx:389