30 #ifndef __itkEnhancedScalarImageToNeighbourhoodGreyLevelDifferenceMatrixFilter_h
31 #define __itkEnhancedScalarImageToNeighbourhoodGreyLevelDifferenceMatrixFilter_h
34 #include "itkHistogram.h"
35 #include "itkNumericTraits.h"
36 #include "itkVectorContainer.h"
115 template<
typename TImageType,
typename THistogramFrequencyContainer =
116 DenseFrequencyContainer2>
145 typedef typename NumericTraits<PixelType>::RealType
RealType;
147 typedef Histogram<MeasurementType, THistogramFrequencyContainer>
155 TImageType::ImageDimension );
190 itkSetMacro( NumberOfBinsPerAxis,
unsigned int );
193 itkGetConstMacro( NumberOfBinsPerAxis,
unsigned int );
224 using Superclass::SetInput;
252 void PrintSelf( std::ostream& os, Indent indent )
const ITK_OVERRIDE;
258 using Superclass::MakeOutput;
275 unsigned int m_NumberOfBinsPerAxis;
291 #ifndef ITK_MANUAL_INSTANTIATION
292 #include "itkEnhancedScalarImageToNeighbourhoodGreyLevelDifferenceMatrixFilter.hxx"
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