visionx::voxelgrid::LabelOccupancy Namespace Reference

Classes

class  Visualizer
 Visualizer for label occupancy voxel grids. More...
 
class  Voxel
 A voxel storing whether it is occupied or free and the object label it is occupied by. More...
 
class  VoxelGrid
 Voxel grid storing the number of points per label in each voxel. More...
 

Functions

void from_json (const nlohmann::json &json, Voxel &voxel)
 Set this voxel free, if json is < 0. More...
 
void from_json (const nlohmann::json &json, VoxelGrid &grid)
 Read the voxel grid from JSON. More...
 
void to_json (nlohmann::json &json, const Voxel &voxel)
 Set json to the voxel's label if occupied, and to -1 if free. More...
 
void to_json (nlohmann::json &json, const VoxelGrid &grid)
 Write the voxel grid to JSON. More...
 

Function Documentation

◆ from_json() [1/2]

void from_json ( const nlohmann::json &  json,
Voxel voxel 
)

Set this voxel free, if json is < 0.

Otherwise, set voxel's label to json.

Definition at line 64 of file VoxelGrid.cpp.

+ Here is the call graph for this function:

◆ from_json() [2/2]

void from_json ( const nlohmann::json &  json,
VoxelGrid grid 
)

Read the voxel grid from JSON.

Definition at line 158 of file VoxelGrid.cpp.

+ Here is the call graph for this function:

◆ to_json() [1/2]

void to_json ( nlohmann::json &  json,
const Voxel voxel 
)

Set json to the voxel's label if occupied, and to -1 if free.

Definition at line 52 of file VoxelGrid.cpp.

+ Here is the call graph for this function:

◆ to_json() [2/2]

void to_json ( nlohmann::json &  json,
const VoxelGrid grid 
)

Write the voxel grid to JSON.

Definition at line 153 of file VoxelGrid.cpp.

+ Here is the call graph for this function: