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

Slider mode to change DCT coefficients across entire image #3

Open
OmarShehata opened this issue Mar 8, 2022 · 0 comments
Open

Slider mode to change DCT coefficients across entire image #3

OmarShehata opened this issue Mar 8, 2022 · 0 comments

Comments

@OmarShehata
Copy link
Owner

This came up on Twitter: https://twitter.com/polprogpl/status/1500847424595763201

This is super cool, I kinda expected the slider to remove higher order components from the entire image though :D

This wouldn't be too hard, basically instead of running it for the "chosen block" on the slider here:

// Update the acValues in sequence to 0

You'd want to run it for all blocks. There's an example of how to get all blocks in the image here:

const allBlocks = [];

It would be especially cool hooked up to the mouse wheel (see #2) so you can drag and drop an image, and then scroll wheel to quantize it/compress it in real time.

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

1 participant