-
-
Notifications
You must be signed in to change notification settings - Fork 46
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
Add Pattern-based Distortion Generator #242
Comments
Voronoi and Delaunay tessellation offer another method to generate patterns that could be sampled and applied for generating distortions. This is particularly appealing since there are readily available python implementations that could be more quickly leveraged:
Voronoi vs Delaunay Tessellation Additionally, colorized implementations can be generated based on a source image where the color of each shape is determined by the average color of each corner and the center of the polygon1. Further, this may serve as a potential shortcut for implementing wrinkled paper. Footnotes |
Related concept, using aperiodic tiling
|
Organic PatternsThis "pattern" is more organic and random-looking, but still consistent enough to think of it as a pattern. In this case, the pattern would be combined with a deboss function (see #164) when rendered to the paper layer. Use of Skeletonize FunctionThese organic patterns show the use of the skeletonize function which might be useful when applied to noise to generate organic-looking patterns: Perlin Noise as Probability FunctionUsing Perlin noise (see background of this image) could also be used as a probability function for placement of shapes on a layer: |
While subconsciously searching for what a "pattern" even means, I noticed this paper from a mailed envelope containing tax information intended to obscure its contents. Wikepedia has some notes on patterns from nature that also reflect on these ideas. So far, I think patterns have the following characteristics:
|
Errors in Perlin Noise Makes Interesting Patternshttps://stackoverflow.com/questions/26611906/strange-result-from-perlin-noise-generator |
Added new augmentations for Pattern Distortion. #242
This repo some experiments with "plane-filling curves" and Fourier transforms that are interesting for considering future types of patterns. There's more details on a number of space-filling curve techniques on wikipedia. |
Printed documents often include artifacts that may come from the paper textures, printing presses, etc.
The geopatterns python port offers a potential avenue for generating such patterns that could be processed a bit and merged into the paper layer. Brandon Mills offers a web-based demo of geopatterns.
Below is an illustrative example that comes from the Tai Le Historical Document Image Binarization Dataset 2021:
The text was updated successfully, but these errors were encountered: