NASA Astrobee Robot Software  0.19.1
Flight software for the Astrobee robots operating inside the International Space Station.
BAD.cpp File Reference
#include <interest_point/BAD.h>
#include <cassert>
#include <vector>
Include dependency graph for BAD.cpp:

Namespaces

 upm
 

Macros

#define UPM_DEGREES_TO_RADS   0.017453292519943295
 
#define UPM_ROUNDNUM(x)   (static_cast<int>(x + 0.5f))
 
#define UPM_BAD_EXTRA_RATIO_MARGIN   1.75
 

Functions

static void upm::rectifyBoxes (const std::vector< BAD::BoxPairParams > &boxes_params, std::vector< BAD::BoxPairParams > &out_params, const cv::KeyPoint &kp, float scale_factor=1, const cv::Size &patch_size=cv::Size(32, 32))
 Rectifies the coordinates of the box pairs measurement functions with the keypoint location parameters. More...
 
static float upm::computeBadResponse (const BAD::BoxPairParams &box_params, const cv::Mat &integral_img)
 Computes the Box Average Difference, measuring the difference of gray level in the two square regions. More...
 
static bool upm::isKeypointInTheBorder (const cv::KeyPoint &kp, const cv::Size &img_size, const cv::Size &patch_size={32, 32}, float scale_factor=1)
 Function that determines if a keypoint is close to the image border. More...
 

Macro Definition Documentation

◆ UPM_BAD_EXTRA_RATIO_MARGIN

#define UPM_BAD_EXTRA_RATIO_MARGIN   1.75

◆ UPM_DEGREES_TO_RADS

#define UPM_DEGREES_TO_RADS   0.017453292519943295

◆ UPM_ROUNDNUM

#define UPM_ROUNDNUM (   x)    (static_cast<int>(x + 0.5f))