8#include <Eigen/SparseCore> 
    9#include <opencv2/core.hpp> 
   30    enum class State { Unsegmented = 0, Segmented };
 
   36    VolumeMask(std::size_t width, std::size_t height, std::size_t numSlices);
 
   51        const cv::Vec3i& origin, 
const cv::Vec3i& dims, 
State state);
 
   68    Eigen::SparseMatrix<int, Eigen::RowMajor> 
states_;
 
Dynamically-allocated N-Dimensional Array.
 
Per-voxel Segmentation State Mask for Volumes.
 
void setSubvolumeState(const cv::Vec3i &origin, const cv::Vec3i &dims, State state)
Set the segmentation state for every voxel in a subvolume.
 
Eigen::SparseMatrix< int, Eigen::RowMajor > states_
 
State
Segmentation States.
 
State getVoxelState(const cv::Vec3i &xyz)
Get the segmentation state for a voxel.
 
Subvolume getSubvolumeState(const cv::Vec3i &origin, const cv::Vec3i &dims)
Get the segmentation state for every voxel in a subvolume.
 
VolumeMask(std::size_t width, std::size_t height, std::size_t numSlices)
Construct from Volume dimensions.
 
void setVoxelState(const cv::Vec3i &xyz, State state)
Set the segmentation state for a voxel.
 
Volume Cartographer library