18 #ifndef itkScalarImageToCooccurrenceMatrixFilter_h 19 #define itkScalarImageToCooccurrenceMatrixFilter_h 93 template<
typename TImageType,
94 typename THistogramFrequencyContainer = DenseFrequencyContainer2 >
132 itkSetConstObjectMacro(Offsets, OffsetVector);
133 itkGetConstObjectMacro(Offsets, OffsetVector);
139 itkSetMacro(NumberOfBinsPerAxis,
unsigned int);
140 itkGetConstMacro(NumberOfBinsPerAxis,
unsigned int);
147 itkGetConstMacro(Min, PixelType);
148 itkGetConstMacro(Max, PixelType);
152 itkSetMacro(Normalize,
bool);
153 itkGetConstMacro(Normalize,
bool);
154 itkBooleanMacro(Normalize);
159 void SetInput(
const ImageType *image);
173 itkSetMacro(InsidePixelValue, PixelType);
174 itkGetConstMacro(InsidePixelValue, PixelType);
180 virtual void PrintSelf(std::ostream & os,
Indent indent)
const ITK_OVERRIDE;
182 virtual void FillHistogram(RadiusType radius, RegionType region);
184 virtual void FillHistogramWithMask(RadiusType radius, RegionType region,
const ImageType *maskImage);
191 virtual DataObjectPointer
MakeOutput(DataObjectPointerArraySizeType idx) ITK_OVERRIDE;
198 void operator=(const Self &) ITK_DELETE_FUNCTION;
216 #ifndef ITK_MANUAL_INSTANTIATION 217 #include "itkScalarImageToCooccurrenceMatrixFilter.hxx" This class computes a co-occurence matrix (histogram) from a given image and a mask image if provided...
OffsetVector::ConstPointer OffsetVectorConstPointer
void SetInput(const ImageType *image)
virtual DataObjectPointer MakeOutput(DataObjectPointerArraySizeType idx) override
Make a DataObject of the correct type to used as the specified output.
OffsetVector::Pointer OffsetVectorPointer
unsigned int m_NumberOfBinsPerAxis
void SetMaskImage(const ImageType *image)
SmartPointer< const Self > ConstPointer
HistogramType::ConstPointer HistogramConstPointer
This class stores measurement vectors in the context of n-dimensional histogram.
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::OffsetType OffsetType
ImageType::ConstPointer ImageConstPointer
virtual void FillHistogramWithMask(RadiusType radius, RegionType region, const ImageType *maskImage)
const ImageType * GetMaskImage() const
VectorContainer< unsigned char, OffsetType > OffsetVector
NumericTraits< PixelType >::RealType MeasurementType
ImageType::Pointer ImagePointer
virtual void FillHistogram(RadiusType radius, RegionType region)
ImageType::SizeType RadiusType
HistogramType::MeasurementVectorType MeasurementVectorType
void NormalizeHistogram()
SmartPointer< Self > Pointer
Histogram< MeasurementType, THistogramFrequencyContainer > HistogramType
DataObjectPointerArray::size_type DataObjectPointerArraySizeType
ProcessObject::DataObjectPointerArraySizeType DataObjectPointerArraySizeType
virtual void GenerateData() override
Superclass::MeasurementVectorType MeasurementVectorType
MeasurementVectorType m_UpperBound
PixelType m_InsidePixelValue
virtual void SetInput(const DataObjectIdentifierType &key, DataObject *input)
Protected method for setting indexed and named inputs.
HistogramType::Pointer HistogramPointer
virtual DataObjectPointer MakeOutput(DataObjectPointerArraySizeType idx)
Make a DataObject of the correct type to used as the specified output.
void SetOffset(const OffsetType offset)
DataObject::Pointer DataObjectPointer
virtual void PrintSelf(std::ostream &os, Indent indent) const override
MeasurementVectorType m_LowerBound
virtual ~ScalarImageToCooccurrenceMatrixFilter()
const ImageType * GetInput() const
ScalarImageToCooccurrenceMatrixFilter()
Define a front-end to the STL "vector" container that conforms to the IndexedContainerInterface.
Control indentation during Print() invocation.
ImageType::PixelType PixelType
OffsetVectorConstPointer m_Offsets
ImageType::RegionType RegionType
Define additional traits for native types such as int or float.
ScalarImageToCooccurrenceMatrixFilter Self
static const unsigned int DefaultBinsPerAxis
const HistogramType * GetOutput() const
void SetPixelValueMinMax(PixelType min, PixelType max)