Did I find the right examples for you? yes no

All Samples(12)  |  Call(10)  |  Derive(0)  |  Import(2)

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
 
im = load_image(funcfile)
 
 
def test_scanner_time():
    im4d = Image4d(im.get_data(), im.affine, tr=2.,
def test_slice_info():
    im4d = Image4d(im.get_data(), im.affine, tr=2.,
                   slice_info=(1, -1))
    assert_equal(im4d.slice_axis, 1)
    assert_equal(im4d.slice_direction, -1)
def _test_image4d_init(nslices):
    data = np.zeros((3, 4, nslices, 6))
    aff = np.eye(4)
    tr = 2.0
    img4d = Image4d(data, aff, tr)
    assert_array_equal(img4d.slice_order, range(nslices))
    img4d = Image4d(data, aff, tr, slice_order='ascending')

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,