morphoclass.transforms.global_features.extract_number_leaves module

Implementation of the ExtractNumberLeaves global feature extractor.

class morphoclass.transforms.global_features.extract_number_leaves.ExtractNumberLeaves

Bases: morphoclass.transforms.global_features.abstract_global_feature_extractor.AbstractGlobalFeatureExtractor

Extract number of leaf nodes.

The data should contain the field tmd_neurites, see the ExtractTMDNeuritess class.

extract_global_feature(data)

Extract the number of leaf nodes of the morphology.

Parameters

data – A morphology data sample.

Returns

Return type

The total number of leaf nodes of the morphology.