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;
161 m_Tree.SetColor(color);
166 m_Tree.SetBranch(branch);
169 SetTrueDims(
const unsigned int Dim0,
const unsigned int Dim1,
const unsigned int Dim2);
172 GetValue(
const unsigned int Dim0,
const unsigned int Dim1,
const unsigned int Dim2);
175 SetWidth(
unsigned int width)
override;
178 SetDepth(
unsigned int depth)
override;
189 #if !defined(ITK_LEGACY_REMOVE)
190 static constexpr OctreeEnum UNKNOWN_PLANE = OctreeEnum::UNKNOWN_PLANE;
191 static constexpr OctreeEnum SAGITAL_PLANE = OctreeEnum::SAGITAL_PLANE;
192 static constexpr OctreeEnum CORONAL_PLANE = OctreeEnum::CORONAL_PLANE;
193 static constexpr OctreeEnum TRANSVERSE_PLANE = OctreeEnum::TRANSVERSE_PLANE;
200 GetColorTable()
const override;
203 GetColorTableSize()
const override;
207 maskToOctree(
const TPixel * Mask,
216 OctreeEnum m_Plane{ OctreeEnum::UNKNOWN_PLANE };
220 unsigned int m_Width{ 0 };
222 unsigned int m_Depth{ 0 };
223 unsigned int m_TrueDims[3]{};
226 MappingFunctionType m_MappingFunction{};
230 #ifndef ITK_MANUAL_INSTANTIATION
231 # include "itkOctree.hxx"
234 #endif // itkOctree_h