Main Page
Related Pages
Modules
Data Structures
Files
File List
Globals
mia
2d
SegSet.hh
Go to the documentation of this file.
1
/* -*- mia-c++ -*-
2
*
3
* This file is part of MIA - a toolbox for medical image analysis
4
* Copyright (c) Leipzig, Madrid 1999-2013 Gert Wollny
5
*
6
* MIA is free software; you can redistribute it and/or modify
7
* it under the terms of the GNU General Public License as published by
8
* the Free Software Foundation; either version 3 of the License, or
9
* (at your option) any later version.
10
*
11
* This program is distributed in the hope that it will be useful,
12
* but WITHOUT ANY WARRANTY; without even the implied warranty of
13
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14
* GNU General Public License for more details.
15
*
16
* You should have received a copy of the GNU General Public License
17
* along with MIA; if not, see <http://www.gnu.org/licenses/>.
18
*
19
*/
20
21
#ifndef SegSet_h
22
#define SegSet_h
23
24
#include <
mia/2d/SegFrame.hh
>
25
#include <
mia/2d/BoundingBox.hh
>
26
27
namespace
xmlpp {
28
class
Document;
29
};
30
31
NS_MIA_BEGIN
32
40
class
EXPORT_2D
CSegSet
{
41
public
:
43
typedef
std::vector<CSegFrame>
Frames
;
44
46
CSegSet
();
51
CSegSet
(
const
std::string& src_filename);
52
57
CSegSet
(
const
xmlpp::Document& node);
58
63
void
add_frame(
const
CSegFrame
& frame);
64
69
xmlpp::Document *write()
const
;
70
71
73
const
Frames
& get_frames()
const
;
74
79
Frames
& get_frames();
80
84
const
C2DBoundingBox
get_boundingbox()
const
;
85
90
void
rename_base(
const
std::string& new_base);
91
92
101
CSegSet
shift_and_rename(
size_t
skip,
const
C2DFVector
& shift,
const
std::string& new_filename_base)
const
;
102
108
void
transform(
const
C2DTransformation
& t);
109
110
115
void
set_RV_peak(
int
peak);
116
120
int
get_RV_peak()
const
;
121
126
void
set_LV_peak(
int
peak);
127
131
int
get_LV_peak()
const
;
132
138
int
get_preferred_reference()
const
;
139
140
145
void
set_preferred_reference(
int
value);
146
147
private
:
148
void
read(
const
xmlpp::Document& node);
149
Frames
m_frames;
150
int
m_RV_peak;
151
int
m_LV_peak;
152
int
m_preferred_reference;
153
int
m_version;
154
};
155
156
157
NS_MIA_END
158
159
#endif
Generated on Tue Oct 15 2013 13:56:37 by
1.8.4