texlib.h

来自「weilevoy算法实现纹理合成,分带与不带加速两个版本」· C头文件 代码 · 共 35 行

H
35
字号
/*************************************************************************** * texlib.h * written by: Stephanie Wojtkowski * * Description: A library containing functions that perform the Wei-Levoy  * texture synthesis method. * ------------------------------------------------------------------------- * GenerateTexture(input, r, c, output, h, w) * Inputs:    input - original texture image *            r - number of rows in input *            c - number of columns in input *            output - resulting texture image after Wei-Levoy *            h - number of rows in output *            w - number of columns in output * * Description: Given an image and the dimensions of the result, generates * a texture patch similar to the original of the given dimensions. ***************************************************************************/#define TEXLIB_H#ifdef TEXLIB_H#include <math.h>#include <stdlib.h>#include <stdio.h>#include "ppmIO.h"#include "tsvqlib.h"//#define DEBUGvoid GenerateTexture(Pixel *input, int r, int c, Pixel *output, 		     int h, int w);#endif

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?