15#include <opencv2/opencv.hpp>
17#include "types/fptypes.hpp"
21using FeaturesCoordinates = std::vector<cv::Point2f>;
38 inline bool empty() const noexcept {
return uvs_.empty(); }
45 inline size_t size() const noexcept
69 while (i < invalid.size())
(Cache friendly) Features struct. Define a set of features detected/tracked.
Definition features.hpp:30
FeaturesCoordinates distorted_uvs_
Distorted (u, v) coordinates of the features detected/tracked.
Definition features.hpp:88
FeaturesCoordinates uvs_
Undistorted (u, v) coordinates of the features detected/tracked.
Definition features.hpp:89
void removeInvalid(std::vector< bool > &invalid)
Remove invalid features coordinates, normalized feature coordinates and ids given a vector of boolean...
Definition features.hpp:59
FeatureIds ids_
Id of the features detected/tracked.
Definition features.hpp:91
FeaturesCoordinates normalized_uvs_
Undistorted normalized (u, v) coordinates of features detected/tracked.
Definition features.hpp:90
std::vector< uint > FeatureIds
Vector of feature ids.
Definition features.hpp:31
bool empty() const noexcept
Check if there valid coordinates in uvs_.
Definition features.hpp:38
size_t size() const noexcept
Return the amount of features (size of uvs_)
Definition features.hpp:45