pyfibre.model.objects.fibre_network module

class pyfibre.model.objects.fibre_network.FibreNetwork(*args, fibres=None, red_graph=None, **kwargs)[source]

Bases: pyfibre.model.core.base_graph.BaseGraph

Container for a Networkx Graph representing a connected fibrous region

property fibre_assigner
classmethod from_json(data)[source]

Routine to represent any instance as a dictionary containing basic python data types

generate_database()[source]

Generates a Pandas database with all graph and segment metrics for assigned image

generate_fibres()[source]
generate_red_graph()[source]
to_json()[source]

Return the object state in a form that can be serialised as a JSON file