18 #ifndef __itkKLMSegmentationBorder_h
19 #define __itkKLMSegmentationBorder_h
25 #include "vnl/vnl_math.h"
26 #include "vnl/vnl_vector.h"
41 template<
typename TBorder >
68 double v1 = vnl_math_max(
69 static_cast< double >(
m_Pointer->GetRegion1()->GetRegionBorderSize() ),
70 static_cast< double >(
m_Pointer->GetRegion2()->GetRegionBorderSize() ) );
73 double v2 = vnl_math_max(
74 static_cast< double >( rhs.
m_Pointer->GetRegion1()->GetRegionBorderSize() ),
75 static_cast< double >( rhs.
m_Pointer->GetRegion2()->GetRegionBorderSize() ) );
99 double v1 = vnl_math_max(
100 static_cast< double >(
m_Pointer->GetRegion1()->GetRegionBorderSize() ),
101 static_cast< double >(
m_Pointer->GetRegion2()->GetRegionBorderSize() ) );
103 double v2 = vnl_math_max(
104 static_cast< double >( rhs->
m_Pointer->GetRegion1()->GetRegionBorderSize() ),
105 static_cast< double >( rhs->
m_Pointer->GetRegion2()->GetRegionBorderSize() ) );
166 itkSetMacro(Lambda,
double);
167 itkGetConstReferenceMacro(Lambda,
double);
184 virtual void PrintSelf(std::ostream & os,
Indent indent)
const ITK_OVERRIDE;
virtual void PrintSelf(std::ostream &os, Indent indent) const ITK_OVERRIDE
Base class for KLMSegmentationRegion object.
void SetRegion1(KLMSegmentationRegion *Region1)
Light weight base class for most itk classes.
SegmentationBorder Superclass
KLMSegmentationRegion * m_Region1
bool operator>(const KLMDynamicBorderArray< TBorder > &rhs) const
void SetRegion2(KLMSegmentationRegion *Region2)
SmartPointer< const Self > ConstPointer
KLMSegmentationRegion * GetRegion1()
KLMSegmentationRegion * GetRegion2()
bool operator>(const KLMDynamicBorderArray< TBorder > *rhs) const
void operator=(const Self &)
SmartPointer< Self > Pointer
KLMSegmentationRegion * m_Region2
Base class for KLMSegmentationBorder object.
KLMSegmentationBorder Self
Control indentation during Print() invocation.
Base class for SegmentationBorder object.
Object maintaining a reference to a list of borders associated with a region.