![]() |
ImFusion SDK 4.3
|
#include <ImFusion/Base/Octree.h>
Fast Octree space subdivision. More...
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. | |
bool setInsideRange | ( | int | min, |
int | max ) |
Set the intensity range defining 'inside' and update.
Returns true if something has changed.