efros_freeman  0.1
Macros | Functions
quilting.c File Reference
#include <stdio.h>
#include <stdlib.h>
#include <math.h>
#include <string.h>
#include <assert.h>
#include <float.h>
#include <fftw3.h>
#include <time.h>
#include "quilting.h"
#include "patch_search.h"
#include "boundary_cut.h"
#include "blending.h"
#include "random_number.h"
Include dependency graph for quilting.c:

Go to the source code of this file.

Macros

#define omp_get_thread_num()   0
#define MAX_DIST   FLT_MAX

Functions

Image quilting_synthesis (Image src_im, int wp, int wo, int p_row, int p_col, float tol, Image *position_map, Image *synth_map, long *seed)

Macro Definition Documentation

#define MAX_DIST   FLT_MAX

Definition at line 40 of file quilting.c.

#define omp_get_thread_num ( )    0

Definition at line 31 of file quilting.c.

Function Documentation

Image quilting_synthesis ( Image  src_im,
int  wp,
int  wo,
int  p_row,
int  p_col,
float  tol,
Image position_map,
Image synth_map,
long *  seed 
)

This method synthesizes a texture image quilting patches taken from an input sample texture.

Author
Lara Raad
Parameters
src_imThe input texture sample
wpThe size of the patches
woThe size of the overlap area betwenn patches
p_rowNumber of patches per row to paste in the synthesized img
p_colNumber of patches per col to paste in the synthesized img
tolThe threshold used to select patches from the input img
Date
24/05/2012

Definition at line 54 of file quilting.c.

Here is the call graph for this function:

Here is the caller graph for this function: