eVision Python API
Loading...
Searching...
No Matches
eVision.Easy3D.EGridDecimator Class Reference

Decimation of an eVision.Easy3D.EPointCloud. More...

Inheritance diagram for eVision.Easy3D.EGridDecimator:
Collaboration diagram for eVision.Easy3D.EGridDecimator:

Public Member Functions

None __init__ (self)
 Creates an eVision.Easy3D.EGridDecimator object.
None __init__ (self, eVision.Easy3D.E3DPoint cellSize)
 Creates an eVision.Easy3D.EGridDecimator object.
None __init__ (self, float isotropicCellSize)
 Creates an eVision.Easy3D.EGridDecimator object.
None __init__ (self, eVision.Easy3D.EGridDecimator other)
 Creates an eVision.Easy3D.EGridDecimator object.
None Decimate (self, eVision.Easy3D.EPointCloud cloudIn, eVision.Easy3D.EPointCloud cloudOut)
 Decimates a given eVision.Easy3D.EPointCloud and writes the result into a new point cloud.
eVision.Easy3D.E3DPoint CellSize (self)
 Gets/sets the size of the cells in the grid.
 CellSize (self, eVision.Easy3D.E3DPoint value)
 Gets/sets the size of the cells in the grid.
Public Member Functions inherited from eVision.Easy3D.EDecimator
None __init__ (self)
 Creates an eVision.Easy3D.EDecimator object.
None Load (self, str path)
 Loads the decimator configuration.
None Load (self, eVision.ESerializer|None serializer)
 Loads the decimator configuration.
None Save (self, str path)
 Saves the decimator configuration.
None Save (self, eVision.ESerializer|None serializer)
 Saves the decimator configuration.

Detailed Description

Decimation of an eVision.Easy3D.EPointCloud.

The grid decimator decimates a point cloud by creating a new point cloud containing a point for each grid cell where at least one point exists in the input.

For each grid cell, the output point is the centroid of the input points in the cell. If the cloud has attributes, the attributes of each centroid are the ones of its closest point in the input and the same cell.

Remarks:

License(s): Easy3D

Constructor & Destructor Documentation

◆ __init__() [1/4]

None eVision.Easy3D.EGridDecimator.__init__ ( self)

Creates an eVision.Easy3D.EGridDecimator object.

If the required cell size is not specified, the default value is 10, 10, 10.

◆ __init__() [2/4]

None eVision.Easy3D.EGridDecimator.__init__ ( self,
eVision.Easy3D.E3DPoint cellSize )

Creates an eVision.Easy3D.EGridDecimator object.

If the required cell size is not specified, the default value is 10, 10, 10.

Parameters
cellSizeE3DPoint whose dimensions represent the x,y,z size of the cell

◆ __init__() [3/4]

None eVision.Easy3D.EGridDecimator.__init__ ( self,
float isotropicCellSize )

Creates an eVision.Easy3D.EGridDecimator object.

If the required cell size is not specified, the default value is 10, 10, 10.

Parameters
isotropicCellSizefloat representing the x,y and z size of the cell

◆ __init__() [4/4]

None eVision.Easy3D.EGridDecimator.__init__ ( self,
eVision.Easy3D.EGridDecimator other )

Creates an eVision.Easy3D.EGridDecimator object.

If the required cell size is not specified, the default value is 10, 10, 10.

Parameters
otherReference to the eVision.Easy3D.EGridDecimator object used for the initialization.

Member Function Documentation

◆ CellSize() [1/2]

eVision.Easy3D.E3DPoint eVision.Easy3D.EGridDecimator.CellSize ( self)

Gets/sets the size of the cells in the grid.

◆ CellSize() [2/2]

eVision.Easy3D.EGridDecimator.CellSize ( self,
eVision.Easy3D.E3DPoint value )

Gets/sets the size of the cells in the grid.

◆ Decimate()

None eVision.Easy3D.EGridDecimator.Decimate ( self,
eVision.Easy3D.EPointCloud cloudIn,
eVision.Easy3D.EPointCloud cloudOut )

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

Remarks:

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

Parameters
cloudInThe input point cloud.
cloudOutThe output point cloud.

Reimplemented from eVision.Easy3D.EDecimator.