18 #ifndef itkVectorThresholdSegmentationLevelSetFunction_h
19 #define itkVectorThresholdSegmentationLevelSetFunction_h
57 template<
typename TImageType,
typename TFeatureImageType >
85 static constexpr
unsigned int ImageDimension = Superclass::ImageDimension;
115 void CalculateSpeedImage()
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);
148 Superclass::PrintSelf(os, indent);
149 os << indent <<
"MahalanobisFunction: " << m_Mahalanobis << std::endl;
150 os << indent <<
"ThresholdValue: " << m_Threshold << std::endl;
158 #ifndef ITK_MANUAL_INSTANTIATION
159 #include "itkVectorThresholdSegmentationLevelSetFunction.hxx"
MeasurementVectorRealType MeanVectorType
PixelType ScalarValueType
void SetMean(const MeanVectorType &mean)
Light weight base class for most itk classes.
typename FeatureImageType::PixelType FeatureScalarType
Define numeric traits for std::vector.
typename FeatureImageType::PixelType FeatureImagePixelType
MahalanobisDistanceMembershipFunction models class membership using Mahalanobis distance.
constexpr unsigned int Dimension
ScalarValueType GetThreshold()
void SetThreshold(ScalarValueType thr)
typename MahalanobisFunctionType::MeanVectorType MeanVectorType
typename ConstNeighborhoodIterator< TImageType >::RadiusType RadiusType
VectorThresholdSegmentationLevelSetFunction()
typename MahalanobisFunctionType::Pointer MahalanobisFunctionPointer
ScalarValueType m_Threshold
MahalanobisFunctionPointer m_Mahalanobis
typename MahalanobisFunctionType::CovarianceMatrixType CovarianceMatrixType
const CovarianceMatrixType & GetCovariance() const
void SetCovariance(const CovarianceMatrixType &cov)
This function is used in VectorThresholdSegmentationLevelSetImageFilter to segment structures in imag...
Control indentation during Print() invocation.
TFeatureImageType FeatureImageType
typename Superclass::ScalarValueType ScalarValueType
void Initialize(const RadiusType &r) override
const MeanVectorType & GetMean() const
void PrintSelf(std::ostream &os, Indent indent) const override