Depth calibration: move GetBinSize to clams namespace

This commit is contained in:
Anton Onishchenko
2017-05-11 11:38:42 +03:00
parent df40b0b8d3
commit 197bb2179f
5 changed files with 62 additions and 60 deletions

View File

@@ -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),