makeworld
makeworld
Other ways of doing this: ``` --palette mmcq --palette num 4 ``` ``` --palette mmcq:5 ``` These methods allow the color quantization algorithm to be chosen, in case more are...
Thanks for reaching out! > replace each sample by 8x8 matrix of pixels representing 256 levels of gray This is the part I'm not sure about. How can I generate...
Some links from HN: https://github.com/gabrielarchanjo/marvin-framework/blob/f5008c70859198b80bb430f97aa1db9c66c9548e/marvinproject/dev/MarvinPlugins/src/org/marvinproject/image/halftone/circles/Circles.java https://dl.acm.org/doi/pdf/10.1145/127719.122727?casa_token=r7RLX2FwCCkAAAAA:accvlG1_tRYkdMpDpsxL3OoNkuFpNNNUxizbFE026c-utxJDibQxb-fnJ6Vann2UJfDVn61oKeN7eS4 > (ordered dither): This algorithm is generally identified as a dispersed-dot technique [Limb 69], but if the intensity threshold levels are spatially concentrated it...
Thanks. I admit I don't totally get what you mean, but I think I just need to read it again more in depth. Some more links [from HN](https://news.ycombinator.com/item?id=26133057): https://stackoverflow.com/questions/10572274/how-to-create-cmyk-halftone-images-from-a-color-image/10575940#10575940 Contains...
Thank you! That's helpful. I will take a look at this when I have time.
Note: This halftoning Python code might be helpful: https://github.com/bzamecnik/halftone/blob/main/halftone/__init__.py
Note: the correct image is `test2.png`, where the palette order is `black white red`. This is what the dither library outputs in my tests.
Here is the most minimal test case I could find. Original image, a 2x2 PNG of only the color `#FFCC00`:  Direct link: https://user-images.githubusercontent.com/25111343/117172919-42aaf100-ad9a-11eb-8410-f56eba406f58.png Here are the two outputs, scaled...
This test **can** actually be replicated by the dither library. Transferring issue there now.
Ok, I have figured out the problem. When quantization error is applied to the bottom right pixel, the final (linear, 16-bit) value is `65535, 65535, 0`, equivalent to `#ffff00`, pure...