pyfibre.model.tools.fibre_assigner module¶
-
class
pyfibre.model.tools.fibre_assigner.FibreAssigner(angle_thresh=70, min_n=4)[source]¶ Bases:
objectAssigns a list of Fibre class instances to a networkx Graph
-
assign_fibres(graph)[source]¶ Returns a list of Fibre instances, extracted from a networkx graph
- Parameters
graph (Networkx.Graph) – Graph to extract fibres from
- Returns
tot_fibres – List of fibre objects extracted from graph
- Return type
list of Fibre
-
property
edge_count¶ Utility method to generate array containing number of edges for each networkx graph node
-
property
node_coord¶ Utility method to generate array of all pixel coordinates of networkx graph nodes
-
property
theta_thresh¶ Conversion of angle_thresh from degrees into cosine(radians)
-