pcloud.factory package

Submodules

pcloud.factory.point_cloud_arrays_factory module

class pcloud.factory.point_cloud_arrays_factory.PointCloudArraysFactory(X, F, y=None, header=None, fnames=None, **kwargs)

Bases: PointCloudFactory

Author:

Alberto M. Esmoris Pena

Class to instantiate PointCloud objects from arrays. See PointCloud and also PointCloudFactory.

Variables:
  • X (np.ndarray) – The matrix representing the coordinates of the points.

  • F (np.ndarray) – The matrix representing the point-wise features.

  • y (np.ndarray) – The vector representing the point-wise classes.

  • header – The LAS header.

  • fnames (list or tuple) – The name for each feature.

__init__(X, F, y=None, header=None, fnames=None, **kwargs)

Initialize an instance of PointCloudArraysFactory.

Parameters:
  • X – The matrix of point coordinates.

  • F – The matrix of point-wise features.

  • y – The vector of classes (OPTIONAL).

  • header – The LAS header (OPTIONAL).

  • fnames – The name for each feature (OPTIONAL).

make(scale=None, force_scale=False, logging=True, handle_overflow=True)

Make a point cloud from arrays. See point_cloud_factory.PointCloudFactory.make()

pcloud.factory.point_cloud_factory module

exception pcloud.factory.point_cloud_factory.PointCloudFactoryException(message)

Bases: VL3DException

Author:

Alberto M. Esmoris Pena

Class for exceptions related to factories of point clouds.

See VL3DException.

__init__(message)
class pcloud.factory.point_cloud_factory.PointCloudFactory(**kwargs)

Bases: object

Author:

Alberto M. Esmoris Pena

Interface governing any point cloud factory.

__init__(**kwargs)
abstractmethod make()

Make a point cloud

Returns:

The built point cloud.

Return type:

PointCloud

pcloud.factory.point_cloud_file_factory module

class pcloud.factory.point_cloud_file_factory.PointCloudFileFactory(path)

Bases: PointCloudFactory

Author:

Alberto M. Esmoris Pena

Class to instantiate PointCloud objects from files. See PointCloud and also PointCloudFactory.

Variables:

path (str) – The path where the input point cloud file is located.

__init__(path)

Initialize an instance of PointCloudFileFactory.

Parameters:

path – The path to the file representing a point cloud (must be stored in LAS format).

make()

Make a point cloud from a file. See point_cloud_factory.PointCloudFactory.make()

Module contents

author:

Alberto M. Esmoris Pena

The factory package contained inside the pcloud package contains the logic to correctly instantiate point clouds.