pyfibre.model.objects.fibre module

class pyfibre.model.objects.fibre.Fibre(*args, nodes=None, edges=None, growing=True, **kwargs)[source]

Bases: pyfibre.model.core.base_graph.BaseGraph

Container for a Networkx Graph and scikit-image region representing a single, un-branched fibre

property angle

Angle relating to fibre direction

property direction

Vector representing the direction of fibre

property euclid_l

Euclidean distance between each end of the fibre

property fibre_l

Perimeter distance along entire fibre

generate_database(image=None)[source]

Generates a Pandas database with fibre metrics

property waviness

Normalised metric representing the fibre waviness; euclidean distance divided by fibre perimeter