efros_freeman  0.1
blending.h
Go to the documentation of this file.
1 /*
2  Copyright (c) 2016 Lara Raad <lara.raad@cmla.ens-cachan.fr>,
3  Bruno Galerne <bruno.galerne@parisdescartes.fr>
4 
5  Quilting is free software: you can redistribute it and/or modify
6  it under the terms of the GNU Affero General Public License as
7  published by the Free Software Foundation, either version 3 of the
8  License, or (at your option) any later version.
9 
10  This program is distributed in the hope that it will be useful,
11  but WITHOUT ANY WARRANTY; without even the implied warranty of
12  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13  GNU Affero General Public License for more details.
14 
15  You should have received a copy of the GNU Affero General Public License
16  along with this program. If not, see <http://www.gnu.org/licenses/>.
17 */
18 
19 /**
20 * @file blending2.h
21 * @brief this header file contains all necessary
22 * functions to perform the boundary mask to thenn
23 * blend the patch under construction into the
24 * synthesized image.
25 *
26 * @author Lara Raad
27 *
28 * @date 24/06/2014
29 */
30 #ifndef BLENDING2_H_
31 #define BLENDING2_H_
32 
33 #include "common.h"
34 
35 int blend_patch(Image boundary_mask, Image *out_im, Image src_im,
36  Corner patch_src, Corner temp, int ps, int os);
37 
38 int smooth_mask(Image *boundary_mask, int ps, int os, Corner temp);
39 
40 int filter_mask(int X1[],int Y1[], int X2[], int Y2[], int ps,
41  Image *boundary_mask, float kernel[], int center);
42 
43 #endif