ImFusion SDK 4.3
Octree Class Reference

#include <ImFusion/Base/Octree.h>

Fast Octree space subdivision. More...

Detailed Description

Fast Octree space subdivision.

Public Member Functions

 Octree (std::shared_ptr< const MemImage > image, int minCubeSize)
 Creates and fills the Octree in a background thread with given image and minimum cube size.
 
 ~Octree ()
 Destructor, deletes the Octree.
 
bool setInsideRange (int min, int max)
 Set the intensity range defining 'inside' and update.
 
bool setInsideRange (double min, double max)
 Convenience method, set range with normalized scale (0..1)
 
const std::vector< int > & enumerate ()
 Enumerate all inside cube cells with their position and size.
 
const std::vector< int > & getCubesInside () const
 
bool isUsable () const
 Tells if the Octree is computed and ready to use.
 

Member Function Documentation

◆ setInsideRange()

bool setInsideRange ( int min,
int max )

Set the intensity range defining 'inside' and update.

Returns true if something has changed.


The documentation for this class was generated from the following file:
Search Tab / S to search, Esc to close