19 #ifndef itkLevelSetContainer_h
20 #define itkLevelSetContainer_h
38 template <
typename TIdentifier,
typename TLevelSet>
54 using typename Superclass::LevelSetIdentifierType;
56 using typename Superclass::LevelSetType;
57 using typename Superclass::LevelSetPointer;
58 using typename Superclass::InputIndexType;
60 using typename Superclass::OutputRealType;
61 using typename Superclass::GradientType;
62 using typename Superclass::HessianType;
64 using typename Superclass::LevelSetContainerType;
65 using typename Superclass::LevelSetContainerConstIteratorType;
66 using typename Superclass::LevelSetContainerIteratorType;
68 using typename Superclass::HeavisideType;
69 using typename Superclass::HeavisideConstPointer;
73 using typename Superclass::IdListType;
74 using typename Superclass::IdListIterator;
75 using typename Superclass::IdListImageType;
76 using typename Superclass::CacheImageType;
77 using typename Superclass::DomainMapImageFilterType;
79 using typename Superclass::DomainMapImageFilterPointer;
80 using typename Superclass::LevelSetDomainType;
81 using typename Superclass::DomainIteratorType;
92 template <
typename TIdentifier,
typename TImage>
147 auto it = internalContainer.begin();
152 while (it != internalContainer.end())
161 image->CopyInformation(otherImage);
162 image->SetBufferedRegion(otherImage->GetBufferedRegion());
163 image->SetRequestedRegion(otherImage->GetRequestedRegion());
164 image->SetLargestPossibleRegion(otherImage->GetLargestPossibleRegion());
165 image->AllocateInitialized();
167 temp_ls->SetImage(image);
168 newContainer[it->first] = temp_ls;
169 newContainer[it->first]->SetDomainOffset((it->second)->GetDomainOffset());
174 newContainer[it->first] = temp_ls;
189 #endif // itkLevelSetContainer_h