Bsoft  1.9
Bernard's software package
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
kernel.h
Go to the documentation of this file.
1 
9 #include "Vector3.h"
10 #include "Complex.h"
11 #include "Bimage.h"
12 
13 #ifndef _RSI_Kernel_
14 class RSI_Kernel {
15 private:
16  int width; // Width of kernel
17  int power;
18  int ndiv; // Number of divisions in sampling
19  int size; // Total number of elements in kernel
20  int half_width;
21  float *data; // Kernel values
22 public:
23  RSI_Kernel() { width=power=ndiv=size=half_width = 0; data=NULL; }
24  RSI_Kernel(int width, int power);
25  ~RSI_Kernel() { delete[] data; }
26  Complex<double> interpolate(Bimage* p, unsigned long img_num, Vector3<float> m);
27 } ;
28 #define _RSI_Kernel_
29 #endif
30 
31 
Header file for image class.
RSI_Kernel()
Definition: kernel.h:23
Class for complex numbers.
General image parameter class.
Definition: Bimage.h:132
Complex< double > interpolate(Bimage *p, unsigned long img_num, Vector3< float > m)
Calculates the complex value at an image location by kernel-based interpolation.
Definition: kernel.cpp:96
Class for 3-value vectors.
~RSI_Kernel()
Definition: kernel.h:25