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,
89 FeatureImagePixelType::Dimension);
115 virtual void CalculateSpeedImage() ITK_OVERRIDE;
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);
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
virtual void PrintSelf(std::ostream &os, Indent indent) const override
void SetMean(const MeanVectorType &mean)
Light weight base class for most itk classes.
PixelType ScalarValueType
virtual void Initialize()
MahalanobisDistanceMembershipFunction models class membership using Mahalanobis distance.
TFeatureImageType FeatureImageType
MahalanobisFunctionType::Pointer MahalanobisFunctionPointer
ConstNeighborhoodIterator< TImageType >::RadiusType RadiusType
virtual ~VectorThresholdSegmentationLevelSetFunction()
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
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.
FeatureImageType::PixelType FeatureImagePixelType
const MeanVectorType & GetMean() const
SmartPointer< const Self > ConstPointer
void PrintSelf(std::ostream &os, Indent indent) const override