Matlab code to do Image Quilting as presented in the SIGGRAPH 2002 paper by Efros & Freeman.
Note: this isn't Efros & Freeman's code, just an implementation of it.
Texture Synthesize
IMOUT = SYNTHESIZE(IMGIN , SIZEOUT, TILESIZE, OVERLAP [, ISDEBUG])
returns an image that is Texture Synthesized
IMGIN
the code both works on grascale images or color images
SIZEOUT
An 1*2 array , the size of output image
e.g. size(texture)*3
TILESIZE
TILESIZE of each block
OVERLAP
size of overlap bar between blocks
ISDEBUG
equals 0 (default) if no debug function
the algorithm will shows progress of each step, a little more
time will be cost in plotting. |