segstar.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 SegStar_h
#define SegStar_h
#include <mia/2d/segpoint.hh>
#include <vector>
NS_MIA_BEGIN
class EXPORT_2D CSegStar
{
public:
CSegStar();
CSegStar(const CSegPoint2D& center, float r,
const CSegPoint2D& d1, const CSegPoint2D& d2, const CSegPoint2D& d3);
CSegStar(const CXMLElement& node);
void write(CXMLElement& node) const;
void shift(const C2DFVector& delta);
void transform(const C2DTransformation& t);
void inv_transform(const C2DTransformation& t);
CSegPoint2D m_center;
float m_radius;
CSegPoint2D m_directions[3];
private:
void recenter_rays();
void reeval_center();
};
NS_MIA_END
#endif
C2DFVector
T2DVector< float > C2DFVector
float valued 2D vector
Definition 2d/vector.hh:534
C2DTransformation
This is the generic base class for 2D transformations.
Definition 2d/transform.hh:46
CSegPoint2D
a point in a 2D segmentation shape
Definition segpoint.hh:41
CSegStar::inv_transform
void inv_transform(const C2DTransformation &t)
CSegStar::CSegStar
CSegStar()
CSegStar::m_center
CSegPoint2D m_center
center of the circle approximating the outer wall of the LV myocardium
Definition segstar.hh:89
CSegStar::transform
void transform(const C2DTransformation &t)
CSegStar::m_radius
float m_radius
radius of the circle approximating the outer wall of the LV myocardium
Definition segstar.hh:91
CSegStar::CSegStar
CSegStar(const CXMLElement &node)
CSegStar::m_directions
CSegPoint2D m_directions[3]
the ray directions to define the star
Definition segstar.hh:93
CSegStar::write
void write(CXMLElement &node) const
CSegStar::shift
void shift(const C2DFVector &delta)
CSegStar::CSegStar
CSegStar(const CSegPoint2D &center, float r, const CSegPoint2D &d1, const CSegPoint2D &d2, const CSegPoint2D &d3)
CXMLElement
This class implements a facade for the xml Element.
Definition xmlinterface.hh:50
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
segpoint.hh