mirror of
https://github.com/introlab/rtabmap.git
synced 2026-09-03 10:00:23 +08:00
Depth calibration: move GetBinSize to clams namespace
This commit is contained in:
@@ -66,6 +66,16 @@ namespace clams
|
||||
|
||||
class RTABMAP_EXP DiscreteDepthDistortionModel
|
||||
{
|
||||
public:
|
||||
// returns all divisors of num
|
||||
static std::set<size_t> getDivisors(const size_t &num);
|
||||
|
||||
// returns divisor from divisors closest to ref
|
||||
static size_t getClosestToRef(const std::set<size_t> &divisors, const double &ref);
|
||||
|
||||
// sets bin_width and bin_height to appropriate values
|
||||
static void getBinSize(const size_t &width, const size_t &height, size_t &bin_width, size_t &bin_height);
|
||||
|
||||
public:
|
||||
DiscreteDepthDistortionModel() :
|
||||
width_(0),
|
||||
|
||||
@@ -319,15 +319,6 @@ pcl::PointCloud<pcl::PointXYZ>::Ptr RTABMAP_EXP loadCloud(
|
||||
int downsampleStep = 1,
|
||||
float voxelSize = 0.0f);
|
||||
|
||||
// returns all divisors of num
|
||||
std::set<size_t> get_divisors(const size_t &num);
|
||||
|
||||
// returns divisor from divisors closest to ref
|
||||
size_t GetClosestToRef(const std::set<size_t> &divisors, const double &ref);
|
||||
|
||||
// sets bin_width and bin_height to appropriate values
|
||||
void GetBinSize(const size_t &width, const size_t &height, size_t &bin_width, size_t &bin_height);
|
||||
|
||||
} // namespace util3d
|
||||
} // namespace rtabmap
|
||||
|
||||
|
||||
Reference in New Issue
Block a user