Skip to content

Interpolated/partial transform? #250

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

Open
turian opened this issue May 5, 2021 · 0 comments
Open

Interpolated/partial transform? #250

turian opened this issue May 5, 2021 · 0 comments

Comments

@turian
Copy link

turian commented May 5, 2021

🚀 Feature

transform (and perhaps inverse_transform) should allow for interpolation (partial) transformation, given lambda (default=1).

Motivation

Interpolation allows one to seamlessly "morph" between two distributions.

Pitch

This is useful for all kinds of image processing tasks, where one does not want to fully transform a distribution, but gradually or partially transform the distribution.

For example, consider this blog post where your toolkit is used to transform the color map from a day image onto a night image. Interpolated transport would allow this tranformation to happen gradually and generate a video.

Alternatives

Kludging the matrix and then running transform. Any guidance on how to do this would be greatly appreciated.

Additional context

Roma et al. (2020) describe this process for audio morphing: "Displacement interpolation is then accomplished by sliding
through the non-zero entries of the transport matrix: given an interpolation parameter λ, each pair of masses in the matrix are interpolated to (1 − λ)xi + λyi and added to the output spectrum."

Attached is an image from their work:

image

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

No branches or pull requests

1 participant