Did I find the right examples for you? yes no

All Samples(4)  |  Call(2)  |  Derive(0)  |  Import(2)

src/n/i/nipy-0.3.0/nipy/algorithms/registration/histogram_registration.py   nipy(Download)
from .chain_transform import ChainTransform
from .similarity_measures import similarity_measures as _sms
from ._registration import _joint_histogram
 
MAX_INT = np.iinfo(np.intp).max
        if self._interp < 0:
            interp = - np.random.randint(MAX_INT)
        _joint_histogram(self._joint_hist,
                         self._from_data.flat,  # array iterator
                         self._to_data,

src/n/i/nipy-0.3.0/nipy/algorithms/registration/tests/test_histogram_registration.py   nipy(Download)
from ..affine import Affine
from ..histogram_registration import HistogramRegistration
from .._registration import _joint_histogram
 
from numpy.testing import assert_array_equal
    vox_coords = np.indices(data_shape).transpose((1, 2, 3, 0))
    vox_coords = np.ascontiguousarray(vox_coords.astype(np.double))
    _joint_histogram(jh_arr, data.flat, data2, vox_coords, 0)
    assert_almost_equal(np.diag(np.diag(jh_arr)), jh_arr)