segset.hh
Go to the documentation of this file.
/* -*- mia-c++ -*-
*
* This file is part of MIA - a toolbox for medical image analysis
* Copyright (c) Leipzig, Madrid 1999-2017 Gert Wollny
*
* MIA is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with MIA; if not, see <http://www.gnu.org/licenses/>.
*
*/
#ifndef SegSet_h
#define SegSet_h
#include <mia/core/ioplugin.hh>
#include <mia/core/xmlinterface.hh>
#include <mia/2d/segframe.hh>
#include <mia/2d/boundingbox.hh>
NS_MIA_BEGIN
class EXPORT_2D CSegSet: public CIOData
{
public:
typedef std::vector<CSegFrame> Frames;
CSegSet();
CSegSet(const std::string& src_filename);
CSegSet(const CXMLDocument& node);
CSegSet(int version);
void add_frame(const CSegFrame& frame);
CXMLDocument write() const;
const Frames& get_frames()const;
Frames& get_frames();
const C2DBoundingBox get_boundingbox() const;
void rename_base(const std::string& new_base);
CSegSet shift_and_rename(size_t skip, const C2DFVector& shift, const std::string& new_filename_base)const;
void transform(const C2DTransformation& t);
void set_RV_peak(int peak);
int get_RV_peak() const;
void set_LV_peak(int peak);
int get_LV_peak() const;
int get_preferred_reference() const;
void set_preferred_reference(int value);
private:
void read(const CXMLDocument& node);
Frames m_frames;
int m_RV_peak;
int m_LV_peak;
int m_preferred_reference;
int m_version;
};
NS_MIA_END
#endif
C2DFVector
T2DVector< float > C2DFVector
float valued 2D vector
Definition 2d/vector.hh:534
boundingbox.hh
C2DBoundingBox
2D axis orthothogonal bounding box.
Definition boundingbox.hh:39
C2DTransformation
This is the generic base class for 2D transformations.
Definition 2d/transform.hh:46
CIOData
helper class to derive from for data that can be loaded and stored to a disk.
Definition iodata.hh:37
CSegFrame
A class to represent one segmented frame in a heart perfusion series.
Definition segframe.hh:40
CSegSet::rename_base
void rename_base(const std::string &new_base)
CSegSet::CSegSet
CSegSet(const CXMLDocument &node)
CSegSet::set_RV_peak
void set_RV_peak(int peak)
CSegSet::add_frame
void add_frame(const CSegFrame &frame)
CSegSet::transform
void transform(const C2DTransformation &t)
CSegSet::get_frames
Frames & get_frames()
CSegSet::CSegSet
CSegSet(int version)
CSegSet::CSegSet
CSegSet()
Standard constructor.
CSegSet::get_frames
const Frames & get_frames() const
CSegSet::set_LV_peak
void set_LV_peak(int peak)
CSegSet::Frames
std::vector< CSegFrame > Frames
convenience typedef for the frames comprising a segmentation set
Definition segset.hh:44
CSegSet::get_boundingbox
const C2DBoundingBox get_boundingbox() const
CSegSet::CSegSet
CSegSet(const std::string &src_filename)
CSegSet::get_RV_peak
int get_RV_peak() const
CSegSet::get_preferred_reference
int get_preferred_reference() const
CSegSet::get_LV_peak
int get_LV_peak() const
CSegSet::set_preferred_reference
void set_preferred_reference(int value)
CSegSet::write
CXMLDocument write() const
CSegSet::shift_and_rename
CSegSet shift_and_rename(size_t skip, const C2DFVector &shift, const std::string &new_filename_base) const
CXMLDocument
facate for an XML document
Definition xmlinterface.hh:137
EXPORT_2D
#define EXPORT_2D
Definition defines2d.hh:37
NS_MIA_BEGIN
#define NS_MIA_BEGIN
conveniance define to start the mia namespace
Definition defines.hh:33
NS_MIA_END
#define NS_MIA_END
conveniance define to end the mia namespace
Definition defines.hh:36
ioplugin.hh
segframe.hh
xmlinterface.hh