Shameful tangential plug alert: My sideproject is a dithering-based image-to-pattern converter for plastic fuse beads (you know them, the ones you place on a platter and iron to fuse them together): https://www.beadifier.pro/
Omg I didn’t think of this application for dithering. Love that.
Ditherpunk: The article I wish I had about monochrome image dithering
121–130 of 203 posts
Re: Ditherpunk: The article I wish I had about monochrome image dithering
#122This was quite faster, visually pleasant, and was adapting nicely to viewing distance.
Try freezing some close-up frames around 0:45 here: https://www.youtube.com/watch?v=aXA3360awec
Tim Sweeney called this technique "ordered texture coordinate space dither", apparently:
https://www.flipcode.com/archives/Texturing_As_In_Unreal.sht...
Re: Ditherpunk: The article I wish I had about monochrome image dithering
#123Earlier quoted context omitted.
Donald Knuth also has two nice chapters in "Digital Typography".
I might have to look that up. It's hard for me to imagine what dithering and typography would have in common, other than they might both be used to produce a book.
Re: Ditherpunk: The article I wish I had about monochrome image dithering
#124Re: Ditherpunk: The article I wish I had about monochrome image dithering
#125https://observablehq.com/@jobleonard/ordered-error-diffusion...
(For the record, I picked a default example that highlighted a "hybrid" dither with a very dramatic difference from its "parents" instead of the prettiest result)
Interestingly, and perhaps not surprisingly, a variable threshold map interacts with the error diffusion itself, making it amplify local contrast and recover some fine detail in shadows and highlights (although also possibly overdoing it and crushing the image again).
What's also somewhat interesting (to me at least) that this is really simple to implement: take any error diffusion dithering kernel and make it use the threshold map from ordered dithering. In principle it should have been possible to use them on any old hardware that can handle error diffusion dithering.
Re: Ditherpunk: The article I wish I had about monochrome image dithering
#126TLDR use floyd-steinberg dithering with gamma correction.
Re: Ditherpunk: The article I wish I had about monochrome image dithering
#127ffmpeg -i video-input.mp4 -i palette.png -lavfi "paletteuse=dither=sierra2" video-output.mp4
You'll need to create a 16px by 16px PNG with only black and white pixels. Also, there are other dithering algos that paletteuse offers.
Re: Ditherpunk: The article I wish I had about monochrome image dithering
#128What if it's binary but has a better resolution and they would see like that?
Re: Ditherpunk: The article I wish I had about monochrome image dithering
#129> According to Wikipedia, “Dither is an intentionally applied form of noise used to randomize quantization error”, and is a technique not only limited to images. It is actually a technique used to this day on audio recordings […] Dithering as a digital signal processing technique is also used frequently in the digital control of physical systems. One example of this is in the control of hydraulic servo valves[1]; the…