cymorph.g2.G2

class cymorph.g2.G2(segmented_image, g2_modular_tolerance=0.01, g2_phase_tolerance=0.01)

Extracts entropy metric from the supplied image.

Parameters
  • segmented_image (2-d ndarray) – Segmented image data array.

  • g2_modular_tolerance (float, optional) – Modular tolerance. How much differences in vector modules will be acepted. Ranges from 0.0 (vectors should be same to count the same) to 1.0 (any vectors will be counted as same). Default is 0.01.

  • g2_phase_tolerance (float, optional) – Phase tolerance. How much differences in vector phases will be acepted. Ranges from 0.0 (vectors should be same to count the same) to 3.14 (any vectors will be counted as same, even completly opposite). Default is 0.01.

__init__(segmented_image, g2_modular_tolerance=0.01, g2_phase_tolerance=0.01) None

Methods

__init__(segmented_image[, ...])

get_asymmetry_gradient_plot()

(Debugging routine) Asymmetrical gradient plot showing the vector field after removing symmetrical vector pairs.

get_g2()

Get a g2 metric.

get_gradient_plot()

(Debugging routine) Gradient plot showing the vector field before removing symmetrical vector pairs