AliceVision
Photogrammetric Computer Vision Framework
Public Member Functions | Protected Attributes | Friends | List of all members
aliceVision::feature::PointFeature Class Reference

#include <PointFeature.hpp>

Public Member Functions

 PointFeature (float x, float y, float scale, float orient)
 
float x () const
 
float y () const
 
const Vec2f & coords () const
 
float scale () const
 
float & scale ()
 
float & x ()
 
float & y ()
 
Vec2f & coords ()
 
float orientation () const
 
float & orientation ()
 
Vec2f getOrientationVector () const
 Return the orientation of the feature as an unit vector. More...
 
Vec2f getScaledOrientationVector () const
 Return the orientation of the feature as a vector scaled to the scale of the feature. More...
 
bool operator== (const PointFeature &b) const
 
bool operator!= (const PointFeature &b) const
 

Protected Attributes

Vec2f _coords = {0.0f, 0.0f}
 
float _scale = 0.0f
 
float _orientation = 0.0f
 

Friends

std::ostream & operator<< (std::ostream &out, const PointFeature &obj)
 
std::istream & operator>> (std::istream &in, PointFeature &obj)
 

Detailed Description

Base class for Point features. Store position of a feature point.

Member Function Documentation

◆ getOrientationVector()

Vec2f aliceVision::feature::PointFeature::getOrientationVector ( ) const
inline

Return the orientation of the feature as an unit vector.

Returns
a unit vector corresponding to the orientation of the feature.

◆ getScaledOrientationVector()

Vec2f aliceVision::feature::PointFeature::getScaledOrientationVector ( ) const
inline

Return the orientation of the feature as a vector scaled to the scale of the feature.

Returns
a vector corresponding to the orientation of the feature scaled at the scale of the feature.

The documentation for this class was generated from the following file: