pyfibre.model.tools.metrics module

pyfibre.model.tools.metrics.fibre_metrics(tot_fibres)[source]

Analysis of list of Fibre objects

Parameters

tot_fibres (list of <class: Fibre>) – List of fibre to analyse

Returns

database – Metrics calculated from networkx Graph and scikit-image regionprops objects

Return type

DataFrame

pyfibre.model.tools.metrics.fibre_network_metrics(fibre_networks)[source]

Analysis of list of FibreNetwork objects

Parameters

fibre_networks (list of <class: FibreNetwork>) – List of fibre networks to analyse

Returns

database – Metrics calculated from networkx Graph and scikit-image regionprops objects

Return type

DataFrame

pyfibre.model.tools.metrics.network_metrics(network, network_red, n_fibres, tag='')[source]

Analyse networkx Graph object

pyfibre.model.tools.metrics.region_shape_metrics(region, tag='')[source]

Shape analysis for a scikit-image region

pyfibre.model.tools.metrics.region_texture_metrics(region, image=None, tag='', glcm=False)[source]

Texture analysis for a of scikit-image region

pyfibre.model.tools.metrics.segment_metrics(segments, image, image_tag=None, sigma=0.0001)[source]

Analysis of a list of BaseSegment objects

Parameters
  • segments (list of <class: BaseSegment>) – List of cells to analyse

  • image (array-like) – Full image to analyse

Returns

database – Metrics calculated from scikit-image regionprops objects

Return type

DataFrame

pyfibre.model.tools.metrics.structure_tensor_metrics(structure_tensor, tag='')[source]

Nematic tensor analysis for a scikit-image region