src.mining.geom_feats_miner

Classes

GeomFeatsMiner(**kwargs)

class src.mining.geom_feats_miner.GeomFeatsMiner(**kwargs)
Author:

Alberto M. Esmoris Pena

Basic geometric features miner. See Miner.

Variables:
  • radius (float) – The radius (often in meters) attribute. Radius is 0.3 by default.

  • fnames (list) – The list of feature names (fnames) attribute. [‘linearity’, ‘planarity’, ‘sphericity’] by default.

  • nthreads (int) – The number of threads to be used for the parallel computation of the geometric features. Note using -1 (default value) implies using as many threads as available cores.

  • frenames (list) – Optional attribute to specify how to rename the mined features.

static extract_miner_args(spec)

Extract the arguments to initialize/instantiate a GeomFeatsMiner from a key-word specification.

Parameters:

spec – The key-word specification containing the arguments.

Returns:

The arguments to initialize/instantiate a GeomFeatsMiner.

__init__(**kwargs)

Initialize an instance of GeomFeatsMiner.

The radius and feature names (fnames) are always assigned during initialization. Their default values are 0.3 and the list [‘linearity’, ‘planarity’, ‘sphericity’], respectively.

The number of threads (nthreads or n_jobs) is also assigned during initialization with a default value of -1 which means use as many threads as available cores.

Parameters:

kwargs – The attributes for the GeomFeatsMiner that will also be passed to the parent.

mine(pcloud)

Mine geometric features from the given point cloud. See Miner and mining.Miner.mine().

Parameters:

pcloud (PointCloud) – The point cloud to be mined.

Returns:

The point cloud extended with geometric features.

Return type:

PointCloud