Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/shengyuan-lu/texture-quilting
Texture Quilting (Jupyter Notebook)
https://github.com/shengyuan-lu/texture-quilting
Last synced: 1 day ago
JSON representation
Texture Quilting (Jupyter Notebook)
- Host: GitHub
- URL: https://github.com/shengyuan-lu/texture-quilting
- Owner: shengyuan-lu
- Created: 2023-02-09T23:24:39.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2023-10-23T18:28:25.000Z (over 1 year ago)
- Last Synced: 2023-10-24T19:34:16.436Z (over 1 year ago)
- Language: Jupyter Notebook
- Homepage:
- Size: 1.94 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Texture-Quilting
Texture-Quilting (Jupyter Notebook)## Method
Given a H * W 2D array, we use dynamic programming to find the shortest path from top to bottom.
With the shortest path, we can stitch 2 images together where the two images have very similar brightness values.
![Screenshot 2023-10-23 at 11 18 08](https://github.com/shengyuan-lu/Texture-Quilting/assets/70995597/4f9042d6-ba05-4927-aee1-2126bcafa490)
We can apply this technique to generate more textures with a base texture.
## Demo
### Concrete Example
#### Base Texture
![Screenshot 2023-10-23 at 11 16 56](https://github.com/shengyuan-lu/Texture-Quilting/assets/70995597/c46029f2-8989-4020-b2b4-7e38e2489806)#### Generated Texture
![Screenshot 2023-10-23 at 11 17 04](https://github.com/shengyuan-lu/Texture-Quilting/assets/70995597/8032ea0b-f241-4f66-bbcb-106a81604d0c)### Grass Example
#### Base Texture
![Screenshot 2023-10-23 at 11 17 14](https://github.com/shengyuan-lu/Texture-Quilting/assets/70995597/ee632f1e-bbae-4df4-9b4a-b5f08b5ce414)#### Generated Texture
![Screenshot 2023-10-23 at 11 17 22](https://github.com/shengyuan-lu/Texture-Quilting/assets/70995597/d8e695e9-7d2a-4959-b317-4dc3c32eb7dc)