Did I find the right examples for you? yes no

All Samples(3)  |  Call(2)  |  Derive(0)  |  Import(1)

src/n/i/nipy-0.3.0/nipy/algorithms/registration/similarity_measures.py   nipy(Download)
from ._registration import _L1_moments
 
import numpy as np
from scipy.ndimage import gaussian_filter
 
    def __call__(self, H):
        tmp = np.array([_L1_moments(H[j, :]) for j in range(H.shape[0])])
        self.npts_J, self.mI_J, self.sI_J = tmp[:, 0], tmp[:, 1], tmp[:, 2]
        hI = np.sum(H, 0)
        hJ = np.sum(H, 1)
        self.npts, self.mI, self.sI = _L1_moments(hI)