Did I find the right examples for you? yes no

All Samples(2)  |  Call(1)  |  Derive(0)  |  Import(1)

src/n/i/nipy-0.3.0/nipy/algorithms/registration/tests/test_polyaffine.py   nipy(Download)
import numpy as np
 
from ..polyaffine import PolyAffine
from ..affine import Affine
 
 
# test 1: crach test create polyaffine transform
T = PolyAffine(centers, affines, sigma)
 
# test 2: crash test apply method
 
# test 5: crash test left compose method
AT = A.compose(T)
 
z = AT.apply(xyz)