Did I find the right examples for you? yes no

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

src/n/i/nipy-0.3.0/nipy/algorithms/registration/groupwise_registration.py   nipy(Download)
from .optimizer import configure_optimizer, use_derivatives
from .affine import Rigid
from ._registration import (_cspline_transform,
                            _cspline_sample3d,
                            _cspline_sample4d)
        if self.time_interp:
            T = self.scanner_time(Z, self.timestamps[t])
            _cspline_sample4d(self.data[:, t],
                              self.cbspline,
                              X, Y, Z, T,
            if self.time_interp:
                T = self.scanner_time(Z, self.timestamps[t])
                _cspline_sample4d(res[:, :, :, t],
                                  self.cbspline,
                                  X, Y, Z, T,

src/n/i/nipy-0.3.0/nipy/algorithms/registration/tests/test_cubic_spline.py   nipy(Download)
import numpy as np
 
from .._registration import (_cspline_transform,
                             _cspline_sample1d,
                             _cspline_sample4d)
    b = np.zeros(a.shape)
    args = list(x)
    b = _cspline_sample4d(b, c, *args)
    assert_array_almost_equal(a, b)
    args = list(x) + ['nearest' for i in range(4)]
    b = _cspline_sample4d(b, c, *args)