Did I find the right examples for you? yes no

All Samples(6)  |  Call(3)  |  Derive(0)  |  Import(3)

src/n/i/nipy-0.3.0/nipy/algorithms/registration/tests/test_resample.py   nipy(Download)
                                         xyz_affine)
from ....core.api import Image, vox2mni
from ..resample import resample
from ..affine import Affine
 
    T = Affine()
    for i in interp_orders:
        img2 = resample(img, T, interp_order=i)
        assert_array_almost_equal(img2.get_data(), img.get_data())
        img_aff = as_xyz_image(img)
        img2 = resample(img, T, reference=(img_aff.shape, xyz_affine(img_aff)),
def test_resample_uint_data():
    arr = np.random.randint(100, size=(10, 11, 12)).astype('uint8')
    img = Image(arr, vox2mni(np.eye(4)))
    T = Affine((.5, .5, .5, .1, .1, .1, 0, 0, 0, 0, 0, 0))
    img2 = resample(img, T)

src/n/i/nipy-0.3.0/nipy/algorithms/registration/__init__.py   nipy(Download)
# emacs: -*- mode: python; py-indent-offset: 4; indent-tabs-mode: nil -*-
# vi: set ft=python sts=4 ts=4 sw=4 et:
from .resample import resample
from .histogram_registration import (HistogramRegistration, clamp,
                                    ideal_spacing, interp_methods)

src/d/i/diffpy.utils-1.1/diffpy/utils/parsers/__init__.py   diffpy.utils(Download)
 
from .loaddata import loadData
from .resample import resample
 
# End of file