Efros-Leung
Exemplar-basedtexturesynthesis(Efros-Leung)
Functions
inc/efros_leung.h File Reference

Efros-Leung texture synthesis. More...

#include "synthesis.h"
#include "auxiliary.h"

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.

Detailed Description

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.

Author:
Cecilia Aguerrebere

Function Documentation

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.

Parameters:
tHalf-size of the patches.
out_img_szSize of the synthesized image.
tolTolerance parameter $\varepsilon$.
initIf non-zero, use a random patch of the image to initialize the algorithm.
dims_pcaNumber of PCA components used to compute distances between (the known parts of) patches.
wSample image.
map_outSynthesis map of the sample image.
copy_map_outSynthesis map of the output image.
Todo:
File efros_leung.c, function efros_leung_synth: arguments map_out et copy_map_out ?
Returns:
The synthesized image.
 All Classes Files Functions Variables