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);
107 m_UseImageSpacing =
true;
114 this->m_AttributeValuePerPixel = 1;
115 if ( m_UseImageSpacing )
119 for (
unsigned i = 0; i < ImageDimension; i++ )
121 psize *= this->GetInput()->GetSpacing()[i];
123 this->m_AttributeValuePerPixel =
static_cast< AttributeType >( psize );
128 Superclass::GenerateData();
131 void PrintSelf(std::ostream & os,
Indent indent)
const
133 Superclass::PrintSelf(os, indent);
134 os << indent <<
"UseImageSpacing: " << m_UseImageSpacing << std::endl;
140 void operator=(
const Self &);