18 #ifndef itkVectorThresholdSegmentationLevelSetFunction_h
19 #define itkVectorThresholdSegmentationLevelSetFunction_h
57 template <
typename TImageType,
typename TFeatureImageType>
78 using typename Superclass::ImageType;
79 using typename Superclass::ScalarValueType;
80 using typename Superclass::FeatureScalarType;
81 using typename Superclass::RadiusType;
84 static constexpr
unsigned int ImageDimension = Superclass::ImageDimension;
99 m_Mahalanobis->SetMean(mean);
101 const MeanVectorType &
104 return m_Mahalanobis->GetMean();
111 m_Mahalanobis->SetCovariance(cov);
113 const CovarianceMatrixType &
116 return m_Mahalanobis->GetCovariance();
133 CalculateSpeedImage()
override;
138 Superclass::Initialize(r);
151 mean.Fill(
typename FeatureScalarType::ValueType{});
152 covariance.Fill(
typename FeatureScalarType::ValueType{});
155 m_Mahalanobis->SetMean(mean);
156 m_Mahalanobis->SetCovariance(covariance);
158 this->SetAdvectionWeight(0.0);
159 this->SetPropagationWeight(1.0);
160 this->SetThreshold(1.8);
168 Superclass::PrintSelf(os, indent);
169 os << indent <<
"MahalanobisFunction: " << m_Mahalanobis << std::endl;
170 os << indent <<
"ThresholdValue: " << m_Threshold << std::endl;
178 #ifndef ITK_MANUAL_INSTANTIATION
179 # include "itkVectorThresholdSegmentationLevelSetFunction.hxx"