50 #if !defined(ITK_LEGACY_REMOVE)
53 static constexpr
OctreeEnum UNKNOWN_PLANE = OctreeEnum::UNKNOWN_PLANE;
54 static constexpr
OctreeEnum SAGITAL_PLANE = OctreeEnum::SAGITAL_PLANE;
55 static constexpr
OctreeEnum CORONAL_PLANE = OctreeEnum::CORONAL_PLANE;
56 static constexpr
OctreeEnum TRANSVERSE_PLANE = OctreeEnum::TRANSVERSE_PLANE;
83 SetDepth(
unsigned int depth) = 0;
87 SetWidth(
unsigned int width) = 0;
95 BuildFromBuffer(
const void * buffer,
96 const unsigned int xsize,
97 const unsigned int ysize,
98 const unsigned int zsize) = 0;
111 GetColorTable()
const = 0;
115 GetColorTableSize()
const = 0;
126 template <
typename TPixel,
unsigned int ColorTableSize,
typename MappingFunctionType>
130 ITK_DISALLOW_COPY_AND_MOVE(
Octree);
143 itkOverrideGetNameOfClassMacro(
Octree);
149 BuildFromBuffer(
const void * frombuffer,
150 const unsigned int xsize,
151 const unsigned int ysize,
152 const unsigned int zsize)
override;
162 m_Tree.SetColor(color);
167 m_Tree.SetBranch(branch);
170 SetTrueDims(
const unsigned int Dim0,
const unsigned int Dim1,
const unsigned int Dim2);
173 GetValue(
const unsigned int Dim0,
const unsigned int Dim1,
const unsigned int Dim2);
176 SetWidth(
unsigned int width)
override;
179 SetDepth(
unsigned int depth)
override;
190 #if !defined(ITK_LEGACY_REMOVE)
191 static constexpr OctreeEnum UNKNOWN_PLANE = OctreeEnum::UNKNOWN_PLANE;
192 static constexpr OctreeEnum SAGITAL_PLANE = OctreeEnum::SAGITAL_PLANE;
193 static constexpr OctreeEnum CORONAL_PLANE = OctreeEnum::CORONAL_PLANE;
194 static constexpr OctreeEnum TRANSVERSE_PLANE = OctreeEnum::TRANSVERSE_PLANE;
201 GetColorTable()
const override;
204 GetColorTableSize()
const override;
208 maskToOctree(
const TPixel * Mask,
217 OctreeEnum m_Plane{ OctreeEnum::UNKNOWN_PLANE };
221 unsigned int m_Width{ 0 };
223 unsigned int m_Depth{ 0 };
224 unsigned int m_TrueDims[3]{};
227 MappingFunctionType m_MappingFunction{};
231 #ifndef ITK_MANUAL_INSTANTIATION
232 # include "itkOctree.hxx"
235 #endif // itkOctree_h