Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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)

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)