skoudoro on master
NF - added cython utility fcts RF - removed unused impots DOC/PEP8 and 6 more (compare)
skoudoro on master
fixed bug fornon-linear fitting… Merge pull request #2717 from s… (compare)
namedtuple
that would be used internally by the registration / optimization routines
@nabsabraham ; nice thing is you can do this in dipy !!! https://dipy.org/documentation/1.0.0./examples_built/affine_registration_3d/#example-affine-registration-3d excerpt: We can see that the images are far from aligned by drawing one on top of the other. The images don’t even have the same number of voxels, so in order to draw one on top of the other we need to resample the moving image on a grid of the same dimensions as the static image, we can do this by “transforming” the moving image using an identity transform
identity = np.eye(4)
affine_map = AffineMap(identity,
static.shape, static_grid2world,
moving.shape, moving_grid2world)
resampled = affine_map.transform(moving)