30 #ifndef itkEnhancedScalarImageToRunLengthMatrixFilter_h
31 #define itkEnhancedScalarImageToRunLengthMatrixFilter_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 );
187 itkSetMacro( NumberOfBinsPerAxis,
unsigned int );
190 itkGetConstMacro( NumberOfBinsPerAxis,
unsigned int );
221 using Superclass::SetInput;
246 void PrintSelf( std::ostream& os, Indent indent )
const ITK_OVERRIDE;
252 using Superclass::MakeOutput;
269 unsigned int m_NumberOfBinsPerAxis;
283 #ifndef ITK_MANUAL_INSTANTIATION
284 #include <itkEnhancedScalarImageToRunLengthMatrixFilter.tpp>
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