~ubuntu-branches/ubuntu/lucid/pdl/lucid

« back to all changes in this revision

Viewing changes to Lib/Image2D/resample.h

  • Committer: Bazaar Package Importer
  • Author(s): Ben Gertzfield
  • Date: 2002-04-08 18:47:16 UTC
  • Revision ID: james.westby@ubuntu.com-20020408184716-0hf64dc96kin3htp
Tags: upstream-2.3.2
ImportĀ upstreamĀ versionĀ 2.3.2

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
 * resample.h - based on code from version 3.6-0 of the Eclipse library (ESO)
 
3
 *   by Nicolas Devillard
 
4
 *
 
5
 * see http://www.eso.org/eclipse for further details
 
6
 */
 
7
 
 
8
#ifndef _PDL_RESAMPLE_H_
 
9
#define _PDL_RESAMPLE_H_
 
10
 
 
11
#include <math.h>
 
12
 
 
13
#ifndef NULL
 
14
#define NULL (0L)
 
15
#endif
 
16
 
 
17
/* Number of tabulations in kernel  */
 
18
#define TABSPERPIX      (1000)
 
19
#define KERNEL_WIDTH    (2.0)
 
20
#define KERNEL_SAMPLES  (1+(int)(TABSPERPIX * KERNEL_WIDTH))
 
21
 
 
22
#define TANH_STEEPNESS  (5.0)
 
23
 
 
24
#ifndef PI_NUMB
 
25
#define PI_NUMB     (3.1415926535897932384626433832795)
 
26
#endif
 
27
 
 
28
#ifndef M_PI
 
29
#define M_PI PI_NUMB
 
30
#endif
 
31
 
 
32
/* declare functions */
 
33
 
 
34
double
 
35
poly2d_compute( int ncoeff, double *c, double u, double *vpow );
 
36
 
 
37
double   *
 
38
generate_interpolation_kernel(char * kernel_type);
 
39
 
 
40
#endif