gryds
gryds copied to clipboard
How to get inverse grid
Hi, Thanks for sharing this excellent work! I'm trying to generate corresponding flat and warped images with forward transformation grid. Are there any way to get backward grid that recovering generated warped images to origin flat image?
Thanks you Dominique!
Currently, inverse transformations are not available out of the box, but for AffineTransformation
and TranslationTransformation
you can invert them yourself (take the inverse of the affine matrix or mirror the translation) and create a new grid.
For BSplineTransformation
, getting the inverse transform of a forward transform is not a trivial problem. If you really need a free-form similar to B-spline transformations to be invertible, have a look at diffeomorphic transformations, which are invertible by definition.