19 #ifndef itkWhitakerSparseLevelSetImage_h
20 #define itkWhitakerSparseLevelSetImage_h
40 template<
typename TOutput,
unsigned int VDimension >
58 static constexpr
unsigned int Dimension = VDimension;
87 using Superclass::Evaluate;
90 #ifdef ITK_USE_CONCEPT_CHECKING
97 #endif // ITK_USE_CONCEPT_CHECKING
108 template<
typename TLabel >
113 typename OutputLabelObjectType::Pointer
object = OutputLabelObjectType::New();
116 for(
LayerIdType status = this->MinusThreeLayer(); status < this->PlusOneLayer(); ++status )
120 for(
SizeValueType i = 0; i < labelObject->GetNumberOfLines(); ++i )
122 object->AddLine( labelObject->GetLine( i ) );
135 void InitializeLayers()
override;
137 void InitializeInternalLabelList()
override;
141 #ifndef ITK_MANUAL_INSTANTIATION
142 #include "itkWhitakerSparseLevelSetImage.hxx"
145 #endif // itkWhitakerSparseLevelSetImage_h
typename LabelObjectType::LengthType LabelObjectLengthType
typename LayerMapType::const_iterator LayerMapConstIterator
typename LabelMapType::RegionType RegionType
std::map< InputType, OutputType, Functor::LexicographicCompare > LayerType
static LayerIdType MinusThreeLayer()
unsigned long SizeValueType
typename Superclass::OutputRealType OutputRealType
typename LabelObjectType::Pointer LabelObjectPointer
static LayerIdType MinusOneLayer()
typename Superclass::HessianType HessianType
LabelObject< TLabel, Dimension >::Pointer GetAsLabelObject()
constexpr unsigned int Dimension
Base class for the sparse representation of a level-set function on one Image.
typename LayerMapType::iterator LayerMapIterator
typename Superclass::InputType InputType
typename LayerType::iterator LayerIterator
Derived class for the sparse-field representation of level-set function.
typename LayerType::const_iterator LayerConstIterator
static LayerIdType MinusTwoLayer()
static LayerIdType PlusThreeLayer()
static LayerIdType PlusOneLayer()
std::map< LayerIdType, LayerType > LayerMapType
typename Superclass::OutputType OutputType
typename Superclass::LevelSetDataType LevelSetDataType
The base class for the representation of an labeled binary object in an image.
static LayerIdType ZeroLayer()
typename Superclass::GradientType GradientType
Templated n-dimensional image to store labeled objects.
typename LabelObjectType::LineType LabelObjectLineType
typename LabelMapType::ConstPointer LabelMapConstPointer
static LayerIdType PlusTwoLayer()
ImageBaseType::RegionType RegionType
typename LabelMapType::Pointer LabelMapPointer
#define itkConceptMacro(name, concept)
Base class for all data objects in ITK.