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

Decimation of an EPointCloud. More...

#include <eVision/Easy3D/ERandomDecimator.h>

Inheritance diagram for eVision::Easy3D::ERandomDecimator:
Collaboration diagram for eVision::Easy3D::ERandomDecimator:

Public Member Functions

 ERandomDecimator ()
 Creates an ERandomDecimator object. If the required number of points (after decimation) is not specified, the default value is 10000.
 ERandomDecimator (int numberOfPoints)
 Creates an ERandomDecimator object. If the required number of points (after decimation) is not specified, the default value is 10000.
 ERandomDecimator (const eVision::Easy3D::ERandomDecimator &other)
 Creates an ERandomDecimator object. If the required number of points (after decimation) is not specified, the default value is 10000.
virtual ~ERandomDecimator () throw ()
eVision::Easy3D::ERandomDecimator & operator= (const eVision::Easy3D::ERandomDecimator &other)
 Assignment operator.
virtual bool operator== (const eVision::Easy3D::EDecimator &other) const
 test equality between two ERandomDecimator.
virtual bool operator!= (const eVision::Easy3D::EDecimator &other) const
 test inequality between two ERandomDecimator.
void SetNumberOfPoints (int numberOfPoints)
 Sets/gets the parameter "number of points" (number of points after decimation).
int GetNumberOfPoints () const
 Sets/gets the parameter "number of points" (number of points after decimation).
virtual void Decimate (const eVision::Easy3D::EPointCloud &cloudIn, eVision::Easy3D::EPointCloud &cloudOut) const
 Decimates a given EPointCloud and writes the result into a new point cloud.
 ERandomDecimator (CppWrapperInternal::InternalConstructor)
Public Member Functions inherited from eVision::Easy3D::EDecimator
 EDecimator ()
 Creates an EDecimator object.
virtual ~EDecimator () throw ()
void Load (const std::string &path)
 Loads the decimator configuration. The given ESerializer must have been created for reading.
void Load (eVision::ESerializer *serializer)
 Loads the decimator configuration. The given ESerializer must have been created for reading.
void Save (const std::string &path)
 Saves the decimator configuration. The given ESerializer must have been created for writing.
void Save (eVision::ESerializer *serializer)
 Saves the decimator configuration. The given ESerializer must have been created for writing.
 EDecimator (CppWrapperInternal::InternalConstructor)

Additional Inherited Members

Public Attributes inherited from eVision::Easy3D::EDecimator
CppWrapperInternal::WrappedClass wrappedClass_

Detailed Description

Decimation of an EPointCloud.

The random decimator decimates a point cloud by copying a specified number of points, randomly selected, to a new point cloud.

License(s): Easy3D

Constructor & Destructor Documentation

◆ ERandomDecimator() [1/4]

eVision::Easy3D::ERandomDecimator::ERandomDecimator ( )

Creates an ERandomDecimator object. If the required number of points (after decimation) is not specified, the default value is 10000.

◆ ERandomDecimator() [2/4]

eVision::Easy3D::ERandomDecimator::ERandomDecimator ( int numberOfPoints)

Creates an ERandomDecimator object. If the required number of points (after decimation) is not specified, the default value is 10000.

Parameters
numberOfPointsNumber of points after decimation.

◆ ERandomDecimator() [3/4]

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

Creates an ERandomDecimator object. If the required number of points (after decimation) is not specified, the default value is 10000.

Parameters
otherReference to the ERandomDecimator object used for the initialization.

◆ ~ERandomDecimator()

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

◆ ERandomDecimator() [4/4]

eVision::Easy3D::ERandomDecimator::ERandomDecimator ( CppWrapperInternal::InternalConstructor )

Member Function Documentation

◆ Decimate()

void eVision::Easy3D::ERandomDecimator::Decimate ( const eVision::Easy3D::EPointCloud & cloudIn,
eVision::Easy3D::EPointCloud & cloudOut ) const
virtual

Decimates a given EPointCloud and writes the result into a new point cloud.

Parameters
cloudInThe input point cloud.
cloudOutThe output point cloud.

The input point cloud 'cloudIn' should be different from the output point cloud 'cloudOut'. If not a exception will be thrown.

Reimplemented from eVision::Easy3D::EDecimator.

◆ GetNumberOfPoints()

int eVision::Easy3D::ERandomDecimator::GetNumberOfPoints ( ) const

Sets/gets the parameter "number of points" (number of points after decimation).

◆ operator!=()

bool eVision::Easy3D::ERandomDecimator::operator!= ( const eVision::Easy3D::EDecimator & other) const
virtual

test inequality between two ERandomDecimator.

Parameters
otherthe ERandomDecimator to be compared with

Reimplemented from eVision::Easy3D::EDecimator.

◆ operator=()

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

Assignment operator.

Parameters
otherThe ERandomDecimator object that should be copied.

◆ operator==()

bool eVision::Easy3D::ERandomDecimator::operator== ( const eVision::Easy3D::EDecimator & other) const
virtual

test equality between two ERandomDecimator.

Parameters
otherthe ERandomDecimator to be compared with

Reimplemented from eVision::Easy3D::EDecimator.

◆ SetNumberOfPoints()

void eVision::Easy3D::ERandomDecimator::SetNumberOfPoints ( int numberOfPoints)

Sets/gets the parameter "number of points" (number of points after decimation).