18 #ifndef itkScalarImageToRunLengthMatrixFilter_h 19 #define itkScalarImageToRunLengthMatrixFilter_h 105 template<
typename TImageType,
typename THistogramFrequencyContainer =
106 DenseFrequencyContainer2>
145 TImageType::ImageDimension );
159 itkSetObjectMacro( Offsets, OffsetVector );
170 void SetOffset(
const OffsetType offset );
175 itkGetModifiableObjectMacro(Offsets, OffsetVector );
178 itkSetMacro( NumberOfBinsPerAxis,
unsigned int );
181 itkGetConstMacro( NumberOfBinsPerAxis,
unsigned int );
190 itkGetConstMacro( Min, PixelType );
193 itkGetConstMacro( Max, PixelType );
204 itkGetConstMacro( MinDistance, RealType );
209 itkGetConstMacro( MaxDistance, RealType );
213 void SetInput(
const ImageType *image );
231 itkSetMacro( InsidePixelValue, PixelType );
232 itkGetConstMacro( InsidePixelValue, PixelType );
238 virtual void PrintSelf( std::ostream& os,
Indent indent )
const ITK_OVERRIDE;
245 virtual DataObjectPointer
MakeOutput( DataObjectPointerArraySizeType idx ) ITK_OVERRIDE;
276 #ifndef ITK_MANUAL_INSTANTIATION 277 #include "itkScalarImageToRunLengthMatrixFilter.hxx" const HistogramType * GetOutput() const
ImageType::IndexType IndexType
ScalarImageToRunLengthMatrixFilter()
void NormalizeOffsetDirection(OffsetType &offset)
HistogramType::Pointer HistogramPointer
const ImageType * GetInput() const
DataObject::Pointer DataObjectPointer
void SetPixelValueMinMax(PixelType min, PixelType max)
This class stores measurement vectors in the context of n-dimensional histogram.
NumericTraits< PixelType >::RealType RealType
SmartPointer< Self > Pointer
void SetMaskImage(const ImageType *image)
The base class for all process objects (source, filters, mappers) in the Insight data processing pipe...
The "itk" namespace contains all Insight Segmentation and Registration Toolkit (ITK) classes...
ImageType::PointType PointType
PixelType m_InsidePixelValue
virtual void PrintSelf(std::ostream &os, Indent indent) const override
void SetOffset(const OffsetType offset)
ImageType::SizeType RadiusType
ImageType::RegionType RegionType
ProcessObject::DataObjectPointerArraySizeType DataObjectPointerArraySizeType
This class computes a run length matrix (histogram) from a given image and a mask image if provided...
DataObjectPointerArray::size_type DataObjectPointerArraySizeType
const ImageType * GetMaskImage() const
Superclass::MeasurementVectorType MeasurementVectorType
unsigned int m_NumberOfBinsPerAxis
ImageType::OffsetType OffsetType
virtual void SetInput(const DataObjectIdentifierType &key, DataObject *input)
Protected method for setting indexed and named inputs.
MeasurementVectorType m_LowerBound
static const unsigned int ImageDimension
Histogram< MeasurementType, THistogramFrequencyContainer > HistogramType
virtual void GenerateData() override
virtual DataObjectPointer MakeOutput(DataObjectPointerArraySizeType idx)
Make a DataObject of the correct type to used as the specified output.
ImageType::ConstPointer ImageConstPointer
HistogramType::MeasurementVectorType MeasurementVectorType
OffsetVector::Pointer OffsetVectorPointer
OffsetVectorPointer m_Offsets
virtual DataObjectPointer MakeOutput(DataObjectPointerArraySizeType idx) override
Make a DataObject of the correct type to used as the specified output.
VectorContainer< unsigned char, OffsetType > OffsetVector
ImageType::Pointer ImagePointer
ImageType::PixelType PixelType
Define a front-end to the STL "vector" container that conforms to the IndexedContainerInterface.
static const unsigned int DefaultBinsPerAxis
Control indentation during Print() invocation.
void SetInput(const ImageType *image)
HistogramType::ConstPointer HistogramConstPointer
SmartPointer< const Self > ConstPointer
MeasurementVectorType m_UpperBound
Define additional traits for native types such as int or float.
virtual ~ScalarImageToRunLengthMatrixFilter()
ScalarImageToRunLengthMatrixFilter Self
void SetDistanceValueMinMax(RealType min, RealType max)
NumericTraits< PixelType >::RealType MeasurementType