18 #ifndef itkVectorThresholdSegmentationLevelSetFunction_h
19 #define itkVectorThresholdSegmentationLevelSetFunction_h
57 template<
typename TImageType,
typename TFeatureImageType >
77 typedef typename Superclass::ImageType
ImageType;
83 itkStaticConstMacro(ImageDimension,
unsigned int,
84 Superclass::ImageDimension);
88 itkStaticConstMacro(NumberOfComponents,
unsigned int,
115 virtual void CalculateSpeedImage() ITK_OVERRIDE;
119 Superclass::Initialize(r);
135 m_Mahalanobis = MahalanobisFunctionType::New();
136 m_Mahalanobis->SetMean(mean);
137 m_Mahalanobis->SetCovariance(covariance);
139 this->SetAdvectionWeight(0.0);
140 this->SetPropagationWeight(1.0);
141 this->SetThreshold(1.8);
150 Superclass::PrintSelf(os, indent);
151 os << indent <<
"MahalanobisFunction: " << m_Mahalanobis << std::endl;
152 os << indent <<
"ThresholdValue: " << m_Threshold << std::endl;
160 #ifndef ITK_MANUAL_INSTANTIATION
161 #include "itkVectorThresholdSegmentationLevelSetFunction.hxx"
Statistics::MahalanobisDistanceMembershipFunction< FeatureScalarType > MahalanobisFunctionType
SegmentationLevelSetFunction< TImageType, TFeatureImageType > Superclass
void SetMean(const MeanVectorType &mean)
Light weight base class for most itk classes.
PixelType ScalarValueType
MahalanobisDistanceMembershipFunction models class membership using Mahalanobis distance.
TFeatureImageType FeatureImageType
MahalanobisFunctionType::Pointer MahalanobisFunctionPointer
ConstNeighborhoodIterator< TImageType >::RadiusType RadiusType
VectorThresholdSegmentationLevelSetFunction Self
ScalarValueType GetThreshold()
MeasurementVectorRealType MeanVectorType
Superclass::ScalarValueType ScalarValueType
Superclass::FeatureScalarType FeatureScalarType
void SetThreshold(ScalarValueType thr)
VectorThresholdSegmentationLevelSetFunction()
Superclass::ImageType ImageType
ScalarValueType m_Threshold
MahalanobisFunctionPointer m_Mahalanobis
MahalanobisFunctionType::MeanVectorType MeanVectorType
SmartPointer< Self > Pointer
const CovarianceMatrixType & GetCovariance() const
const unsigned int Dimension
Superclass::ScalarValueType ScalarValueType
void SetCovariance(const CovarianceMatrixType &cov)
This function is used in VectorThresholdSegmentationLevelSetImageFilter to segment structures in imag...
Superclass::RadiusType RadiusType
void Fill(const T &value)
MahalanobisFunctionType::CovarianceMatrixType CovarianceMatrixType
Control indentation during Print() invocation.
Define additional traits for native types such as int or float.
virtual ~VectorThresholdSegmentationLevelSetFunction() override
FeatureImageType::PixelType FeatureImagePixelType
const MeanVectorType & GetMean() const
SmartPointer< const Self > ConstPointer
void PrintSelf(std::ostream &os, Indent indent) const override