82 virtual void SetDepth(
unsigned int depth) = 0;
85 virtual void SetWidth(
unsigned int width) = 0;
93 const unsigned int xsize,
const unsigned int ysize,
const unsigned int zsize) = 0;
119 template<
typename TPixel,
unsigned int ColorTableSize,
typename MappingFunctionType >
135 itkTypeMacro(
Octree, Superclass);
137 ImageTypePointer GetImage();
139 virtual void BuildFromBuffer(
const void *buffer,
const unsigned int xsize,
const unsigned int ysize,
const unsigned int zsize) ITK_OVERRIDE;
145 void SetColor(
unsigned int color) { m_Tree.SetColor(color); }
147 void SetTrueDims(
const unsigned int Dim0,
const unsigned int Dim1,
148 const unsigned int Dim2);
150 int GetValue(
const unsigned int Dim0,
const unsigned int Dim1,
151 const unsigned int Dim2);
153 virtual void SetWidth(
unsigned int width) ITK_OVERRIDE;
155 virtual void SetDepth(
unsigned int depth) ITK_OVERRIDE;
157 virtual unsigned int GetWidth() ITK_OVERRIDE;
159 virtual unsigned int GetDepth() ITK_OVERRIDE;
168 Octree(
const Self &) ITK_DELETE_FUNCTION;
169 void operator=(
const Self &) ITK_DELETE_FUNCTION;
171 OctreeNodeBranch * maskToOctree(
const TPixel *Mask,
unsigned width,
unsigned x,
172 unsigned y,
unsigned z,
unsigned xsize,
173 unsigned ysize,
unsigned zsize);
180 unsigned int m_TrueDims[3];
188 #ifndef ITK_MANUAL_INSTANTIATION 189 #include "itkOctree.hxx"
virtual unsigned int GetDepth()=0
Provides non-templated access to templated instances of Octree.
virtual void SetWidth(unsigned int width)=0
virtual void BuildFromBuffer(const void *buffer, const unsigned int xsize, const unsigned int ysize, const unsigned int zsize)=0
The "itk" namespace contains all Insight Segmentation and Registration Toolkit (ITK) classes...
void SetColor(unsigned int color)
void SetTree(OctreeNodeBranch *branch)
Image< TPixel, 3 > ImageType
virtual unsigned int GetWidth()=0
virtual void SetDepth(unsigned int depth)=0
virtual OctreeNode * GetTree()=0
A data structure representing a node in an Octree.
void operator=(const Self &) ITK_DELETE_FUNCTION
SmartPointer< Self > Pointer
virtual int GetColorTableSize() const =0
MappingFunctionType m_MappingFunction
Represent a 3D Image with an Octree data structure.
ImageType::Pointer ImageTypePointer
Base class for most ITK classes.
SmartPointer< Self > Pointer
virtual const OctreeNodeBranch * GetColorTable() const =0
Templated n-dimensional image class.