66 virtual unsigned int GetDepth() = 0;
73 virtual unsigned int GetWidth() = 0;
76 virtual void SetDepth(
unsigned int depth) = 0;
79 virtual void SetWidth(
unsigned int width) = 0;
86 virtual void BuildFromBuffer(
const void *buffer,
87 const unsigned int xsize,
const unsigned int ysize,
const unsigned int zsize) = 0;
102 virtual int GetColorTableSize()
const = 0;
113 template<
typename TPixel,
unsigned int ColorTableSize,
typename MappingFunctionType >
117 ITK_DISALLOW_COPY_AND_ASSIGN(
Octree);
134 void BuildFromBuffer(
const void *buffer,
const unsigned int xsize,
const unsigned int ysize,
const unsigned int zsize)
override;
140 void SetColor(
unsigned int color) { m_Tree.SetColor(color); }
142 void SetTrueDims(
const unsigned int Dim0,
const unsigned int Dim1,
143 const unsigned int Dim2);
145 int GetValue(
const unsigned int Dim0,
const unsigned int Dim1,
146 const unsigned int Dim2);
148 void SetWidth(
unsigned int width)
override;
150 void SetDepth(
unsigned int depth)
override;
152 unsigned int GetWidth()
override;
154 unsigned int GetDepth()
override;
160 int GetColorTableSize()
const override;
163 OctreeNodeBranch * maskToOctree(
const TPixel *Mask,
unsigned width,
unsigned x,
164 unsigned y,
unsigned z,
unsigned xsize,
165 unsigned ysize,
unsigned zsize);
171 unsigned int m_Width{0};
173 unsigned int m_Depth{0};
174 unsigned int m_TrueDims[3];
181 #ifndef ITK_MANUAL_INSTANTIATION
182 #include "itkOctree.hxx"
185 #endif // itkOctree_h
Light weight base class for most itk classes.
Provides non-templated access to templated instances of Octree.
void SetColor(unsigned int color)
void SetTree(OctreeNodeBranch *branch)
A data structure representing a node in an Octree.
MappingFunctionType m_MappingFunction
class ITK_FORWARD_EXPORT OctreeBase
Represent a 3D Image with an Octree data structure.
typename ImageType::Pointer ImageTypePointer
Base class for most ITK classes.
Templated n-dimensional image class.