1 #ifndef itkNeighborhoodFunctorImageFilter_h
2 #define itkNeighborhoodFunctorImageFilter_h
4 #include "itkImageToImageFilter.h"
5 #include "itkZeroFluxNeumannBoundaryCondition.h"
6 #include "itkConstNeighborhoodIterator.h"
10 #include <itkHistogramToTextureFeaturesFilter.h>
11 #include "itkHistogram.h"
16 template<
typename TInputImageType,
typename TFeatureImageType ,
class FunctorType>
21 typedef ImageToImageFilter<TInputImageType, TFeatureImageType>
Superclass;
32 TFeatureImageType::ImageDimension);
34 TInputImageType::ImageDimension);
42 typedef itk::Size<InputImageDimension>
SizeType;
61 { m_BoundsCondition = i; }
65 {
return m_BoundsCondition; }
94 m_BoundsCondition =
static_cast< ImageBoundaryConditionPointerType
>( &m_DefaultBoundaryCondition );
95 this->SetNumberOfIndexedOutputs(FunctorType::OutputCount);
102 ThreadIdType threadId);
117 void operator=(const Self &);
121 ImageBoundaryConditionPointerType m_BoundsCondition;
124 DefaultBoundaryCondition m_DefaultBoundaryCondition;
127 FunctorType m_Functor;
129 itk::Size<InputImageDimension> m_Size;
131 typename MaskImageType::Pointer m_MaskImage;
136 #ifndef ITK_MANUAL_INSTANTIATION
137 #include "../src/Features/itkNeighborhoodFunctorImageFilter.cpp"
140 #endif // itkFeatureImageFilter_h
Neighborhood< InputImagePixelType, InputImageDimension > NeighborhoodType
SmartPointer< Self > Pointer
itk::SmartPointer< Self > Pointer
void OverrideBoundaryCondition(const ImageBoundaryConditionPointerType i)
virtual void GenerateInputRequestedRegion()
itk::Image< short, InputImageDimension > MaskImageType
NeighborhoodFunctorImageFilter()
void SetFunctor(const FunctorType &func)
void BeforeThreadedGenerateData()
itkStaticConstMacro(ImageDimension, unsigned int, TFeatureImageType::ImageDimension)
ImageBoundaryConditionPointerType GetBoundaryCondition()
void ThreadedGenerateData(const OutputImageRegionType &outputRegionForThread, ThreadIdType threadId)
MaskImageType::PixelType MaskImagePixelType
FeatureImageType::PixelType FeaturePixelType
Superclass::OutputImageRegionType OutputImageRegionType
SmartPointer< const Self > ConstPointer
TFeatureImageType FeatureImageType
ImageToImageFilter< TInputImageType, TFeatureImageType > Superclass
void SetNeighborhoodSize(SizeType size)
ImageBoundaryCondition< InputImageType > * ImageBoundaryConditionPointerType
TInputImageType InputImageType
FunctorType & GetFunctorReference()
ZeroFluxNeumannBoundaryCondition< InputImageType > DefaultBoundaryCondition
~NeighborhoodFunctorImageFilter()
void SetNeighborhoodSize(unsigned int size)
NeighborhoodFunctorImageFilter Self
SizeType GetNeighborhoodSize()
const FunctorType & GetFunctorReference() const
void SetMask(const typename MaskImageType::Pointer &ptr)
TInputImageType::PixelType InputImagePixelType
itk::Size< InputImageDimension > SizeType