30 #ifndef itkEnhancedScalarImageToNeighbourhoodGreyLevelDifferenceMatrixFilter_h
31 #define itkEnhancedScalarImageToNeighbourhoodGreyLevelDifferenceMatrixFilter_h
34 #include <itkHistogram.h>
35 #include <itkNumericTraits.h>
36 #include <itkVectorContainer.h>
114 template<
typename TImageType,
typename THistogramFrequencyContainer =
115 DenseFrequencyContainer2>
144 typedef typename NumericTraits<PixelType>::RealType
RealType;
146 typedef Histogram<MeasurementType, THistogramFrequencyContainer>
154 TImageType::ImageDimension );
189 itkSetMacro( NumberOfBinsPerAxis,
unsigned int );
192 itkGetConstMacro( NumberOfBinsPerAxis,
unsigned int );
223 using Superclass::SetInput;
251 void PrintSelf( std::ostream& os, Indent indent )
const ITK_OVERRIDE;
257 using Superclass::MakeOutput;
274 unsigned int m_NumberOfBinsPerAxis;
290 #ifndef ITK_MANUAL_INSTANTIATION
291 #include <itkEnhancedScalarImageToNeighbourhoodGreyLevelDifferenceMatrixFilter.tpp>
This class computes a run length matrix (histogram) from a given image and a mask image if provided....
void AddOffsets(const std::vector< OffsetType > offset)
ImageType::OffsetType OffsetType
HistogramType::Pointer HistogramPointer
DataObjectPointer MakeOutput(DataObjectPointerArraySizeType idx) ITK_OVERRIDE
itkStaticConstMacro(ImageDimension, unsigned int, TImageType::ImageDimension)
EnhancedScalarImageToNeighbourhoodGreyLevelDifferenceMatrixFilter()
SmartPointer< Self > Pointer
~EnhancedScalarImageToNeighbourhoodGreyLevelDifferenceMatrixFilter() override
SmartPointer< const Self > ConstPointer
ImageType::RegionType RegionType
void SetDistanceValueMinMax(RealType min, RealType max)
void SetMaskImage(const ImageType *image)
void GenerateData() ITK_OVERRIDE
Histogram< MeasurementType, THistogramFrequencyContainer > HistogramType
VectorContainer< unsigned char, OffsetType > OffsetVector
void SetPixelValueMinMax(PixelType min, PixelType max)
itkStaticConstMacro(DefaultBinsPerAxis, unsigned int, 256)
ImageType::IndexType IndexType
const HistogramType * GetOutput() const
ImageType::ConstPointer ImageConstPointer
void SetInput(const ImageType *image)
NumericTraits< PixelType >::RealType MeasurementType
const ImageType * GetMaskImage() const
ImageType::PixelType PixelType
HistogramType::ConstPointer HistogramConstPointer
OffsetVector::Pointer OffsetVectorPointer
ProcessObject::DataObjectPointerArraySizeType DataObjectPointerArraySizeType
EnhancedScalarImageToNeighbourhoodGreyLevelDifferenceMatrixFilter Self
DataObject::Pointer DataObjectPointer
itkGetModifiableObjectMacro(Offsets, OffsetVector)
double * GetSiMatrix() const
NumericTraits< PixelType >::RealType RealType
const ImageType * GetInput() const
ImageType::SizeType RadiusType
void SetOffset(const OffsetType offset)
HistogramType::MeasurementVectorType MeasurementVectorType
ImageType::PointType PointType
void NormalizeOffsetDirection(OffsetType &offset)
ImageType::Pointer ImagePointer
void PrintSelf(std::ostream &os, Indent indent) const ITK_OVERRIDE