Open umzi2 opened 3 weeks ago
For dithering, the fastest and most convenient is Chainner-rs. Examples: https://github.com/chaiNNer-org/chaiNNer/blob/main/backend/src/packages/chaiNNer_standard/image_filter/quantize/dither.py
https://github.com/umzi2/wtp_dataset_destroyer/blob/master/src/process/dithering_degr.py
https://github.com/Kim2091/helpful-scripts/blob/d413054eda3764fd04ec2c22fb3c3b6a5e61e31a/Dataset%20Destroyer/datasetDestroyer.py#L213
For halftone and screentone I recommend pepeline-rs Examples: https://github.com/umzi2/halftone_generation/blob/master/src/add_halftone.py
https://github.com/umzi2/wtp_dataset_destroyer/blob/master/src/process/screentone_degr.py
Thanks for suggestions! I'm currently experimenting with porting backend in Rust, as PyO3 seems a lot more stable than Gopy, so I might use these projects to build on top of them.
For dithering, the fastest and most convenient is Chainner-rs. Examples: https://github.com/chaiNNer-org/chaiNNer/blob/main/backend/src/packages/chaiNNer_standard/image_filter/quantize/dither.py
https://github.com/umzi2/wtp_dataset_destroyer/blob/master/src/process/dithering_degr.py
https://github.com/Kim2091/helpful-scripts/blob/d413054eda3764fd04ec2c22fb3c3b6a5e61e31a/Dataset%20Destroyer/datasetDestroyer.py#L213
For halftone and screentone I recommend pepeline-rs Examples: https://github.com/umzi2/halftone_generation/blob/master/src/add_halftone.py
https://github.com/umzi2/wtp_dataset_destroyer/blob/master/src/process/screentone_degr.py