openalea.phenomenal.tracking.trackedPlant.TrackedSnapshot
- class openalea.phenomenal.tracking.trackedPlant.TrackedSnapshot(leaves, check)[source]
Bases:
object
Describe the plant segmentation at a given time point, particularly the order of leaves, which is modified during leaf tracking.
Methods
__init__
(leaves, check)- param leaves:
returns the ranks of leaves contained in self.leaves
- leaf_ranks()[source]
returns the ranks of leaves contained in self.leaves
example : self.leaves = [leaf0, leaf1, leaf2, leaf3] self.sequence = [-1, -1, 0, 1, -1, 2, 3, -1] ===> self.leaf_ranks() returns [3, 4, 6, 7]
WARNING : the rank of a leaf is given by its position in TrackedSnapshot.sequence, which starts at 0. But leaf ranks are usually numerated starting from 1: this second option is used in the output from this function.