Stores image data for a stereo camera pair. More...
#include <stereo_depth.hpp>
typedef std::vector<std::pair<double, double> > fovis::StereoDepth::Points2d [private] |
Definition at line 45 of file stereo_depth.hpp.
fovis::StereoDepth::StereoDepth | ( | const StereoCalibration * | calib, |
const VisualOdometryOptions & | options | ||
) |
Definition at line 24 of file stereo_depth.cpp.
Definition at line 58 of file stereo_depth.cpp.
virtual double fovis::StereoDepth::getBaseline | ( | ) | const [inline, virtual] |
Return baseline of depth source, if applicable. If not applicable (e.g. for OpenNI devices) return 0.
Implements fovis::DepthSource.
Definition at line 42 of file stereo_depth.hpp.
void fovis::StereoDepth::getXyz | ( | OdometryFrame * | frame | ) | [virtual] |
Populate keypoints in frame with XYZ data.
Implements fovis::DepthSource.
Definition at line 184 of file stereo_depth.cpp.
bool fovis::StereoDepth::haveXyz | ( | int | u, |
int | v | ||
) | [virtual] |
This should return true if it's not certain there's no depth at (u,v). It should be an inexpensive check that is used to avoid pointless (hah!) creation of keypoints. False positives are fine as ling as getXyz gets rid of them.
Implements fovis::DepthSource.
Definition at line 178 of file stereo_depth.cpp.
void fovis::StereoDepth::leftRightMatch | ( | PyramidLevel * | left_level, |
PyramidLevel * | right_level, | ||
Points2d * | matched_right_keypoints | ||
) | [private] |
Definition at line 82 of file stereo_depth.cpp.
void fovis::StereoDepth::refineXyz | ( | FeatureMatch * | matches, |
int | num_matches, | ||
OdometryFrame * | frame | ||
) | [virtual] |
Refine XYZ data of target keypoints in matches (usually after subpixel refinement of the matches across time).
Implements fovis::DepthSource.
Definition at line 196 of file stereo_depth.cpp.
void fovis::StereoDepth::setRightImage | ( | const uint8_t * | img | ) |
Definition at line 66 of file stereo_depth.cpp.
const StereoCalibration* fovis::StereoDepth::_calib [private] |
Definition at line 51 of file stereo_depth.hpp.
int fovis::StereoDepth::_fast_threshold [private] |
Definition at line 61 of file stereo_depth.hpp.
float fovis::StereoDepth::_fast_threshold_adaptive_gain [private] |
Definition at line 65 of file stereo_depth.hpp.
int fovis::StereoDepth::_fast_threshold_max [private] |
Definition at line 63 of file stereo_depth.hpp.
int fovis::StereoDepth::_fast_threshold_min [private] |
Definition at line 62 of file stereo_depth.hpp.
int fovis::StereoDepth::_feature_window_size [private] |
Definition at line 56 of file stereo_depth.hpp.
int fovis::StereoDepth::_height [private] |
Definition at line 54 of file stereo_depth.hpp.
std::vector<std::vector<int> > fovis::StereoDepth::_legal_matches [private] |
Definition at line 76 of file stereo_depth.hpp.
std::vector<Points2d> fovis::StereoDepth::_matched_right_keypoints_per_level [private] |
Definition at line 75 of file stereo_depth.hpp.
FeatureMatcher fovis::StereoDepth::_matcher [private] |
Definition at line 74 of file stereo_depth.hpp.
FeatureMatch* fovis::StereoDepth::_matches [private] |
Definition at line 85 of file stereo_depth.hpp.
int fovis::StereoDepth::_matches_capacity [private] |
Definition at line 87 of file stereo_depth.hpp.
int fovis::StereoDepth::_max_disparity [private] |
Definition at line 80 of file stereo_depth.hpp.
double fovis::StereoDepth::_max_dist_epipolar_line [private] |
Definition at line 69 of file stereo_depth.hpp.
double fovis::StereoDepth::_max_refinement_displacement [private] |
Definition at line 70 of file stereo_depth.hpp.
int fovis::StereoDepth::_num_matches [private] |
Definition at line 86 of file stereo_depth.hpp.
int fovis::StereoDepth::_num_pyramid_levels [private] |
Definition at line 58 of file stereo_depth.hpp.
const VisualOdometryOptions fovis::StereoDepth::_options [private] |
Definition at line 82 of file stereo_depth.hpp.
bool fovis::StereoDepth::_require_mutual_match [private] |
Definition at line 68 of file stereo_depth.hpp.
StereoFrame* fovis::StereoDepth::_right_frame [private] |
Definition at line 72 of file stereo_depth.hpp.
int fovis::StereoDepth::_target_pixels_per_feature [private] |
Definition at line 64 of file stereo_depth.hpp.
bool fovis::StereoDepth::_use_adaptive_threshold [private] |
Definition at line 67 of file stereo_depth.hpp.
Eigen::Matrix4d* fovis::StereoDepth::_uvd1_to_xyz [private] |
Definition at line 78 of file stereo_depth.hpp.
int fovis::StereoDepth::_width [private] |
Definition at line 53 of file stereo_depth.hpp.