LibCapy - pointCloud

Point cloud class.

Macros:

Enumerations:

None.

Typedefs:

None.

Struct CapyPointCloud :

Struct CapyPointCloud's properties:

Dimension of a point in the cloud.

Number of points in the cloud.

Points

Mean vector

Covariance matrix

Principal components (one component per column, ordered from the most significant)

Eigen values of the principal components

Range of values in each dimension

Struct CapyPointCloud's methods:

Destructor

Get the Bezier approximating the point cloud.

Input argument(s):

nbIn: the number of dimension from the first dimension of a point treated as inputs of the Bezier (the remaining ones being treated as the output).

order: the Bezier order.

Output and side effect(s):

Return a new CapyBezier which takes the first 'nbIn' values of a point as input and return as output the approximation of the remaining values of that point. Return NULL if the Bezier couldn't be created.

Exception(s):

May raise CapyExc_MallocFailed.

Update the mean vector

Output and side effect(s):

that->mean is updated.

Update the covariance matrix

Output and side effect(s):

that->covariance and that->mean are updated.

Update the principal components

Output and side effect(s):

that->principalComponent, that eigenValue, that->covariance and that->mean are updated.

Update the ranges

Output and side effect(s):

that->range is updated.

Functions:

Create a CapyPointCloud.

Input argument(s):

dim: the dimension of a point in the cloud

Output and side effect(s):

Return a CapyPointCloud

Exception(s):

May raise CapyExc_MallocFailed.

Allocate memory for a new CapyPointCloud and create it

Input argument(s):

dim: the dimension of a point in the cloud

Output and side effect(s):

Return a CapyPointCloud

Exception(s):

May raise CapyExc_MallocFailed.

Free the memory used by a CapyPointCloud* and reset '*that' to NULL

Input argument(s):

that: a pointer to the CapyPointCloud to free