30 #ifndef __itkEnhancedScalarImageToRunLengthMatrixFilter_h
31 #define __itkEnhancedScalarImageToRunLengthMatrixFilter_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 );
188 itkSetMacro( NumberOfBinsPerAxis,
unsigned int );
191 itkGetConstMacro( NumberOfBinsPerAxis,
unsigned int );
222 using Superclass::SetInput;
247 void PrintSelf( std::ostream& os, Indent indent )
const ITK_OVERRIDE;
253 using Superclass::MakeOutput;
270 unsigned int m_NumberOfBinsPerAxis;
284 #ifndef ITK_MANUAL_INSTANTIATION
285 #include "itkEnhancedScalarImageToRunLengthMatrixFilter.hxx"
This class computes a run length matrix (histogram) from a given image and a mask image if provided....
ImageType::IndexType IndexType
NumericTraits< PixelType >::RealType RealType
void PrintSelf(std::ostream &os, Indent indent) const ITK_OVERRIDE
const HistogramType * GetOutput() const
void SetDistanceValueMinMax(RealType min, RealType max)
const ImageType * GetMaskImage() const
ImageType::ConstPointer ImageConstPointer
itkStaticConstMacro(DefaultBinsPerAxis, unsigned int, 256)
Histogram< MeasurementType, THistogramFrequencyContainer > HistogramType
ImageType::PointType PointType
ImageType::Pointer ImagePointer
HistogramType::Pointer HistogramPointer
VectorContainer< unsigned char, OffsetType > OffsetVector
HistogramType::MeasurementVectorType MeasurementVectorType
void SetInput(const ImageType *image)
void SetMaskImage(const ImageType *image)
HistogramType::ConstPointer HistogramConstPointer
EnhancedScalarImageToRunLengthMatrixFilter()
ProcessObject::DataObjectPointerArraySizeType DataObjectPointerArraySizeType
itkGetModifiableObjectMacro(Offsets, OffsetVector)
DataObject::Pointer DataObjectPointer
void GenerateData() ITK_OVERRIDE
SmartPointer< const Self > ConstPointer
itkStaticConstMacro(ImageDimension, unsigned int, TImageType::ImageDimension)
NumericTraits< PixelType >::RealType MeasurementType
ImageType::PixelType PixelType
const ImageType * GetInput() const
void SetOffset(const OffsetType offset)
void NormalizeOffsetDirection(OffsetType &offset)
EnhancedScalarImageToRunLengthMatrixFilter Self
DataObjectPointer MakeOutput(DataObjectPointerArraySizeType idx) ITK_OVERRIDE
void SetPixelValueMinMax(PixelType min, PixelType max)
ImageType::SizeType RadiusType
OffsetVector::Pointer OffsetVectorPointer
ImageType::OffsetType OffsetType
SmartPointer< Self > Pointer
ImageType::RegionType RegionType
~EnhancedScalarImageToRunLengthMatrixFilter() override