Particle Identification and Tracking
image_base.h
Go to the documentation of this file.
1 //Copyright 2010 Thomas A Caswell
2 //tcaswell@uchicago.edu
3 //http://jfi.uchicago.edu/~tcaswell
4 //
5 //This program 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 3 of the License, or (at
8 //your option) any later version.
9 //
10 //This program is distributed in the hope that it will be useful, but
11 //WITHOUT ANY WARRANTY; without even the implied warranty of
12 //MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 //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, see <http://www.gnu.org/licenses>.
17 //
18 //Additional permission under GNU GPL version 3 section 7
19 //
20 //If you modify this Program, or any covered work, by linking or
21 //combining it with MATLAB (or a modified version of that library),
22 //containing parts covered by the terms of MATLAB User License, the
23 //licensors of this Program grant you additional permission to convey
24 //the resulting work.
25 //
26 //If you modify this Program, or any covered work, by linking or
27 //combining it with IPP (or a modified version of that library),
28 //containing parts covered by the terms of End User License Agreement
29 //for the Intel(R) Software Development Products, the licensors of
30 //this Program grant you additional permission to convey the resulting
31 //work.
32 //
33 //If you modify this Program, or any covered work, by linking or
34 //combining it with FreeImage (or a modified version of that library),
35 //containing parts covered by the terms of End User License Agreement
36 //for FreeImage Public License, the licensors of
37 //this Program grant you additional permission to convey the resulting
38 //work.
39 #ifndef IMAGE_BASE
40 #define IMAGE_BASE
41 
42 #include <string>
43 #include "FreeImagePlus.h"
44 
45 namespace utilities
46 {
47 template<class T,int length>
48 class Tuple;
49 
50 
51 class Md_store;
52 }
53 
54 namespace iden
55 {
56 class MD_parser;
60 typedef enum PIX_TYPE
61  {
62  U16=0,
63  U8,
64  S16,
65  F32,
67  } PIX_TYPE;
68 
75 {
76 public:
77 
81  Image_base() { };
85  virtual ~ Image_base(){};
86 
90  virtual void select_plane(unsigned int plane) = 0;
91 
99  virtual const void * get_plane_pixels() const = 0;
100 
101 
102 
107  virtual utilities::Md_store * get_plane_md(const MD_parser & parser) const = 0;
108 
113 
117  virtual WORD get_scan_step() const = 0;
118 
122  virtual int get_frame_count() const = 0;
123 
127  virtual PIX_TYPE get_pixel_type() const = 0;
128 
129 };
130 
131 
132 }
133 #endif