30 #ifndef __itkEnhancedScalarImageToSizeZoneMatrixFilter_h 31 #define __itkEnhancedScalarImageToSizeZoneMatrixFilter_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 virtual void PrintSelf( std::ostream& os, Indent indent )
const ITK_OVERRIDE;
253 using Superclass::MakeOutput;
254 virtual DataObjectPointer
MakeOutput( DataObjectPointerArraySizeType idx ) ITK_OVERRIDE;
261 unsigned int m_NumberOfBinsPerAxis;
264 RealType m_MinDistance;
265 RealType m_MaxDistance;
266 PixelType m_InsidePixelValue;
268 MeasurementVectorType m_LowerBound;
269 MeasurementVectorType m_UpperBound;
270 OffsetVectorPointer m_Offsets;
275 #ifndef ITK_MANUAL_INSTANTIATION 276 #include "itkEnhancedScalarImageToSizeZoneMatrixFilter.hxx" NumericTraits< PixelType >::RealType RealType
SmartPointer< Self > Pointer
virtual DataObjectPointer MakeOutput(DataObjectPointerArraySizeType idx) ITK_OVERRIDE
const HistogramType * GetOutput() const
itkGetModifiableObjectMacro(Offsets, OffsetVector)
HistogramType::MeasurementVectorType MeasurementVectorType
EnhancedScalarImageToSizeZoneMatrixFilter()
HistogramType::ConstPointer HistogramConstPointer
OffsetVector::Pointer OffsetVectorPointer
itkStaticConstMacro(ImageDimension, unsigned int, TImageType::ImageDimension)
EnhancedScalarImageToSizeZoneMatrixFilter Self
ImageType::Pointer ImagePointer
DataObject::Pointer DataObjectPointer
This class computes a run length matrix (histogram) from a given image and a mask image if provided...
NumericTraits< PixelType >::RealType MeasurementType
void SetOffset(const OffsetType offset)
ProcessObject::DataObjectPointerArraySizeType DataObjectPointerArraySizeType
ImageType::OffsetType OffsetType
void SetInput(const ImageType *image)
void SetPixelValueMinMax(PixelType min, PixelType max)
mitk::Image::Pointer image
VectorContainer< unsigned char, OffsetType > OffsetVector
SmartPointer< const Self > ConstPointer
virtual void PrintSelf(std::ostream &os, Indent indent) const ITK_OVERRIDE
ImageType::PointType PointType
virtual ~EnhancedScalarImageToSizeZoneMatrixFilter()
ImageType::RegionType RegionType
virtual void GenerateData() ITK_OVERRIDE
ImageType::IndexType IndexType
void SetDistanceValueMinMax(RealType min, RealType max)
const ImageType * GetMaskImage() const
const ImageType * GetInput() const
ImageType::ConstPointer ImageConstPointer
ImageType::PixelType PixelType
void SetMaskImage(const ImageType *image)
ImageType::SizeType RadiusType
Histogram< MeasurementType, THistogramFrequencyContainer > HistogramType
HistogramType::Pointer HistogramPointer