18 #ifndef __itkSparseFieldLevelSetImageFilter_h
19 #define __itkSparseFieldLevelSetImageFilter_h
35 template<
typename TValue >
72 template<
typename TNeighborhoodType >
79 itkStaticConstMacro(
Dimension,
unsigned int,
80 NeighborhoodType::Dimension);
101 void Print(std::ostream & os)
const;
229 template<
typename TInputImage,
typename TOutputImage >
257 TOutputImage::ImageDimension);
291 itkSetMacro(NumberOfLayers,
unsigned int);
292 itkGetConstMacro(NumberOfLayers,
unsigned int);
297 itkGetConstMacro(IsoSurfaceValue,
ValueType);
310 itkSetMacro(InterpolateSurfaceLocation,
bool);
311 itkGetConstMacro(InterpolateSurfaceLocation,
bool);
321 #ifdef ITK_USE_CONCEPT_CHECKING
346 {
return ( value + dt * change ); }
513 #ifndef ITK_MANUAL_INSTANTIATION
514 #include "itkSparseFieldLevelSetImageFilter.hxx"
SparseFieldLevelSetNode * Previous
const InputImageType * m_InputImage
~SparseFieldLevelSetImageFilter()
void ProcessOutsideList(LayerType *OutsideList, StatusType ChangeToStatus)
static StatusType m_StatusActiveChangingUp
void InitializeActiveLayerValues()
SparseFieldCityBlockNeighborList< NeighborhoodIterator< OutputImageType > > m_NeighborList
Light weight base class for most itk classes.
void ConstructLayer(StatusType from, StatusType to)
SmartPointer< const Self > ConstPointer
OutputImageType * m_OutputImage
Image< StatusType, itkGetStaticConstMacro(ImageDimension) > StatusImageType
void InterpolateSurfaceLocationOff()
void ProcessStatusList(LayerType *InputList, LayerType *OutputList, StatusType ChangeToStatus, StatusType SearchForStatus)
SparseFieldLevelSetImageFilter Self
NeighborhoodType::OffsetType OffsetType
static ValueType m_ValueZero
std::vector< OffsetType > m_NeighborhoodOffset
virtual void PrintSelf(std::ostream &os, Indent indent) const
A convenience class for storing indices which reference neighbor pixels within a neighborhood.
std::vector< LayerPointerType > LayerListType
SparseFieldCityBlockNeighborList()
virtual ValueType CalculateUpdateValue(const IndexType &, const TimeStepType &dt, const ValueType &value, const ValueType &change)
Superclass::RadiusType RadiusType
StatusImageType::Pointer m_StatusImage
static StatusType m_StatusActiveChangingDown
std::vector< ValueType > UpdateBufferType
void ConstructActiveLayer()
ValueType m_IsoSurfaceValue
OutputImageType::ValueType ValueType
int GetStride(unsigned int i)
This class implements a finite difference partial differential equation solver for evolving surfaces ...
void ApplyUpdate(const TimeStepType &dt)
TNeighborhoodType NeighborhoodType
static StatusType m_StatusNull
FiniteDifferenceFunctionType::NeighborhoodScalesType NeighborhoodScalesType
static ValueType m_ValueOne
void AllocateUpdateBuffer()
static const unsigned int ImageDimension
TimeStepType CalculateChange()
TOutputImage OutputImageType
FiniteDifferenceFunctionType::RadiusType RadiusType
SmartPointer< Self > Pointer
unsigned m_StrideTable[Dimension]
Superclass::IndexType IndexType
virtual void SetInterpolateSurfaceLocation(bool _arg)
TInputImage InputImageType
unsigned int m_NumberOfLayers
bool m_InterpolateSurfaceLocation
OutputImageType::IndexType IndexType
ObjectStore< LayerNodeType > LayerNodeStorageType
void PropagateAllLayerValues()
Superclass::RadiusType RadiusType
FiniteDifferenceImageFilter< TInputImage, TOutputImage > Superclass
virtual void InitializeBackgroundPixels()
std::vector< unsigned int > m_ArrayIndex
Superclass::NeighborhoodScalesType NeighborhoodScalesType
SparseFieldLevelSetNode< IndexType > LayerNodeType
Superclass::TimeStepType TimeStepType
SparseFieldLevelSetNode * Next
~SparseFieldCityBlockNeighborList()
LayerType::Pointer LayerPointerType
FiniteDifferenceFunctionType::TimeStepType TimeStepType
void PropagateLayerValues(StatusType from, StatusType to, StatusType promote, int InOrOut)
LayerNodeStorageType::Pointer m_LayerNodeStore
Control indentation during Print() invocation.
const unsigned int & GetSize() const
const RadiusType & GetRadius() const
void InterpolateSurfaceLocationOn()
NeighborhoodType::RadiusType RadiusType
const unsigned int & GetArrayIndex(unsigned int i) const
static StatusType m_StatusChanging
TInputImage InputImageType
double m_ConstantGradientValue
A very simple linked list that is used to manage nodes in a layer of a sparse field level-set solver...
OutputImageType::Pointer m_ShiftedImage
#define itkConceptMacro(name, concept)
A specialized memory management object for allocating and destroying contiguous blocks of objects...
void Print(std::ostream &os) const
void UpdateActiveLayerValues(TimeStepType dt, LayerType *StatusUpList, LayerType *StatusDownList)
SparseFieldLayer< LayerNodeType > LayerType
virtual void PostProcessOutput()
void operator=(const Self &)
const OffsetType & GetNeighborhoodOffset(unsigned int i) const
static const unsigned int Dimension
Templated n-dimensional image class.
static StatusType m_StatusBoundaryPixel
SparseFieldLevelSetImageFilter()
bool m_BoundsCheckingActive
UpdateBufferType m_UpdateBuffer