18 #ifndef __itkAnnulusOperator_h
19 #define __itkAnnulusOperator_h
68 template<
class TPixel,
unsigned int TDimension = 2,
88 m_Normalize(false), m_BrightCenter(false),
92 { m_Spacing.
Fill(1.0); }
109 void CreateOperator();
113 void SetInnerRadius(
double r)
114 { m_InnerRadius = r; }
115 double GetInnerRadius()
const
116 {
return m_InnerRadius; }
122 void SetThickness(
double t)
124 double GetThickness()
const
125 {
return m_Thickness; }
133 {
return m_Spacing; }
138 void SetNormalize(
bool b)
140 bool GetNormalize()
const
141 {
return m_Normalize; }
143 { this->SetNormalize(
true); }
145 { this->SetNormalize(
false); }
150 void SetBrightCenter(
bool b)
151 { m_BrightCenter = b; }
152 bool GetBrightCenter()
const
153 {
return m_BrightCenter; }
154 void BrightCenterOn()
155 { this->SetBrightCenter(
true); }
156 void BrightCenterOff()
157 { this->SetBrightCenter(
false); }
164 void SetInteriorValue(TPixel v)
165 { m_InteriorValue = v; }
166 TPixel GetInteriorValue()
const
167 {
return m_InteriorValue; }
168 void SetAnnulusValue(TPixel v)
169 { m_AnnulusValue = v; }
170 TPixel GetAnnulusValue()
const
171 {
return m_AnnulusValue; }
172 void SetExteriorValue(TPixel v)
173 { m_ExteriorValue = v; }
174 TPixel GetExteriorValue()
const
175 {
return m_ExteriorValue; }
181 Superclass::operator=(other);
195 virtual void PrintSelf(std::ostream & os,
Indent i)
const
197 os << i <<
"AnnulusOperator { this=" <<
this
198 <<
", m_InnerRadius = " << m_InnerRadius
199 <<
", m_Thickness = " << m_Thickness
200 <<
", m_Spacing = " << m_Spacing
201 <<
", m_Normalize = " << m_Normalize
202 <<
", m_BrightCenter = " << m_BrightCenter
203 <<
", m_InteriorValue = " << m_InteriorValue
204 <<
", m_ExteriorValue = " << m_ExteriorValue
237 #define ITK_TEMPLATE_AnnulusOperator(_, EXPORT, TypeX, TypeY) \
240 _( 2 ( class EXPORT AnnulusOperator< ITK_TEMPLATE_2 TypeX > ) ) \
241 namespace Templates \
243 typedef AnnulusOperator< ITK_TEMPLATE_2 TypeX > \
244 AnnulusOperator##TypeY; \
248 #if ITK_TEMPLATE_EXPLICIT
249 #include "Templates/itkAnnulusOperator+-.h"
253 #include "itkAnnulusOperator.hxx"