eVision C++ API 26.10.0-beta.2.dev
Loading...
Searching...
No Matches
eVision::Easy3D::EPlaneFitter Class Reference

A EPlaneFitter object is used to fit an E3DPlane on an EPointCloud. More...

#include <eVision/Easy3D/EPlaneFitter.h>

Collaboration diagram for eVision::Easy3D::EPlaneFitter:

Public Member Functions

 EPlaneFitter ()
 Constructor of an EPlaneFitter object.
 EPlaneFitter (const eVision::Easy3D::EPlaneFitter &other)
 Constructor of an EPlaneFitter object.
virtual ~EPlaneFitter () throw ()
eVision::Easy3D::EPlaneFitter & operator= (const eVision::Easy3D::EPlaneFitter &other)
 Assignment operator.
float Fit (const eVision::Easy3D::EPointCloud &pc, eVision::Easy3D::E3DPlane &fittedPlane) const
 Fits an E3DPlane on a given EPointCloud and returns the average distance from this plane to the points that were used for the fit.
eVision::Easy3D::E3DPlane Fit (const eVision::Easy3D::EPointCloud &pc) const
 Fits an E3DPlane on a given EPointCloud and returns the average distance from this plane to the points that were used for the fit.
eVision::Easy3D::E3DPlane Fit (const eVision::Easy3D::EPointCloud &pc, float &averageDistance) const
 Fits an E3DPlane on a given EPointCloud and returns the average distance from this plane to the points that were used for the fit.
int GetMinSampleCount () const
 Sets/Gets the minimum number of points required in the input cloud.
void SetMinSampleCount (int minSamples)
 Sets/Gets the minimum number of points required in the input cloud.
void Load (const std::string &path)
 Loads the EPlaneFitter configuration. The given ESerializer must have been created for reading.
void Load (eVision::ESerializer *serializer)
 Loads the EPlaneFitter configuration. The given ESerializer must have been created for reading.
void Save (const std::string &path)
 Saves the EPlaneFitter configuration. The given ESerializer must have been created for writing.
void Save (eVision::ESerializer *serializer)
 Saves the EPlaneFitter configuration. The given ESerializer must have been created for writing.
 EPlaneFitter (CppWrapperInternal::InternalConstructor)

Public Attributes

CppWrapperInternal::WrappedClass wrappedClass_

Detailed Description

A EPlaneFitter object is used to fit an E3DPlane on an EPointCloud.

License(s): Easy3D

Constructor & Destructor Documentation

◆ EPlaneFitter() [1/3]

eVision::Easy3D::EPlaneFitter::EPlaneFitter ( )

Constructor of an EPlaneFitter object.

◆ EPlaneFitter() [2/3]

eVision::Easy3D::EPlaneFitter::EPlaneFitter ( const eVision::Easy3D::EPlaneFitter & other)

Constructor of an EPlaneFitter object.

Parameters
otherReference to the EPlaneFitter used for the initialization.

◆ ~EPlaneFitter()

eVision::Easy3D::EPlaneFitter::~EPlaneFitter ( )
throw ( )
virtual

◆ EPlaneFitter() [3/3]

eVision::Easy3D::EPlaneFitter::EPlaneFitter ( CppWrapperInternal::InternalConstructor )

Member Function Documentation

◆ Fit() [1/3]

eVision::Easy3D::E3DPlane eVision::Easy3D::EPlaneFitter::Fit ( const eVision::Easy3D::EPointCloud & pc) const

Fits an E3DPlane on a given EPointCloud and returns the average distance from this plane to the points that were used for the fit.

Parameters
pcThe reference to the point cloud.

The normal vector of the fitted plane is always oriented towards the positive Z axis, see E3DPlaneNormalOrientation::E3DPlaneNormalOrientation_PosZ.

Deprecated
Deprecated in version 24.6. Scheduled to be removed in version 27.6.

◆ Fit() [2/3]

float eVision::Easy3D::EPlaneFitter::Fit ( const eVision::Easy3D::EPointCloud & pc,
eVision::Easy3D::E3DPlane & fittedPlane ) const

Fits an E3DPlane on a given EPointCloud and returns the average distance from this plane to the points that were used for the fit.

Parameters
pcThe reference to the point cloud.
fittedPlaneThe reference that will be filled with the fitted plane.

The normal vector of the fitted plane is always oriented towards the positive Z axis, see E3DPlaneNormalOrientation::E3DPlaneNormalOrientation_PosZ.

◆ Fit() [3/3]

eVision::Easy3D::E3DPlane eVision::Easy3D::EPlaneFitter::Fit ( const eVision::Easy3D::EPointCloud & pc,
float & averageDistance ) const

Fits an E3DPlane on a given EPointCloud and returns the average distance from this plane to the points that were used for the fit.

Parameters
pcThe reference to the point cloud.
averageDistanceThe reference to a float which will store the average distance from this plane to the points that were used for the fit.

The normal vector of the fitted plane is always oriented towards the positive Z axis, see E3DPlaneNormalOrientation::E3DPlaneNormalOrientation_PosZ.

Deprecated
Deprecated in version 24.6. Scheduled to be removed in version 27.6.

◆ GetMinSampleCount()

int eVision::Easy3D::EPlaneFitter::GetMinSampleCount ( ) const

Sets/Gets the minimum number of points required in the input cloud.

By default, a value of 3 is assumed.

Deprecated
Deprecated in version 26.2. Scheduled to be removed in version 27.6.

◆ Load() [1/2]

void eVision::Easy3D::EPlaneFitter::Load ( const std::string & path)

Loads the EPlaneFitter configuration. The given ESerializer must have been created for reading.

Parameters
pathThe file path.

◆ Load() [2/2]

void eVision::Easy3D::EPlaneFitter::Load ( eVision::ESerializer * serializer)

Loads the EPlaneFitter configuration. The given ESerializer must have been created for reading.

Parameters
serializerThe serializer.

◆ operator=()

eVision::Easy3D::EPlaneFitter & eVision::Easy3D::EPlaneFitter::operator= ( const eVision::Easy3D::EPlaneFitter & other)

Assignment operator.

Parameters
otherThe EPlaneFitter object that should be copied.

◆ Save() [1/2]

void eVision::Easy3D::EPlaneFitter::Save ( const std::string & path)

Saves the EPlaneFitter configuration. The given ESerializer must have been created for writing.

Parameters
pathThe file path.

◆ Save() [2/2]

void eVision::Easy3D::EPlaneFitter::Save ( eVision::ESerializer * serializer)

Saves the EPlaneFitter configuration. The given ESerializer must have been created for writing.

Parameters
serializerThe ESerializer object that is written to.

◆ SetMinSampleCount()

void eVision::Easy3D::EPlaneFitter::SetMinSampleCount ( int minSamples)

Sets/Gets the minimum number of points required in the input cloud.

By default, a value of 3 is assumed.

Deprecated
Deprecated in version 26.2. Scheduled to be removed in version 27.6.

Member Data Documentation

◆ wrappedClass_

CppWrapperInternal::WrappedClass eVision::Easy3D::EPlaneFitter::wrappedClass_