It's an implementation of Efros and Freeman's "Image Quilting and Texture Synthesis" 2001
Branch: master
Clone or download
Pull request Compare This branch is 7 commits behind afrozalm:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
PatchBasedSynthesis.py
README.md
bubbles.jpg
corn.jpg
mesh.jpg
mesh2.jpg
pattern.jpg
roof.jpg

README.md

Patch-Based-Texture-Synthesis

It's an implementation of Efros and Freeman's "Image Quilting and Texture Synthesis" 2001

The output depends on two factors : PatchSize and OverlapWidth The running time depends on Sample Image dimensions, Desired Image dimensions, ThresholdConstant and PatchSize

To run the code, copy the following into your command line

python PatchBasedSynthesis.py /image/source.jpg Patch_Size Overlap_Width Initial_Threshold_error

for example python PatchBasedSynthesis.py /home/afroz/textures/corn.jpg 30 5 78.0