pymccrgb.features module

Calculate indices and other features from multi-channel point cloud data

Inputs are assumed to be n x 6 arrays with each row being x, y, z, r, g, b

pymccrgb.features.calculate_color_features(data)[source]

Calculates color features related to the greenness of each point.

The default features are [a, b, NGRDVI] where a and b are the green-red and blue-yellow coordinates of the CIE-Lab color space.

Parameters:
data: array

An n x d array of input data. Rows are [x, y, z, r, g, b, …]

Returns:
An n x 3 array of features for each point.
pymccrgb.features.calculate_eigenvalue_features(data)[source]
pymccrgb.features.calculate_ngrdvi(data)[source]

Calculates red-green difference index (NGRDVI) from color data

Parameters:
data: array

An n x d array of input data. Rows are [x, y, z, r, g, b, …]

Returns:
An n x 1 array of NGRDVI values
pymccrgb.features.calculate_vdvi(data)[source]

Calculates visual difference vegetation index (VDVI) from color data

Parameters:
data: array

An n x d array of input data. Rows are [x, y, z, r, g, b, …]

Returns:
An n x 1 array of VDVI values