File: warp.h

package info (click to toggle)
xmorph 1%3A20060817
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k
  • size: 5,688 kB
  • ctags: 2,022
  • sloc: ansic: 19,988; sh: 9,418; cpp: 1,230; makefile: 560; sed: 16
file content (30 lines) | stat: -rw-r--r-- 653 bytes parent folder | download | duplicates (9)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
/* warp.h : Digital Image Warping algorithms header
//
// Written and Copyright (C) 1994-1999 by Michael J. Gourlay
//
// Provided as is.  No warrantees, express or implied.
*/

#ifndef _WARP__INCLUDED_
#define _WARP__INCLUDED_
#include "braindead_msvc.h"

/* this is the C type of a pixel */
#define PIXEL_TYPE unsigned char
#define PIXEL_MIN 0
#define PIXEL_MAX 255


/* choose  warp engine   */
#define warp_image warp_image_inv_new



void warp_image_inv_old
(const PIXEL_TYPE *in, PIXEL_TYPE *out,
 int img_width, int img_height,
 const double *xs, const double *ys, const double *xd, const double *yd, 
 int mesh_width, int mesh_height);


#endif