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, Cimage w, Cimage *map_out, Cimage *copy_map_out) |
Implements Efros-Leung texture synthesis algorithm for color images. | |
Gimage | efros_leung_synth_gray (int t, int out_img_sz, float tol, int init, Gimage w, Cimage *map_out, Cimage *copy_map_out) |
Implements Efros-Leung texture synthesis algorithm for gray level images. |
Efros-Leung texture synthesis.
This file implements Efros & Leung's algorithm for texture synthesis for color images. It is described in "Texture synthesis by non-parametric sampling" by A. A. Efros and T. K. Leung. in International Conference on Computer Vision, pages 1033–1038, September 1999.
This file implements Efros & Leung's algorithm for texture synthesis for gray level images. It is described in "Texture synthesis by non-parametric sampling" by A. A. Efros and T. K. Leung. in International Conference on Computer Vision, pages 1033–1038, September 1999.
Cimage efros_leung_synth | ( | int | t, |
int | out_img_sz, | ||
float | tol, | ||
int | init, | ||
Cimage | w, | ||
Cimage * | map_out, | ||
Cimage * | copy_map_out | ||
) |
Implements Efros-Leung texture synthesis algorithm for color images.
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. |
w | Sample image. |
map_out | Synthesis map of the sample image. |
copy_map_out | Synthesis map of the output image. |
Gimage efros_leung_synth_gray | ( | int | t, |
int | out_img_sz, | ||
float | tol, | ||
int | init, | ||
Gimage | w, | ||
Cimage * | map_out, | ||
Cimage * | copy_map_out | ||
) |
Implements Efros-Leung texture synthesis algorithm for gray level images.
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. |
w | Sample image. |
map_out | Synthesis map of the sample image. |
copy_map_out | Synthesis map of the output image. |