pyfibre.model.tools.fire_algorithm module

class pyfibre.model.tools.fire_algorithm.FIREAlgorithm(nuc_thresh=2, lmp_thresh=0.15, angle_thresh=70, r_thresh=7, nuc_radius=10)[source]

Bases: object

Class that extracts a complete fibre network from a provided image as a single nx.Graph object

create_network(image)[source]

Initialise network from n_nucleation sites

grow_lmp(index, image, tot_node_coord)[source]

Grow fibre object along network

Parameters
  • index (int) – Index of node to grow on the graph

  • image (array_like, (float); shape=(nx, ny)) – Image to perform FIRE upon

  • tot_node_coord (array_like) – Array of full coordinates (x, y) of nodes in graph network

property theta_thresh

Conversion of angle_thresh to radians