18 #ifndef __itkAreaClosingImageFilter_h
19 #define __itkAreaClosingImageFilter_h
58 template<
class TInputImage,
class TOutputImage,
class TAttribute =
typename TInputImage::SpacingType::ValueType >
61 std::less< typename TInputImage::PixelType > >
67 std::less< typename TInputImage::PixelType > >
83 typedef typename TInputImage::SizeType
SizeType;
86 itkStaticConstMacro(ImageDimension,
unsigned int,
87 TOutputImage::ImageDimension);
99 itkSetMacro(UseImageSpacing,
bool);
100 itkGetConstReferenceMacro(UseImageSpacing,
bool);
101 itkBooleanMacro(UseImageSpacing);
105 m_UseImageSpacing =
true;
113 this->m_AttributeValuePerPixel = 1;
114 if ( m_UseImageSpacing )
118 for (
unsigned i = 0; i < ImageDimension; i++ )
120 psize *= this->GetInput()->GetSpacing()[i];
122 this->m_AttributeValuePerPixel =
static_cast< AttributeType >( psize );
127 Superclass::GenerateData();
130 void PrintSelf(std::ostream & os,
Indent indent)
const
132 Superclass::PrintSelf(os, indent);
133 os << indent <<
"UseImageSpacing: " << m_UseImageSpacing << std::endl;
139 void operator=(
const Self &);