Class ReinitializeLevelSetImageFilter
java.lang.Object
org.itk.simple.ProcessObject
org.itk.simple.ImageFilter
org.itk.simple.ReinitializeLevelSetImageFilter
Reinitialize the level set to the signed distance function.
ReinitializeLevelSetImageFilter reinitializes the input level set to the approximated signed distance
function from a particular level set. The output is a level set of the
same type as the input.
For some level set algorithms, it is useful to periodically
reinitialize the level set function to prevent numerical accuracy
problems in computing derivatives and curvature values where level
sets are densely bunched together.
This class is templated over the image type which represents the level
set.
This class supports narrowbanding. If the input narrowband is
provided, the algorithm will only locate the level set within the
input narrowband. For the output, the reinitialize level set is only
valid for a distance of OutputNarrowBandwidth / 2 of either side of
the level set of interest.
Implementation of this class is based on Chapter 11 of "Level Set
Methods and Fast Marching Methods", J.A. Sethian, Cambridge Press,
Second edition, 1999.
See:
itk::simple::ReinitializeLevelSet for the procedural interface
itk::ReinitializeLevelSetImageFilter for the Doxygen on the original ITK class.
C++ includes: sitkReinitializeLevelSetImageFilter.h
-
Field Summary
Fields inherited from class ProcessObject
swigCMemOwn -
Constructor Summary
ConstructorsModifierConstructorDescriptionitk::simple::ReinitializeLevelSetImageFilter::ReinitializeLevelSetImageFilter() Default Constructor that takes no arguments and initializes default parametersprotectedReinitializeLevelSetImageFilter(long cPtr, boolean cMemoryOwn) -
Method Summary
Modifier and TypeMethodDescriptionvoiddelete()virtual itk::simple::ReinitializeLevelSetImageFilter::~ReinitializeLevelSetImageFilter() DestructorImage itk::simple::ReinitializeLevelSetImageFilter::Execute(const Image &image1) Execute the filter on the input imageprotected voidfinalize()protected static longdoubledouble itk::simple::ReinitializeLevelSetImageFilter::GetInputNarrowBandwidth() const Set/Get the input narrow bandwidth.doubledouble itk::simple::ReinitializeLevelSetImageFilter::GetLevelSetValue() const Set/Get the value of the level set to be located.getName()std::string itk::simple::ReinitializeLevelSetImageFilter::GetName() const Name of this classbooleanbool itk::simple::ReinitializeLevelSetImageFilter::GetNarrowBanding() const Set/Get the narrowbanding flag.doubledouble itk::simple::ReinitializeLevelSetImageFilter::GetOutputNarrowBandwidth() const Set/Get the output narrow bandwidth.voidSelf & itk::simple::ReinitializeLevelSetImageFilter::NarrowBandingOff()voidSelf & itk::simple::ReinitializeLevelSetImageFilter::NarrowBandingOn() Set the value of NarrowBanding to true or false respectfully.voidnarrowBandwidth(double value) void itk::simple::ReinitializeLevelSetImageFilter::NarrowBandwidth(double value) Set the bandwidth for both the input and output narrowband, By default, both the input and output are set to 12.voidsetInputNarrowBandwidth(double InputNarrowBandwidth) Self & itk::simple::ReinitializeLevelSetImageFilter::SetInputNarrowBandwidth(double InputNarrowBandwidth) Set/Get the input narrow bandwidth.voidsetLevelSetValue(double LevelSetValue) Self & itk::simple::ReinitializeLevelSetImageFilter::SetLevelSetValue(double LevelSetValue) Set/Get the value of the level set to be located.voidsetNarrowBanding(boolean NarrowBanding) Self & itk::simple::ReinitializeLevelSetImageFilter::SetNarrowBanding(bool NarrowBanding) Set/Get the narrowbanding flag.voidsetOutputNarrowBandwidth(double OutputNarrowBandwidth) Self & itk::simple::ReinitializeLevelSetImageFilter::SetOutputNarrowBandwidth(double OutputNarrowBandwidth) Set/Get the output narrow bandwidth.protected static longtoString()std::string itk::simple::ReinitializeLevelSetImageFilter::ToString() const Print ourselves outMethods inherited from class ImageFilter
getCPtr, swigReleaseModifier and TypeMethodDescriptionprotected static longgetCPtr(ImageFilter obj) protected static longswigRelease(ImageFilter obj) Methods inherited from class ProcessObject
abort, addCommand, debugOff, debugOn, getCPtr, getDebug, getGlobalDefaultCoordinateTolerance, getGlobalDefaultDebug, getGlobalDefaultDirectionTolerance, getGlobalDefaultNumberOfThreads, getGlobalDefaultThreader, getGlobalWarningDisplay, getMaximumNumberOfThreads, getNumberOfThreads, getNumberOfWorkUnits, getProgress, globalDefaultDebugOff, globalDefaultDebugOn, globalWarningDisplayOff, globalWarningDisplayOn, hasCommand, removeAllCommands, setDebug, setGlobalDefaultCoordinateTolerance, setGlobalDefaultDebug, setGlobalDefaultDirectionTolerance, setGlobalDefaultNumberOfThreads, setGlobalDefaultThreader, setGlobalWarningDisplay, setMaximumNumberOfThreads, setNumberOfThreads, setNumberOfWorkUnits, swigReleaseModifier and TypeMethodDescriptionvoidabort()virtual void itk::simple::ProcessObject::Abort() Sets an abort flag on the active process.intaddCommand(EventEnum event, Command cmd) virtual int itk::simple::ProcessObject::AddCommand(itk::simple::EventEnum event, itk::simple::Command &cmd) Add a Command Object to observer the event.voiddebugOff()voiddebugOn()protected static longgetCPtr(ProcessObject obj) booleangetDebug()static doublestatic booleanstatic doublestatic longstatic Stringstatic booleanlonglonglongfloatvirtual float itk::simple::ProcessObject::GetProgress() const An Active Measurement of the progress of execution.static voidstatic voidstatic voidstatic voidbooleanhasCommand(EventEnum event) virtual bool itk::simple::ProcessObject::HasCommand(itk::simple::EventEnum event) const Query of this object has any registered commands for event.voidvirtual void itk::simple::ProcessObject::RemoveAllCommands() Remove all registered commands.voidsetDebug(boolean debugFlag) static voidsetGlobalDefaultCoordinateTolerance(double arg0) static voidsetGlobalDefaultDebug(boolean debugFlag) static voidsetGlobalDefaultDirectionTolerance(double arg0) static voidsetGlobalDefaultNumberOfThreads(long n) static booleansetGlobalDefaultThreader(String threader) static voidsetGlobalWarningDisplay(boolean flag) voidsetMaximumNumberOfThreads(long n) voidsetNumberOfThreads(long n) voidsetNumberOfWorkUnits(long n) protected static longswigRelease(ProcessObject obj)
-
Constructor Details
-
ReinitializeLevelSetImageFilter
protected ReinitializeLevelSetImageFilter(long cPtr, boolean cMemoryOwn) -
ReinitializeLevelSetImageFilter
public ReinitializeLevelSetImageFilter()itk::simple::ReinitializeLevelSetImageFilter::ReinitializeLevelSetImageFilter() Default Constructor that takes no arguments and initializes default parameters
-
-
Method Details
-
getCPtr
-
swigRelease
-
finalize
protected void finalize()- Overrides:
finalizein classImageFilter
-
delete
public void delete()virtual itk::simple::ReinitializeLevelSetImageFilter::~ReinitializeLevelSetImageFilter() Destructor- Overrides:
deletein classImageFilter
-
setLevelSetValue
public void setLevelSetValue(double LevelSetValue) Self & itk::simple::ReinitializeLevelSetImageFilter::SetLevelSetValue(double LevelSetValue) Set/Get the value of the level set to be located. The default value is 0. -
getLevelSetValue
public double getLevelSetValue()double itk::simple::ReinitializeLevelSetImageFilter::GetLevelSetValue() const Set/Get the value of the level set to be located. The default value is 0. -
setNarrowBanding
public void setNarrowBanding(boolean NarrowBanding) Self & itk::simple::ReinitializeLevelSetImageFilter::SetNarrowBanding(bool NarrowBanding) Set/Get the narrowbanding flag. By default, narrowbanding is switched off. -
narrowBandingOn
public void narrowBandingOn()Self & itk::simple::ReinitializeLevelSetImageFilter::NarrowBandingOn() Set the value of NarrowBanding to true or false respectfully. -
narrowBandingOff
public void narrowBandingOff()Self & itk::simple::ReinitializeLevelSetImageFilter::NarrowBandingOff() -
getNarrowBanding
public boolean getNarrowBanding()bool itk::simple::ReinitializeLevelSetImageFilter::GetNarrowBanding() const Set/Get the narrowbanding flag. By default, narrowbanding is switched off. -
setInputNarrowBandwidth
public void setInputNarrowBandwidth(double InputNarrowBandwidth) Self & itk::simple::ReinitializeLevelSetImageFilter::SetInputNarrowBandwidth(double InputNarrowBandwidth) Set/Get the input narrow bandwidth. The default value is 12. -
getInputNarrowBandwidth
public double getInputNarrowBandwidth()double itk::simple::ReinitializeLevelSetImageFilter::GetInputNarrowBandwidth() const Set/Get the input narrow bandwidth. The default value is 12. -
setOutputNarrowBandwidth
public void setOutputNarrowBandwidth(double OutputNarrowBandwidth) Self & itk::simple::ReinitializeLevelSetImageFilter::SetOutputNarrowBandwidth(double OutputNarrowBandwidth) Set/Get the output narrow bandwidth. The default value is 12. -
getOutputNarrowBandwidth
public double getOutputNarrowBandwidth()double itk::simple::ReinitializeLevelSetImageFilter::GetOutputNarrowBandwidth() const Set/Get the output narrow bandwidth. The default value is 12. -
getName
std::string itk::simple::ReinitializeLevelSetImageFilter::GetName() const Name of this class- Overrides:
getNamein classProcessObject
-
toString
std::string itk::simple::ReinitializeLevelSetImageFilter::ToString() const Print ourselves out- Overrides:
toStringin classProcessObject
-
execute
-
narrowBandwidth
public void narrowBandwidth(double value) void itk::simple::ReinitializeLevelSetImageFilter::NarrowBandwidth(double value) Set the bandwidth for both the input and output narrowband, By default, both the input and output are set to 12.
-