Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Invert transforms #54

Open
schlegelp opened this issue Jun 21, 2021 · 2 comments
Open

Invert transforms #54

schlegelp opened this issue Jun 21, 2021 · 2 comments

Comments

@schlegelp
Copy link

Hi! First off: Thanks for this great library!

I'm working with data where I frequently also need to apply the inverse transform, i.e target->source instead of source->target. I was wondering if you would consider adding functionality for this? E.g. by implementing a __neg__ method for the transforms.

Best,
Philipp

@vinceTapioca
Copy link

I mostly appreciated

@gattia
Copy link
Collaborator

gattia commented Jan 28, 2022

sorry @schlegelp I didnt see this before. I hoped you found a solution.

For you & @vinceTapioca here is a gist on how you could do this yourself using the package as it is. Note that this method is written for rigid, but it should work just fine for affine with some tweaks (I made comments). It wont work for deformable - its less trivial to do it for deformable.

https://gist.github.com/gattia/3408708b1c3b03bd3502fd7528ad4bac

When I get the time I will use this gist to update the repository - if you have time to add the functionality, a pull request would be amazing.

thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants