From f618466c25d43f3bae9e40920273bf77de1e1149 Mon Sep 17 00:00:00 2001 From: leochanj105 Date: Mon, 19 Oct 2020 23:09:30 -0400 Subject: initial sd-vbs initial sd-vbs add sd-vbs sd-vbs --- .../benchmarks/texture_synthesis/src/c/texture.h | 48 ++++++++++++++++++++++ 1 file changed, 48 insertions(+) create mode 100644 SD-VBS/benchmarks/texture_synthesis/src/c/texture.h (limited to 'SD-VBS/benchmarks/texture_synthesis/src/c/texture.h') diff --git a/SD-VBS/benchmarks/texture_synthesis/src/c/texture.h b/SD-VBS/benchmarks/texture_synthesis/src/c/texture.h new file mode 100644 index 0000000..9819c03 --- /dev/null +++ b/SD-VBS/benchmarks/texture_synthesis/src/c/texture.h @@ -0,0 +1,48 @@ +/******************************** +Author: Sravanthi Kota Venkata +********************************/ + +#ifndef _TEXTURE_ +#define _TEXTURE_ + +#include "sdvbs_common.h" + +#define R 0 +#define G 1 +#define B 2 +#define a(x,y,W) (1*((y)*(W)+(x))) +#define aa(x,y) (2*((y)*data->widthout+(x))) + +typedef float pixelvalue; + +typedef struct +{ + double sign, diff; + int x,y; + int secondx, secondy; +}signature; + +typedef struct{ + int localx, localy, localz; + int widthin, widthout; + int heightin, heightout; + int nfin, nfout; +}params; + +void *SIGNATURES; + +//void create_texture(F2D *image, F2D *result, params *data); +void create_texture(F2D *image, params *data); +I2D* parse_flags(int argc, char ** argv); +void init_params(params *data); +//void init(F2D *result, F2D *image, params* data); +void init(F2D *image, params* data); +double compare_full_neighb(F2D *image,int x, int y, F2D *image1,int x1, int y1, params* data); +double compare_neighb(F2D *image,int x, int y, F2D *image1,int x1, int y1, params* data); +int create_candidates(int x,int y, params* data); +int create_all_candidates(int x,int y, params* data); + +#endif + + + -- cgit v1.2.2