Solar
|
A frame. More...
#include <Frame.h>
Public Member Functions | |
Frame (const SRef< Frame > frame) | |
Frame (const SRef< Keyframe > keyframe) | |
Frame (const std::vector< Keypoint > &keypoints, const SRef< DescriptorBuffer > descriptors, const SRef< Image > view, const Transform3Df pose=Transform3Df::Identity()) | |
Frame (const std::vector< Keypoint > &keypoints, const std::vector< Keypoint > &undistortedKeypoints, const SRef< DescriptorBuffer > descriptors, const SRef< Image > view, const SRef< Keyframe > refKeyframe, const Transform3Df pose=Transform3Df::Identity()) | |
Frame (const std::vector< Keypoint > &keypoints, const std::vector< Keypoint > &undistortedKeypoints, const SRef< DescriptorBuffer > descriptors, const SRef< Image > view, const Transform3Df pose=Transform3Df::Identity()) | |
~Frame ()=default | |
~Frame | |
const SRef< Image > & | getView () const |
get view image More... | |
void | setView (const SRef< Image > &view) |
set view image More... | |
const Transform3Df & | getPose () const |
get camera pose More... | |
void | setPose (const Transform3Df &pose) |
set pose More... | |
const std::vector< Keypoint > & | getKeypoints () const |
get keypoints More... | |
const Keypoint & | getKeypoint (int i) const |
get the i-th keypoint More... | |
void | setKeypoints (const std::vector< Keypoint > &kpts) |
set keypoints More... | |
const std::vector< Keypoint > & | getUndistortedKeypoints () const |
get undistorted keypoints More... | |
const Keypoint & | getUndistortedKeypoint (int i) const |
get the i-th undistorted keypoint More... | |
void | setUndistortedKeypoints (const std::vector< Keypoint > &kpts) |
set undistorted keypoints More... | |
void | setReferenceKeyframe (const SRef< Keyframe > &keyframe) |
set reference keyframe More... | |
const SRef< Keyframe > & | getReferenceKeyframe () const |
get reference keyframe More... | |
const SRef< DescriptorBuffer > & | getDescriptors () const |
get descriptors More... | |
void | setDescriptors (const SRef< DescriptorBuffer > &descriptors) |
set descriptors More... | |
const std::map< uint32_t, uint32_t > & | getVisibility () const |
Get all cloud point visibilities. | |
void | setVisibility (const std::map< uint32_t, uint32_t > &visibilities) |
set visibility More... | |
void | addVisibilities (const std::map< uint32_t, uint32_t > &visibilites) |
Add cloud point visibilities to frame. More... | |
void | addVisibility (const uint32_t &id_keypoint, const uint32_t &id_cloudPoint) |
Add a cloud point visibility to frame. More... | |
bool | removeVisibility (const uint32_t &id_keypoint, const uint32_t &id_cloudPoint) |
Remove a visibility. More... | |
template<typename Archive > | |
void | serialize (Archive &ar, ATTRIBUTE(maybe_unused) const unsigned int version) |
Protected Attributes | |
Transform3Df | m_pose |
SRef< Image > | m_view |
SRef< Keyframe > | m_referenceKeyFrame |
SRef< DescriptorBuffer > | m_descriptors |
std::vector< Keypoint > | m_keypoints |
std::vector< Keypoint > | m_keypointsUndistort |
std::map< uint32_t, uint32_t > | m_mapVisibility |
Friends | |
class | boost::serialization::access |
A frame.
This class provides frame definition.
void SolAR::datastructure::Frame::addVisibilities | ( | const std::map< uint32_t, uint32_t > & | visibilites | ) |
Add cloud point visibilities to frame.
[in] | visibilites | a map of cloud pont visibilities, the first element is keypoint id, the second one is cloud point id |
void SolAR::datastructure::Frame::addVisibility | ( | const uint32_t & | id_keypoint, |
const uint32_t & | id_cloudPoint | ||
) |
Add a cloud point visibility to frame.
[in] | id_keypoint | id of keypoint |
[in] | id_cloudPoint | id of cloud point |
const SRef< DescriptorBuffer > & SolAR::datastructure::Frame::getDescriptors | ( | ) | const |
get descriptors
const Keypoint & SolAR::datastructure::Frame::getKeypoint | ( | int | i | ) | const |
get the i-th keypoint
[in] | i | index of keypoint |
const std::vector< Keypoint > & SolAR::datastructure::Frame::getKeypoints | ( | ) | const |
get keypoints
const Transform3Df & SolAR::datastructure::Frame::getPose | ( | ) | const |
get camera pose
const SRef< Keyframe > & SolAR::datastructure::Frame::getReferenceKeyframe | ( | ) | const |
get reference keyframe
const Keypoint & SolAR::datastructure::Frame::getUndistortedKeypoint | ( | int | i | ) | const |
get the i-th undistorted keypoint
[in] | i | index of undistorted keypoint |
const std::vector< Keypoint > & SolAR::datastructure::Frame::getUndistortedKeypoints | ( | ) | const |
get undistorted keypoints
const SRef< Image > & SolAR::datastructure::Frame::getView | ( | ) | const |
get view image
bool SolAR::datastructure::Frame::removeVisibility | ( | const uint32_t & | id_keypoint, |
const uint32_t & | id_cloudPoint | ||
) |
Remove a visibility.
[in] | id_keypoint | id of keypoint |
[in] | id_cloudPoint | id of cloud point |
void SolAR::datastructure::Frame::setDescriptors | ( | const SRef< DescriptorBuffer > & | descriptors | ) |
set descriptors
[in] | descriptors | descriptors |
void SolAR::datastructure::Frame::setKeypoints | ( | const std::vector< Keypoint > & | kpts | ) |
set keypoints
[in] | kpts | keypoints |
void SolAR::datastructure::Frame::setPose | ( | const Transform3Df & | pose | ) |
set pose
[in] | pose | camera pose |
void SolAR::datastructure::Frame::setReferenceKeyframe | ( | const SRef< Keyframe > & | keyframe | ) |
set reference keyframe
[in] | keyframe | reference keyframe |
void SolAR::datastructure::Frame::setUndistortedKeypoints | ( | const std::vector< Keypoint > & | kpts | ) |
set undistorted keypoints
[in] | kpts | undistorted keypoints |
void SolAR::datastructure::Frame::setView | ( | const SRef< Image > & | view | ) |
set view image
[in] | view | view image |
void SolAR::datastructure::Frame::setVisibility | ( | const std::map< uint32_t, uint32_t > & | visibilities | ) |
set visibility
[in] | visibilities | a map of cloud pont visibilities, the first element is keypoint id, the second one is cloud point id |