Struct SpatialKeypointsList
Defined in File SpatialKeypoint.hpp
Inheritance Relationships
Base Type
public dai::KeypointsListT< SpatialKeypoint >(Template Struct KeypointsListT)
Struct Documentation
-
struct SpatialKeypointsList : public dai::KeypointsListT<SpatialKeypoint>
Public Types
-
using Base = KeypointsListT<SpatialKeypoint>
Public Functions
-
inline void setKeypoints(const std::vector<Point3f> &kps3)
Sets the keypoints list.
Note
This will clear any existing keypoints and edges.
- Parameters:
keypoints – list of Point3f objects to set.
-
inline void setSpatialCoordinates(const std::vector<Point3f> &spatialCoordinates)
Sets the keypoints from a vector of 3D spatial points.
Note
The size of spatialCoordinates must match the number of keypoints.
- Parameters:
spatialCoordinates – vector of Point3f objects to set as spatial coordinates.
-
inline std::vector<Point3f> getSpatialCoordinates() const
Get spatial coordinates of the keypoints.
- Returns:
Vector of Point3f spatial coordinates.
-
DEPTHAI_SERIALIZE(SpatialKeypointsList, keypoints, edges)
-
using Base = KeypointsListT<SpatialKeypoint>