def acfnpl(e, center=True): """ Name acfnpl - calculate the normalized autocorrelation function of an image Input e: input image (real) center: if set to True (default), the origin of the result is at the center; if set to False, the origin is at (0,0). Output autocorrelation function of the input image. Real. """ from EMAN2 import autocorrelation, fp_flag return autocorrelation(e, fp_flag.PADDED_NORMALIZED_LAG, center)
def acf(e, center=True): """ Name acf - calculate the circulant autocorrelation function of an image Input e: input image, can be either real or Fourier center: if set to True (default), the origin of the result is at the center; if set to False, the origin is at (0,0). Output circulant autocorrelation function of the input image. Real. """ from EMAN2 import autocorrelation, fp_flag return autocorrelation(e, fp_flag.CIRCULANT, center)
def acfp(e, center=True): from EMAN2 import autocorrelation, fp_flag return autocorrelation(e, fp_flag.PADDED, center)