Did I find the right examples for you? yes no

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

src/n/i/nipy-0.3.0/nipy/algorithms/registration/__init__.py   nipy(Download)
                     Affine2D, Rigid, Rigid2D, Similarity, Similarity2D,
                     affine_transforms)
from .groupwise_registration import (interp_slice_order, scanner_coords,
                                     make_grid, Image4d, Realign4dAlgorithm,
                                     resample4d, adjust_subsampling,

src/n/i/nipy-0.3.0/nipy/algorithms/registration/tests/test_fmri_realign4d.py   nipy(Download)
from ....fixes.nibabel import io_orientation
 
from ..groupwise_registration import Image4d, resample4d, FmriRealign4d
from ..affine import Rigid
 
def test_realign4d_no_time_interp():
    runs = [im, im]
    R = FmriRealign4d(runs, slice_order=None, time_interp=False)
 
 
    orient = io_orientation(im.affine)
    slice_axis = int(np.where(orient[:, 0] == 2)[0])
    R1 = FmriRealign4d(runs, tr=2., slice_order='ascending')
    R1.estimate(refscan=None, loops=1, between_loops=1, optimizer='steepest')
    R2 = FmriRealign4d(runs, tr=2., slice_order=range(im.shape[slice_axis]))