#include <itkLevelSetNeighborhoodExtractor.h>
Locate pixels of a particular level set.
LevelSetNeighborhoodExtractor locates a particular level set in the input level set. Specifically, the method Locate() fills two containers: one containing pixels immediately inside the contour defined by the level set and the other containing pixels immediately outside. For each located pixel, an estimated distance to the particular level set is also calculated.
The containers InsidePoints and OutsidePoints can then be used in FastMarchingImageFilter to produce a signed distance map from the specified level set.
This class is templated over the image type representing the level set.
This class supports narrowbanding. If a input narrowband is provided, the algorithm will only search pixels within the narrowband.
Implementation of this class is based on [95].
Definition at line 55 of file itkLevelSetNeighborhoodExtractor.h.
Public Member Functions | |
virtual::itk::LightObject::Pointer | CreateAnother () const |
NodeContainerPointer | GetInsidePoints () |
virtual double | GetLevelSetValue () const |
const char * | GetNameOfClass () const override |
virtual double | GetNarrowBandwidth () const |
NodeContainerPointer | GetOutsidePoints () |
void | Locate () |
virtual void | SetLevelSetValue (double _arg) |
virtual void | SetNarrowBanding (bool _arg) |
virtual void | SetNarrowBandwidth (double _arg) |
virtual void | SetInputLevelSet (const LevelSetImageType *_arg) |
virtual const LevelSetImageType * | GetInputLevelSet () const |
virtual bool | GetNarrowBanding () const |
virtual void | NarrowBandingOn () |
virtual void | NarrowBandingOff () |
void | SetInputNarrowBand (NodeContainer *ptr) |
virtual NodeContainer * | GetModifiableInputNarrowBand () |
virtual const NodeContainer * | GetInputNarrowBand () const |
![]() | |
virtual void | AbortGenerateDataOff () |
virtual void | AbortGenerateDataOn () |
virtual::itk::LightObject::Pointer | CreateAnother () const |
virtual const bool & | GetAbortGenerateData () const |
const char * | GetNameOfClass () const override |
virtual void | SetAbortGenerateData (bool _arg) |
virtual void | UpdateOutputData () |
void | UpdateProgress (float amount) |
virtual void | SetProgress (float _arg) |
virtual const float & | GetProgress () const |
![]() | |
unsigned long | AddObserver (const EventObject &event, Command *cmd) const |
unsigned long | AddObserver (const EventObject &event, std::function< void(const EventObject &)> function) const |
LightObject::Pointer | CreateAnother () const override |
virtual void | DebugOff () const |
virtual void | DebugOn () const |
Command * | GetCommand (unsigned long tag) |
bool | GetDebug () const |
MetaDataDictionary & | GetMetaDataDictionary () |
const MetaDataDictionary & | GetMetaDataDictionary () const |
virtual ModifiedTimeType | GetMTime () const |
const char * | GetNameOfClass () const override |
virtual const TimeStamp & | GetTimeStamp () const |
bool | HasObserver (const EventObject &event) const |
void | InvokeEvent (const EventObject &) |
void | InvokeEvent (const EventObject &) const |
virtual void | Modified () const |
void | Register () const override |
void | RemoveAllObservers () |
void | RemoveObserver (unsigned long tag) const |
void | SetDebug (bool debugFlag) const |
void | SetReferenceCount (int) override |
void | UnRegister () const noexcept override |
void | SetMetaDataDictionary (const MetaDataDictionary &rhs) |
void | SetMetaDataDictionary (MetaDataDictionary &&rrhs) |
virtual void | SetObjectName (std::string _arg) |
virtual const std::string & | GetObjectName () const |
![]() | |
Pointer | Clone () const |
virtual void | Delete () |
virtual int | GetReferenceCount () const |
void | Print (std::ostream &os, Indent indent=0) const |
Static Public Member Functions | |
static Pointer | New () |
![]() | |
static Pointer | New () |
![]() | |
static bool | GetGlobalWarningDisplay () |
static void | GlobalWarningDisplayOff () |
static void | GlobalWarningDisplayOn () |
static Pointer | New () |
static void | SetGlobalWarningDisplay (bool val) |
![]() | |
static void | BreakOnError () |
static Pointer | New () |
Static Public Attributes | |
static constexpr unsigned int | SetDimension = LevelSetType::SetDimension |
Protected Member Functions | |
virtual double | CalculateDistance (IndexType &index) |
void | GenerateData () override |
LevelSetImageType::PixelType | GetLargeValue () const |
bool | GetLastPointIsInside () const |
const NodeType & | GetNodeUsedInCalculation (unsigned int idx) const |
virtual void | Initialize () |
LevelSetNeighborhoodExtractor () | |
void | PrintSelf (std::ostream &os, Indent indent) const override |
~LevelSetNeighborhoodExtractor () override=default | |
![]() | |
LightProcessObject () | |
void | PrintSelf (std::ostream &os, Indent indent) const override |
~LightProcessObject () override | |
![]() | |
Object () | |
bool | PrintObservers (std::ostream &os, Indent indent) const |
void | PrintSelf (std::ostream &os, Indent indent) const override |
virtual void | SetTimeStamp (const TimeStamp &timeStamp) |
~Object () override | |
![]() | |
virtual LightObject::Pointer | InternalClone () const |
LightObject () | |
virtual void | PrintHeader (std::ostream &os, Indent indent) const |
virtual void | PrintTrailer (std::ostream &os, Indent indent) const |
virtual | ~LightObject () |
Private Member Functions | |
void | GenerateDataFull () |
void | GenerateDataNarrowBand () |
Private Attributes | |
LevelSetImageType::RegionType | m_ImageRegion {} |
LevelSetConstPointer | m_InputLevelSet {} |
NodeContainerPointer | m_InputNarrowBand {} |
NodeContainerPointer | m_InsidePoints {} |
LevelSetImageType::PixelType | m_LargeValue {} |
bool | m_LastPointIsInside { false } |
double | m_LevelSetValue { 0.0 } |
bool | m_NarrowBanding { false } |
double | m_NarrowBandwidth { 12.0 } |
std::vector< NodeType > | m_NodesUsed {} |
NodeContainerPointer | m_OutsidePoints {} |
Additional Inherited Members | |
![]() | |
std::atomic< int > | m_ReferenceCount {} |
using itk::LevelSetNeighborhoodExtractor< TLevelSet >::ConstPointer = SmartPointer<const Self> |
Definition at line 64 of file itkLevelSetNeighborhoodExtractor.h.
using itk::LevelSetNeighborhoodExtractor< TLevelSet >::IndexType = Index<Self::SetDimension> |
Index type alias support
Definition at line 86 of file itkLevelSetNeighborhoodExtractor.h.
using itk::LevelSetNeighborhoodExtractor< TLevelSet >::LevelSetConstPointer = typename LevelSetType::LevelSetConstPointer |
Definition at line 76 of file itkLevelSetNeighborhoodExtractor.h.
using itk::LevelSetNeighborhoodExtractor< TLevelSet >::LevelSetImageType = typename LevelSetType::LevelSetImageType |
Definition at line 74 of file itkLevelSetNeighborhoodExtractor.h.
using itk::LevelSetNeighborhoodExtractor< TLevelSet >::LevelSetPointer = typename LevelSetType::LevelSetPointer |
Definition at line 75 of file itkLevelSetNeighborhoodExtractor.h.
using itk::LevelSetNeighborhoodExtractor< TLevelSet >::LevelSetType = LevelSetTypeDefault<TLevelSet> |
LevelSetType type alias support
Definition at line 73 of file itkLevelSetNeighborhoodExtractor.h.
using itk::LevelSetNeighborhoodExtractor< TLevelSet >::NodeContainer = typename LevelSetType::NodeContainer |
Definition at line 79 of file itkLevelSetNeighborhoodExtractor.h.
using itk::LevelSetNeighborhoodExtractor< TLevelSet >::NodeContainerPointer = typename LevelSetType::NodeContainerPointer |
Definition at line 80 of file itkLevelSetNeighborhoodExtractor.h.
using itk::LevelSetNeighborhoodExtractor< TLevelSet >::NodeType = typename LevelSetType::NodeType |
Definition at line 78 of file itkLevelSetNeighborhoodExtractor.h.
using itk::LevelSetNeighborhoodExtractor< TLevelSet >::PixelType = typename LevelSetType::PixelType |
Definition at line 77 of file itkLevelSetNeighborhoodExtractor.h.
using itk::LevelSetNeighborhoodExtractor< TLevelSet >::Pointer = SmartPointer<Self> |
Definition at line 63 of file itkLevelSetNeighborhoodExtractor.h.
using itk::LevelSetNeighborhoodExtractor< TLevelSet >::Self = LevelSetNeighborhoodExtractor |
Standard class typedefs.
Definition at line 61 of file itkLevelSetNeighborhoodExtractor.h.
using itk::LevelSetNeighborhoodExtractor< TLevelSet >::Superclass = LightProcessObject |
Definition at line 62 of file itkLevelSetNeighborhoodExtractor.h.
|
protected |
Referenced by GetNameOfClass().
|
overrideprotecteddefault |
|
protectedvirtual |
|
virtual |
Create an object from an instance, potentially deferring to a factory. This method allows you to create an instance of an object that is exactly the same type as the referring object. This is useful in cases where an object has been cast back to a base class.
Reimplemented from itk::LightObject.
Reimplemented in itk::LevelSetVelocityNeighborhoodExtractor< TLevelSet, TAuxValue, VAuxDimension >, itk::LevelSetVelocityNeighborhoodExtractor< TLevelSet, TAuxValue, VAuxDimension >, and itk::LevelSetVelocityNeighborhoodExtractor< TLevelSet, TAuxValue, VAuxDimension >.
|
overrideprotectedvirtual |
This method causes the filter to generate its output.
Reimplemented from itk::LightProcessObject.
|
private |
|
private |
|
virtual |
Get/Set the input level set.
|
virtual |
Set/Get the input narrowband. A narrowband is represented as a VectorContainer of LevelSetNodes.
|
inline |
Get the container of inside points. The inside points are stored in a VectorContainer of LevelSetNodes.
Definition at line 123 of file itkLevelSetNeighborhoodExtractor.h.
References m_InsidePoints.
|
inlineprotected |
Definition at line 148 of file itkLevelSetNeighborhoodExtractor.h.
References m_LargeValue.
|
inlineprotected |
Definition at line 169 of file itkLevelSetNeighborhoodExtractor.h.
References m_LastPointIsInside.
|
virtual |
Get the value of the level set to be located.
|
virtual |
Set/Get the input narrowband. A narrowband is represented as a VectorContainer of LevelSetNodes.
|
overridevirtual |
Reimplemented from itk::LightObject.
Reimplemented in itk::LevelSetVelocityNeighborhoodExtractor< TLevelSet, TAuxValue, VAuxDimension >, itk::LevelSetVelocityNeighborhoodExtractor< TLevelSet, TAuxValue, VAuxDimension >, and itk::LevelSetVelocityNeighborhoodExtractor< TLevelSet, TAuxValue, VAuxDimension >.
References LevelSetNeighborhoodExtractor().
|
virtual |
Get the narrowbanding flag.
|
virtual |
Get the narrow band width.
|
inlineprotected |
Definition at line 154 of file itkLevelSetNeighborhoodExtractor.h.
References m_NodesUsed.
|
inline |
Get the container of outside points. The outside points are stored in a VectorContainer of LevelSetNodes.
Definition at line 131 of file itkLevelSetNeighborhoodExtractor.h.
References m_OutsidePoints.
|
protectedvirtual |
void itk::LevelSetNeighborhoodExtractor< TLevelSet >::Locate | ( | ) |
Locate the level set. This method evokes the level set location algorithm.
|
virtual |
Get the narrowbanding flag.
|
virtual |
Get the narrowbanding flag.
|
static |
Method for creation through the object factory.
|
overrideprotectedvirtual |
Methods invoked by Print() to print information about the object including superclasses. Typically not called by the user (use Print() instead) but used in the hierarchical print process to combine the output of several classes.
Reimplemented from itk::LightObject.
Reimplemented in itk::LevelSetVelocityNeighborhoodExtractor< TLevelSet, TAuxValue, VAuxDimension >, itk::LevelSetVelocityNeighborhoodExtractor< TLevelSet, TAuxValue, VAuxDimension >, and itk::LevelSetVelocityNeighborhoodExtractor< TLevelSet, TAuxValue, VAuxDimension >.
|
virtual |
Get/Set the input level set.
void itk::LevelSetNeighborhoodExtractor< TLevelSet >::SetInputNarrowBand | ( | NodeContainer * | ptr | ) |
Set/Get the input narrowband. A narrowband is represented as a VectorContainer of LevelSetNodes.
|
virtual |
Set the value of the level set to be located. Default is 0.
|
virtual |
Set the narrowbanding flag.
|
virtual |
Set the narrow band width. Default is 12.
References itk::NumericTraits< T >::max().
|
private |
Definition at line 192 of file itkLevelSetNeighborhoodExtractor.h.
|
private |
Definition at line 186 of file itkLevelSetNeighborhoodExtractor.h.
|
private |
Definition at line 190 of file itkLevelSetNeighborhoodExtractor.h.
|
private |
Definition at line 183 of file itkLevelSetNeighborhoodExtractor.h.
Referenced by GetInsidePoints().
|
private |
Definition at line 193 of file itkLevelSetNeighborhoodExtractor.h.
Referenced by GetLargeValue().
|
private |
Definition at line 197 of file itkLevelSetNeighborhoodExtractor.h.
Referenced by GetLastPointIsInside().
|
private |
Definition at line 181 of file itkLevelSetNeighborhoodExtractor.h.
|
private |
Definition at line 188 of file itkLevelSetNeighborhoodExtractor.h.
|
private |
Definition at line 189 of file itkLevelSetNeighborhoodExtractor.h.
|
private |
Definition at line 195 of file itkLevelSetNeighborhoodExtractor.h.
Referenced by GetNodeUsedInCalculation().
|
private |
Definition at line 184 of file itkLevelSetNeighborhoodExtractor.h.
Referenced by GetOutsidePoints().
|
staticconstexpr |
SetDimension enumeration.
Definition at line 83 of file itkLevelSetNeighborhoodExtractor.h.