19 #ifndef itkLevelSetContainer_h
20 #define itkLevelSetContainer_h
38 template<
typename TIdentifier,
typename TLevelSet >
71 itkStaticConstMacro (
Dimension,
unsigned int, LevelSetType::Dimension );
89 void operator = ( const
Self& ) ITK_DELETE_FUNCTION;
96 template< typename TIdentifier, typename TImage >
109 itkNewMacro ( Self );
129 itkStaticConstMacro (
Dimension,
unsigned int, LevelSetType::Dimension );
147 LevelSetContainerType internalContainer = iOther->GetContainer();
148 LevelSetContainerConstIteratorType it = internalContainer.begin();
151 LevelSetContainerType newContainer;
153 while( it != internalContainer.end() )
157 LevelSetPointer temp_ls = LevelSetType::New();
159 LevelSetImagePointer image = LevelSetImageType::New();
160 const LevelSetImageType * otherImage = (it->second)->GetImage();
162 image->CopyInformation( otherImage );
163 image->SetBufferedRegion( otherImage->GetBufferedRegion() );
164 image->SetRequestedRegion( otherImage->GetRequestedRegion() );
165 image->SetLargestPossibleRegion( otherImage->GetLargestPossibleRegion() );
169 temp_ls->SetImage( image );
170 newContainer[ it->first ] = temp_ls;
171 newContainer[ it->first ]->SetDomainOffset( (it->second)->GetDomainOffset() );
175 LevelSetPointer temp_ls;
176 newContainer[ it->first ] = temp_ls;
190 void operator = ( const Self& ) ITK_DELETE_FUNCTION;
195 #endif // itkLevelSetContainer_h
Superclass::IdListImageType IdListImageType
Superclass::CacheImageType CacheImageType
LevelSetContainerBase< TIdentifier, LevelSetType > Superclass
DomainMapImageFilterType::Pointer DomainMapImageFilterPointer
Superclass::OutputType OutputPixelType
Superclass::LevelSetIdentifierType LevelSetIdentifierType
Light weight base class for most itk classes.
Superclass::HeavisideType HeavisideType
Superclass::LevelSetContainerIteratorType LevelSetContainerIteratorType
LevelSetType::GradientType GradientType
Superclass::LevelSetContainerConstIteratorType LevelSetContainerConstIteratorType
Superclass::DomainIteratorType DomainIteratorType
Superclass::OutputRealType OutputRealType
Superclass::DomainMapImageFilterPointer DomainMapImageFilterPointer
LevelSetContainerType::iterator LevelSetContainerIteratorType
LevelSetType::HessianType HessianType
Superclass::GradientType GradientType
Superclass::LevelSetIdentifierType LevelSetIdentifierType
IdListType::iterator IdListIterator
HeavisideStepFunctionBase< OutputRealType, OutputRealType > HeavisideType
SmartPointer< const Self > ConstPointer
LevelSetContainerBase< TIdentifier, TLevelSet > Superclass
LevelSetDenseImage< TImage > LevelSetType
Superclass::HeavisideConstPointer HeavisideConstPointer
Superclass::HeavisideConstPointer HeavisideConstPointer
Superclass::DomainMapImageFilterPointer DomainMapImageFilterPointer
Superclass::LevelSetContainerIteratorType LevelSetContainerIteratorType
SmartPointer< const Self > ConstPointer
Superclass::LevelSetDomainType LevelSetDomainType
Superclass::OutputRealType OutputRealType
Superclass::CacheImageType CacheImageType
Superclass::LevelSetPointer LevelSetPointer
Superclass::InputIndexType InputIndexType
Superclass::IdListImageType IdListImageType
Superclass::IdListIterator IdListIterator
static const unsigned int Dimension
HeavisideType::ConstPointer HeavisideConstPointer
Superclass::InputIndexType InputIndexType
Superclass::OutputType OutputPixelType
Superclass::DomainMapImageFilterType DomainMapImageFilterType
Superclass::HeavisideType HeavisideType
Superclass::LevelSetPointer LevelSetPointer
Superclass::DomainMapImageFilterType DomainMapImageFilterType
LevelSetType::OutputType OutputType
Superclass::HessianType HessianType
TIdentifier LevelSetIdentifierType
Base class for the "dense" representation of a level-set function on one image.
Superclass::GradientType GradientType
LevelSetContainerType::const_iterator LevelSetContainerConstIteratorType
Superclass::LevelSetDomainType LevelSetDomainType
Superclass::IdListIterator IdListIterator
Superclass::IdListType IdListType
SmartPointer< Self > Pointer
LevelSetType::Pointer LevelSetPointer
LevelSetType::ImageType LevelSetImageType
std::map< LevelSetIdentifierType, LevelSetPointer > LevelSetContainerType
DomainMapImageFilterType::LevelSetDomain LevelSetDomainType
Image< short, Dimension > CacheImageType
DomainContainerType::iterator DomainIteratorType
Superclass::LevelSetContainerConstIteratorType LevelSetContainerConstIteratorType
void CopyInformationAndAllocate(const Self *iOther, const bool &iAllocate)
LevelSetDomainMapImageFilter< IdListImageType, CacheImageType > DomainMapImageFilterType
Superclass::IdListType IdListType
Superclass::LevelSetContainerType LevelSetContainerType
Superclass::LevelSetContainerType LevelSetContainerType
LevelSetType::InputType InputIndexType
Superclass::LevelSetType LevelSetType
Image< IdListType, Dimension > IdListImageType
SmartPointer< Self > Pointer
LevelSetImageType::Pointer LevelSetImagePointer
Superclass::HessianType HessianType
Define additional traits for native types such as int or float.
Superclass::DomainIteratorType DomainIteratorType
std::list< LevelSetIdentifierType > IdListType
void SetContainer(const LevelSetContainerType &iContainer)
LevelSetType::OutputRealType OutputRealType