34 #ifndef __itkEnhancedScalarImageToRunLengthMatrixFilter_h
35 #define __itkEnhancedScalarImageToRunLengthMatrixFilter_h
38 #include "itkHistogram.h"
39 #include "itkNumericTraits.h"
40 #include "itkVectorContainer.h"
119 template<
typename TImageType,
typename THistogramFrequencyContainer =
120 DenseFrequencyContainer2>
149 typedef typename NumericTraits<PixelType>::RealType
RealType;
151 typedef Histogram<MeasurementType, THistogramFrequencyContainer>
159 TImageType::ImageDimension );
173 itkSetObjectMacro( Offsets, OffsetVector );
192 itkSetMacro( NumberOfBinsPerAxis,
unsigned int );
195 itkGetConstMacro( NumberOfBinsPerAxis,
unsigned int );
204 itkGetConstMacro(
Min, PixelType );
207 itkGetConstMacro(
Max, PixelType );
218 itkGetConstMacro( MinDistance, RealType );
223 itkGetConstMacro( MaxDistance, RealType );
226 using Superclass::SetInput;
227 void SetInput(
const ImageType *image );
245 itkSetMacro( InsidePixelValue, PixelType );
246 itkGetConstMacro( InsidePixelValue, PixelType );
251 virtual void PrintSelf( std::ostream& os, Indent indent )
const ITK_OVERRIDE;
257 using Superclass::MakeOutput;
258 virtual DataObjectPointer
MakeOutput( DataObjectPointerArraySizeType idx ) ITK_OVERRIDE;
274 unsigned int m_NumberOfBinsPerAxis;
277 RealType m_MinDistance;
278 RealType m_MaxDistance;
279 PixelType m_InsidePixelValue;
281 MeasurementVectorType m_LowerBound;
282 MeasurementVectorType m_UpperBound;
283 OffsetVectorPointer m_Offsets;
288 #ifndef ITK_MANUAL_INSTANTIATION
289 #include "itkEnhancedScalarImageToRunLengthMatrixFilter.hxx"
DataObject::Pointer DataObjectPointer
itk::SmartPointer< Self > Pointer
ProcessObject::DataObjectPointerArraySizeType DataObjectPointerArraySizeType
ImageType::IndexType IndexType
NumericTraits< PixelType >::RealType MeasurementType
ImageType::RegionType RegionType
SmartPointer< const Self > ConstPointer
HistogramType::MeasurementVectorType MeasurementVectorType
ImageType::ConstPointer ImageConstPointer
ImageType::SizeType RadiusType
ImageType::OffsetType OffsetType
itk::SmartPointer< const Self > ConstPointer
EnhancedScalarImageToRunLengthMatrixFilter Self
void NormalizeOffsetDirection(OffsetType &offset)
VectorContainer< unsigned char, OffsetType > OffsetVector
void SetInput(const ImageType *image)
itkStaticConstMacro(ImageDimension, unsigned int, TImageType::ImageDimension)
HistogramType::Pointer HistogramPointer
itkGetModifiableObjectMacro(Offsets, OffsetVector)
SmartPointer< Self > Pointer
void SetPixelValueMinMax(PixelType min, PixelType max)
virtual DataObjectPointer MakeOutput(DataObjectPointerArraySizeType idx) ITK_OVERRIDE
void SetDistanceValueMinMax(RealType min, RealType max)
ImageType::PointType PointType
const ImageType * GetInput() const
virtual ~EnhancedScalarImageToRunLengthMatrixFilter()
OffsetVector::Pointer OffsetVectorPointer
virtual void GenerateData() ITK_OVERRIDE
void SetOffset(const OffsetType offset)
NumericTraits< PixelType >::RealType RealType
This class computes a run length matrix (histogram) from a given image and a mask image if provided...
Histogram< MeasurementType, THistogramFrequencyContainer > HistogramType
HistogramType::ConstPointer HistogramConstPointer
void SetMaskImage(const ImageType *image)
ImageType::PixelType PixelType
const ImageType * GetMaskImage() const
EnhancedScalarImageToRunLengthMatrixFilter()
ImageType::Pointer ImagePointer
const HistogramType * GetOutput() const
virtual void PrintSelf(std::ostream &os, Indent indent) const ITK_OVERRIDE