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 );
169 itkSetObjectMacro( Offsets, OffsetVector );
188 itkSetMacro( NumberOfBinsPerAxis,
unsigned int );
191 itkGetConstMacro( NumberOfBinsPerAxis,
unsigned int );
200 itkGetConstMacro(
Min, PixelType );
203 itkGetConstMacro(
Max, PixelType );
214 itkGetConstMacro( MinDistance, RealType );
219 itkGetConstMacro( MaxDistance, RealType );
222 using Superclass::SetInput;
241 itkSetMacro( InsidePixelValue, PixelType );
242 itkGetConstMacro( InsidePixelValue, PixelType );
247 void PrintSelf( std::ostream& os, Indent indent )
const ITK_OVERRIDE;
253 using Superclass::MakeOutput;
254 DataObjectPointer
MakeOutput( DataObjectPointerArraySizeType idx ) ITK_OVERRIDE;
270 unsigned int m_NumberOfBinsPerAxis;
273 RealType m_MinDistance;
274 RealType m_MaxDistance;
275 PixelType m_InsidePixelValue;
277 MeasurementVectorType m_LowerBound;
278 MeasurementVectorType m_UpperBound;
279 OffsetVectorPointer m_Offsets;
284 #ifndef ITK_MANUAL_INSTANTIATION 285 #include "itkEnhancedScalarImageToRunLengthMatrixFilter.hxx" DataObject::Pointer DataObjectPointer
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
void GenerateData() ITK_OVERRIDE
ImageType::OffsetType OffsetType
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)
void PrintSelf(std::ostream &os, Indent indent) const ITK_OVERRIDE
SmartPointer< Self > Pointer
void SetPixelValueMinMax(PixelType min, PixelType max)
void SetDistanceValueMinMax(RealType min, RealType max)
mitk::Image::Pointer image
ImageType::PointType PointType
const ImageType * GetInput() const
DataObjectPointer MakeOutput(DataObjectPointerArraySizeType idx) ITK_OVERRIDE
const HistogramType * GetOutput() const
OffsetVector::Pointer OffsetVectorPointer
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
~EnhancedScalarImageToRunLengthMatrixFilter() override
const ImageType * GetMaskImage() const
HistogramType::ConstPointer HistogramConstPointer
void SetMaskImage(const ImageType *image)
ImageType::PixelType PixelType
EnhancedScalarImageToRunLengthMatrixFilter()
ImageType::Pointer ImagePointer