Plane Class Reference

#include <VisionX/components/pointcloud_processor/EfficientRANSACPrimitiveExtractor/EfficientRANSAC/Plane.h>

Public Types

enum  { RequiredSamples = 1 }
 

Public Member Functions

float Distance (const Vec3f &pos) const
 
float DistanceAndNormal (const Vec3f &pos, Vec3f *n) const
 
bool equals (Plane plane)
 
bool Fit (const PointCloud &pc, MiscLib::Vector< size_t >::const_iterator begin, MiscLib::Vector< size_t >::const_iterator end)
 
float getDistance (const Vec3f &pos) const
 
const Vec3f & getNormal () const
 
const Vec3f & getPosition () const
 
bool Init (bool binary, std::istream *i)
 
bool Init (const MiscLib::Vector< Vec3f > &samples)
 
void Init (FILE *i)
 
void Init (float *array)
 
bool Init (Vec3f p1, Vec3f p2, Vec3f p3)
 
bool InitAverage (const MiscLib::Vector< Vec3f > &samples)
 
float Intersect (const Vec3f &p, const Vec3f &r) const
 
bool LeastSquaresFit (const PointCloud &pc, MiscLib::Vector< size_t >::const_iterator begin, MiscLib::Vector< size_t >::const_iterator end)
 
template<class IteratorT>
bool LeastSquaresFit (IteratorT begin, IteratorT end)
 
void Normal (const Vec3f &, Vec3f *n) const
 
 Plane ()
 
 Plane (Vec3f p1, Vec3f normal)
 
 Plane (Vec3f p1, Vec3f p2, Vec3f p3)
 
void Serialize (bool binary, std::ostream *o) const
 
void Serialize (FILE *o) const
 
void Serialize (float *array) const
 
float SignedDistance (const Vec3f &pos) const
 
float SignedDistToOrigin () const
 
void Transform (float scale, const Vec3f &translate)
 
virtual ~Plane ()
 

Static Public Member Functions

static bool Interpolate (const MiscLib::Vector< Plane > &planes, const MiscLib::Vector< float > &weights, Plane *ip)
 
static size_t SerializedFloatSize ()
 
static size_t SerializedSize ()
 

Protected Attributes

float m_dist
 
Vec3f m_normal
 
Vec3f m_pos
 

Member Enumeration Documentation

◆ anonymous enum

anonymous enum
Enumerator
RequiredSamples 

Constructor & Destructor Documentation

◆ Plane() [1/3]

Plane ( )
inline

◆ Plane() [2/3]

Plane ( Vec3f p1,
Vec3f p2,
Vec3f p3 )

◆ Plane() [3/3]

Plane ( Vec3f p1,
Vec3f normal )

◆ ~Plane()

~Plane ( )
virtual

Member Function Documentation

◆ Distance()

float Distance ( const Vec3f & pos) const
inline

◆ DistanceAndNormal()

float DistanceAndNormal ( const Vec3f & pos,
Vec3f * n ) const
inline

◆ equals()

bool equals ( Plane plane)

◆ Fit()

bool Fit ( const PointCloud & pc,
MiscLib::Vector< size_t >::const_iterator begin,
MiscLib::Vector< size_t >::const_iterator end )
inline

◆ getDistance()

float getDistance ( const Vec3f & pos) const
inline

◆ getNormal()

const Vec3f & getNormal ( ) const
inline

◆ getPosition()

const Vec3f & getPosition ( ) const
inline

◆ Init() [1/5]

bool Init ( bool binary,
std::istream * i )

◆ Init() [2/5]

bool Init ( const MiscLib::Vector< Vec3f > & samples)

◆ Init() [3/5]

void Init ( FILE * i)

◆ Init() [4/5]

void Init ( float * array)

◆ Init() [5/5]

bool Init ( Vec3f p1,
Vec3f p2,
Vec3f p3 )

◆ InitAverage()

bool InitAverage ( const MiscLib::Vector< Vec3f > & samples)

◆ Interpolate()

bool Interpolate ( const MiscLib::Vector< Plane > & planes,
const MiscLib::Vector< float > & weights,
Plane * ip )
static

◆ Intersect()

float Intersect ( const Vec3f & p,
const Vec3f & r ) const

◆ LeastSquaresFit() [1/2]

bool LeastSquaresFit ( const PointCloud & pc,
MiscLib::Vector< size_t >::const_iterator begin,
MiscLib::Vector< size_t >::const_iterator end )

◆ LeastSquaresFit() [2/2]

template<class IteratorT>
bool LeastSquaresFit ( IteratorT begin,
IteratorT end )

◆ Normal()

void Normal ( const Vec3f & ,
Vec3f * n ) const
inline

◆ Serialize() [1/3]

void Serialize ( bool binary,
std::ostream * o ) const

◆ Serialize() [2/3]

void Serialize ( FILE * o) const

◆ Serialize() [3/3]

void Serialize ( float * array) const

◆ SerializedFloatSize()

size_t SerializedFloatSize ( )
static

◆ SerializedSize()

size_t SerializedSize ( )
static

◆ SignedDistance()

float SignedDistance ( const Vec3f & pos) const
inline

◆ SignedDistToOrigin()

float SignedDistToOrigin ( ) const
inline

◆ Transform()

void Transform ( float scale,
const Vec3f & translate )

Member Data Documentation

◆ m_dist

float m_dist
protected

◆ m_normal

Vec3f m_normal
protected

◆ m_pos

Vec3f m_pos
protected

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