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/io/nifti_ref.py   nipy(Download)
 
from ..core.reference.coordinate_system import CoordinateSystem as CS
from ..core.reference.coordinate_map import (AffineTransform as AT,
                                             axmap,
                                             product as cm_product)
    input_cs3 = CS(input_names3, name='voxels')
    output_cs3 = world_space.to_coordsys_maker()(3)
    cmap3 = AT(input_cs3, output_cs3, affine)
    if ndim == 3:
        return Image(data, cmap3, {'header': hdr})
    input_cs = CS(ns_names[:n_ns])
    aff = from_matvec(np.diag(ns_zooms), ns_trans)
    ns_cmap = AT(input_cs, output_cs, aff)
    cmap = cm_product(cmap3, ns_cmap,
                      input_name=cmap3.function_domain.name,

src/n/i/nipy-0.3.0/nipy/core/image/tests/test_image_list.py   nipy(Download)
from ..image import Image
from ....io.api import load_image
from ....core.reference.coordinate_map import (AxisError, CoordinateSystem,
                                               AffineTransform)
 
    assert_equal(len(ImageList.from_image(FIMG, axis='t')), 20)
    # Input and output axis names work
    new_cmap = AffineTransform(CoordinateSystem('ijkl'),
                               FIMG.coordmap.function_range,
                               FIMG.coordmap.affine)