pymerlin.iq.aes

pymerlin.iq.aes(img, mask=None, canny_edges=None, canny_sigma=2)[source]

Calculate the Average Edge Strength

Reference: Aksoy, M., Forman, C., Straka, M., Çukur, T., Hornegger, J., & Bammer, R. (2012). Hybrid prospective and retrospective head motion correction to mitigate cross-calibration errors. Magnetic Resonance in Medicine, 67(5), 1237–1251. https://doi.org/10.1002/mrm.23101

Parameters
  • img (np.array) – Image

  • mask (np.array, optional) – Brain mask. Defaults to None.

  • canny_edges (np.array, optional) – Edges to use for calculation, calculates if None. Defaults to None.

  • canny_sigma (int, optional) – Sigma for canny edge detection filter. Defaults to 2.

Returns

aes, edges, canny edge mask

Return type

float, np.array, np.array