-
Notifications
You must be signed in to change notification settings - Fork 21
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
Lerp the DCT coefficients of two images #15
Comments
Just to note this down here, the above demo was created entirely in the browser console. Here's a gist with the code: https://gist.github.com/OmarShehata/895e42474c5604439888426cb57dab75
var catData = `COPY_PASTE_ALL_THE_CAT_COEFFICIENTS`;// from the cat article
|
Other notes for building a standalone prototype that does this lerp:
01-unraveling-the-jpeg/components/utils/ImageUtilities.js Lines 363 to 376 in b655460
01-unraveling-the-jpeg/components/utils/ImageUtilities.js Lines 378 to 405 in b655460
|
And of course it'd be really cool to be able to drag and drop any 2 images to morph them like that |
Inspired by this tweet: https://twitter.com/JobvdZwan/status/1400477315738574856
I think it would be cool to put together a standalone demo that lets you pick two images and have a slider to go back and forth.
I put together a little experiment exploring this idea, that replaces the coefficients of one image with another, one by one, starting with the highest frequency, over time:
fox2cat_spedup.mp4
It's not fast enough to be realtime, but I think that's only because the article is doing a lot of work every time the coefficients change, and maybe that can be optimized a bit.
The text was updated successfully, but these errors were encountered: