30 #ifndef __itkEnhancedScalarImageToNeighbourhoodGreyLevelDifferenceMatrixFilter_h 31 #define __itkEnhancedScalarImageToNeighbourhoodGreyLevelDifferenceMatrixFilter_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 );
190 itkSetMacro( NumberOfBinsPerAxis,
unsigned int );
193 itkGetConstMacro( NumberOfBinsPerAxis,
unsigned int );
202 itkGetConstMacro(
Min, PixelType );
205 itkGetConstMacro(
Max, PixelType );
216 itkGetConstMacro( MinDistance, RealType );
221 itkGetConstMacro( MaxDistance, RealType );
224 using Superclass::SetInput;
246 itkSetMacro( InsidePixelValue, PixelType );
247 itkGetConstMacro( InsidePixelValue, PixelType );
252 void PrintSelf( std::ostream& os, Indent indent )
const ITK_OVERRIDE;
258 using Superclass::MakeOutput;
259 DataObjectPointer
MakeOutput( DataObjectPointerArraySizeType idx ) ITK_OVERRIDE;
275 unsigned int m_NumberOfBinsPerAxis;
278 RealType m_MinDistance;
279 RealType m_MaxDistance;
280 PixelType m_InsidePixelValue;
282 MeasurementVectorType m_LowerBound;
283 MeasurementVectorType m_UpperBound;
284 OffsetVectorPointer m_Offsets;
291 #ifndef ITK_MANUAL_INSTANTIATION 292 #include "itkEnhancedScalarImageToNeighbourhoodGreyLevelDifferenceMatrixFilter.hxx" const HistogramType * GetOutput() const
This class computes a run length matrix (histogram) from a given image and a mask image if provided...
ImageType::RegionType RegionType
VectorContainer< unsigned char, OffsetType > OffsetVector
void SetInput(const ImageType *image)
void SetDistanceValueMinMax(RealType min, RealType max)
ImageType::OffsetType OffsetType
HistogramType::MeasurementVectorType MeasurementVectorType
HistogramType::Pointer HistogramPointer
DataObjectPointer MakeOutput(DataObjectPointerArraySizeType idx) ITK_OVERRIDE
double * GetSiMatrix() const
ImageType::PixelType PixelType
itkStaticConstMacro(ImageDimension, unsigned int, TImageType::ImageDimension)
OffsetVector::Pointer OffsetVectorPointer
HistogramType::ConstPointer HistogramConstPointer
itkGetModifiableObjectMacro(Offsets, OffsetVector)
void SetPixelValueMinMax(PixelType min, PixelType max)
SmartPointer< const Self > ConstPointer
DataObject::Pointer DataObjectPointer
ImageType::PointType PointType
ImageType::Pointer ImagePointer
NumericTraits< PixelType >::RealType RealType
ImageType::ConstPointer ImageConstPointer
void SetOffset(const OffsetType offset)
NumericTraits< PixelType >::RealType MeasurementType
void AddOffsets(const std::vector< OffsetType > offset)
mitk::Image::Pointer image
~EnhancedScalarImageToNeighbourhoodGreyLevelDifferenceMatrixFilter() override
void NormalizeOffsetDirection(OffsetType &offset)
void GenerateData() ITK_OVERRIDE
void SetMaskImage(const ImageType *image)
void PrintSelf(std::ostream &os, Indent indent) const ITK_OVERRIDE
const ImageType * GetMaskImage() const
SmartPointer< Self > Pointer
const ImageType * GetInput() const
EnhancedScalarImageToNeighbourhoodGreyLevelDifferenceMatrixFilter()
ImageType::SizeType RadiusType
ImageType::IndexType IndexType
ProcessObject::DataObjectPointerArraySizeType DataObjectPointerArraySizeType
Histogram< MeasurementType, THistogramFrequencyContainer > HistogramType
EnhancedScalarImageToNeighbourhoodGreyLevelDifferenceMatrixFilter Self