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

A eVision.Easy3D.EPrincipalAxisExtractor object computes the principal axis analysis (PCA) on an eVision.Easy3D.EPointCloud and produces a eVision.Easy3D.E3DTransformMatrix as a result. More...

Public Member Functions

None __init__ (self)
 Creates an eVision.Easy3D.EPrincipalAxisExtractor object.
None __init__ (self, eVision.Easy3D.EPrincipalAxisExtractor other)
 Creates an eVision.Easy3D.EPrincipalAxisExtractor object.
bool HasReferenceTransformSet (self)
 Returns 'true' if a reference transform (eVision.Easy3D.E3DTransformMatrix) has been set explicitly.
None UnsetReferenceTransform (self)
 Unset the reference transform (eVision.Easy3D.E3DTransformMatrix).
eVision.Easy3D.E3DTransformMatrix Extract (self, eVision.Easy3D.EPointCloud pc)
 Computes the eVision.Easy3D.E3DTransformMatrix for a given eVision.Easy3D.EPointCloud.
eVision.Easy3D.E3DTransformMatrix Extract (self, eVision.Easy3D.EPointCloud pc, eVision.Easy3D.E3DPoint stdDev)
 Computes the eVision.Easy3D.E3DTransformMatrix for a given eVision.Easy3D.EPointCloud.
None Load (self, str path)
 Loads the eVision.Easy3D.EPrincipalAxisExtractor object configuration.
None Load (self, eVision.ESerializer|None serializer)
 Loads the eVision.Easy3D.EPrincipalAxisExtractor object configuration.
None Save (self, str path)
 Saves the eVision.Easy3D.EPrincipalAxisExtractor object configuration.
None Save (self, eVision.ESerializer|None serializer)
 Saves the eVision.Easy3D.EPrincipalAxisExtractor object configuration.
eVision.Easy3D.E3DTransformMatrix ReferenceTransform (self)
 Sets/Gets the reference transform (eVision.Easy3D.E3DTransformMatrix).
 ReferenceTransform (self, eVision.Easy3D.E3DTransformMatrix value)
 Sets/Gets the reference transform (eVision.Easy3D.E3DTransformMatrix).

Detailed Description

A eVision.Easy3D.EPrincipalAxisExtractor object computes the principal axis analysis (PCA) on an eVision.Easy3D.EPointCloud and produces a eVision.Easy3D.E3DTransformMatrix as a result.

Remarks:

License(s): Easy3D

Constructor & Destructor Documentation

◆ __init__() [1/2]

None eVision.Easy3D.EPrincipalAxisExtractor.__init__ ( self)

◆ __init__() [2/2]

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

Creates an eVision.Easy3D.EPrincipalAxisExtractor object.

Parameters
otherThe object used for the initialization

Member Function Documentation

◆ Extract() [1/2]

eVision.Easy3D.E3DTransformMatrix eVision.Easy3D.EPrincipalAxisExtractor.Extract ( self,
eVision.Easy3D.EPointCloud pc )

Computes the eVision.Easy3D.E3DTransformMatrix for a given eVision.Easy3D.EPointCloud.

This will compute the PCA, then select the direction of each axis of the basis so that this basis is as close as possible as the reference transform.

Optionally returns the standard deviation along the 3 axis.

Parameters
pcInput point cloud.

◆ Extract() [2/2]

eVision.Easy3D.E3DTransformMatrix eVision.Easy3D.EPrincipalAxisExtractor.Extract ( self,
eVision.Easy3D.EPointCloud pc,
eVision.Easy3D.E3DPoint stdDev )

Computes the eVision.Easy3D.E3DTransformMatrix for a given eVision.Easy3D.EPointCloud.

This will compute the PCA, then select the direction of each axis of the basis so that this basis is as close as possible as the reference transform.

Optionally returns the standard deviation along the 3 axis.

Parameters
pcInput point cloud.
stdDevVariable to store the X, Y and Z components of the standard deviation.

◆ HasReferenceTransformSet()

bool eVision.Easy3D.EPrincipalAxisExtractor.HasReferenceTransformSet ( self)

Returns 'true' if a reference transform (eVision.Easy3D.E3DTransformMatrix) has been set explicitly.

◆ Load() [1/2]

None eVision.Easy3D.EPrincipalAxisExtractor.Load ( self,
eVision.ESerializer | None serializer )

Loads the eVision.Easy3D.EPrincipalAxisExtractor object configuration.

The given eVision.ESerializer must have been created for reading.

Parameters
serializerThe serializer.

◆ Load() [2/2]

None eVision.Easy3D.EPrincipalAxisExtractor.Load ( self,
str path )

Loads the eVision.Easy3D.EPrincipalAxisExtractor object configuration.

The given eVision.ESerializer must have been created for reading.

Parameters
pathThe file path.

◆ ReferenceTransform() [1/2]

eVision.Easy3D.E3DTransformMatrix eVision.Easy3D.EPrincipalAxisExtractor.ReferenceTransform ( self)

Sets/Gets the reference transform (eVision.Easy3D.E3DTransformMatrix).

If not set, it will use the main basis as reference to select the direction of each axis of the new basis.

◆ ReferenceTransform() [2/2]

eVision.Easy3D.EPrincipalAxisExtractor.ReferenceTransform ( self,
eVision.Easy3D.E3DTransformMatrix value )

Sets/Gets the reference transform (eVision.Easy3D.E3DTransformMatrix).

If not set, it will use the main basis as reference to select the direction of each axis of the new basis.

◆ Save() [1/2]

None eVision.Easy3D.EPrincipalAxisExtractor.Save ( self,
eVision.ESerializer | None serializer )

Saves the eVision.Easy3D.EPrincipalAxisExtractor object configuration.

The given eVision.ESerializer must have been created for writing.

Parameters
serializerThe eVision.ESerializer object that is written to.

◆ Save() [2/2]

None eVision.Easy3D.EPrincipalAxisExtractor.Save ( self,
str path )

Saves the eVision.Easy3D.EPrincipalAxisExtractor object configuration.

The given eVision.ESerializer must have been created for writing.

Parameters
pathThe file path.

◆ UnsetReferenceTransform()

None eVision.Easy3D.EPrincipalAxisExtractor.UnsetReferenceTransform ( self)

Unset the reference transform (eVision.Easy3D.E3DTransformMatrix).