18 #ifndef itkSegmentationLevelSetImageFilter_h
19 #define itkSegmentationLevelSetImageFilter_h
143 template <
typename TInputImage,
typename TFeatureImage,
typename TOutputPixelType =
float>
187 itkWarningMacro(
"SetMaximumIterations is deprecated. Please use SetNumberOfIterations instead.");
188 this->SetNumberOfIterations(i);
195 itkWarningMacro(
"GetMaximumIterations is deprecated. Please use GetNumberOfIterations instead.");
196 return this->GetNumberOfIterations();
204 itkDebugMacro(
"setting input FeatureImage to " << f);
208 m_SegmentationFunction->SetFeatureImage(f);
212 itkGetInputMacro(FeatureImage, FeatureImageType);
217 itkSetInputMacro(InitialImage, InputImageType);
218 itkGetInputMacro(InitialImage, InputImageType);
225 this->SetFeatureImage(input);
234 m_SegmentationFunction->SetSpeedImage(s);
243 m_SegmentationFunction->SetAdvectionImage(v);
248 virtual const SpeedImageType *
251 return m_SegmentationFunction->GetSpeedImage();
256 virtual const VectorImageType *
259 return m_SegmentationFunction->GetAdvectionImage();
269 <<
"SetUseNegativeFeaturesOn has been deprecated. Please use ReverseExpansionDirectionOn() instead");
270 this->ReverseExpansionDirectionOn();
278 <<
"SetUseNegativeFeaturesOff has been deprecated. Please use ReverseExpansionDirectionOff() instead");
279 this->ReverseExpansionDirectionOff();
287 itkWarningMacro(<<
"SetUseNegativeFeatures has been deprecated. Please use SetReverseExpansionDirection instead");
290 this->SetReverseExpansionDirection(
false);
294 this->SetReverseExpansionDirection(
true);
303 <<
"GetUseNegativeFeatures has been deprecated. Please use GetReverseExpansionDirection() instead");
304 if (m_ReverseExpansionDirection ==
false)
322 itkSetMacro(ReverseExpansionDirection,
bool);
323 itkGetConstMacro(ReverseExpansionDirection,
bool);
324 itkBooleanMacro(ReverseExpansionDirection);
332 itkSetMacro(AutoGenerateSpeedAdvection,
bool);
333 itkGetConstMacro(AutoGenerateSpeedAdvection,
bool);
334 itkBooleanMacro(AutoGenerateSpeedAdvection);
346 this->SetPropagationScaling(v);
350 this->SetAdvectionScaling(v);
362 m_SegmentationFunction->SetPropagationWeight(v);
371 return m_SegmentationFunction->GetPropagationWeight();
381 m_SegmentationFunction->SetAdvectionWeight(v);
390 return m_SegmentationFunction->GetAdvectionWeight();
402 m_SegmentationFunction->SetCurvatureWeight(v);
411 return m_SegmentationFunction->GetCurvatureWeight();
418 if (m_SegmentationFunction->GetUseMinimalCurvature() != b)
420 m_SegmentationFunction->SetUseMinimalCurvature(b);
429 return m_SegmentationFunction->GetUseMinimalCurvature();
435 this->SetUseMinimalCurvature(
true);
441 this->SetUseMinimalCurvature(
false);
452 m_SegmentationFunction = s;
458 this->SetDifferenceFunction(m_SegmentationFunction);
462 virtual SegmentationFunctionType *
465 return m_SegmentationFunction;
475 if (n != m_SegmentationFunction->GetMaximumCurvatureTimeStep())
477 m_SegmentationFunction->SetMaximumCurvatureTimeStep(n);
486 return m_SegmentationFunction->GetMaximumCurvatureTimeStep();
496 if (n != m_SegmentationFunction->GetMaximumPropagationTimeStep())
498 m_SegmentationFunction->SetMaximumPropagationTimeStep(n);
507 return m_SegmentationFunction->GetMaximumPropagationTimeStep();
514 GenerateSpeedImage();
520 GenerateAdvectionImage();
522 #ifdef ITK_USE_CONCEPT_CHECKING
533 PrintSelf(std::ostream & os,
Indent indent)
const override;
539 Superclass::InitializeIteration();
541 this->UpdateProgress((
float)((
float)this->GetElapsedIterations() / (
float)this->GetNumberOfIterations()));
548 GenerateData()
override;
565 #ifndef ITK_MANUAL_INSTANTIATION
566 # include "itkSegmentationLevelSetImageFilter.hxx"