Efros-Leung
Exemplar-basedtexturesynthesis(Efros-Leung)
|
Efros-Leung texture synthesis. More...
Go to the source code of this file.
Functions | |
Cimage | efros_leung_synth (int t, int out_img_sz, float tol, int init, int dims_pca, Cimage w, Cimage *map, Cimage *copy_map) |
Implements Efros-Leung texture synthesis algorithm. |
Efros-Leung texture synthesis.
This file implements an accelerated version of the Efros & Leung's algorithm for texture synthesis. It is described in "Exemplar-based texture synthesis : the Efros-Leung algorithm" by C. Aguerrebere, Y. Gousseau and G. Tartavel. in Image Processing Online (IPOL) December 2012.
Cimage efros_leung_synth | ( | int | t, |
int | out_img_sz, | ||
float | tol, | ||
int | init, | ||
int | dims_pca, | ||
Cimage | w, | ||
Cimage * | map_out, | ||
Cimage * | copy_map_out | ||
) |
Implements Efros-Leung texture synthesis algorithm.
t | Half-size of the patches. |
out_img_sz | Size of the synthesized image. |
tol | Tolerance parameter ![]() |
init | If non-zero, use a random patch of the image to initialize the algorithm. |
dims_pca | Number of PCA components used to compute distances between (the known parts of) patches. |
w | Sample image. |
map_out | Synthesis map of the sample image. |
copy_map_out | Synthesis map of the output image. |