Particle Identification and Tracking
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
iden
include
image_stack.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
40
#ifndef IMAGE_STACK
41
#define IMAGE_STACK
42
43
#include "
image_base.h
"
44
#include "
mm_md_parser.h
"
45
namespace
iden
46
{
47
48
class
Image_stack
:
public
Image_base
49
{
50
public
:
51
Image_stack
(std::string
fname
);
52
~Image_stack
();
53
void
select_plane
(
unsigned
int
plane);
54
const
void
*
get_plane_pixels
()
const
;
55
utilities::Md_store
*
get_plane_md
(
const
MD_parser
& parser)
const
;
56
utilities::Tuple<unsigned int,2>
get_plane_dims
()
const
;
57
WORD
get_scan_step
()
const
;
58
int
get_frame_count
()
const
;
59
PIX_TYPE
get_pixel_type
()
const
;
60
66
void
initialize
();
70
void
deinitialize
();
71
72
73
private
:
74
std::string
fname_
;
75
unsigned
int
cur_plane_
;
76
77
bool
stack_open_
;
78
79
fipMultiPage
src_
;
80
81
fipImage
image_
;
82
83
84
bool
convert_to_grey_
;
85
86
PIX_TYPE
pix_type_
;
87
91
bool
to_grey
();
92
93
94
};
95
96
97
98
99
100
}
101
#endif
Generated on Tue Sep 10 2013 17:07:21 for Particle Identification and Tracking by
1.8.4