OSDN Git Service

Create a new command for edge enhancement before edge detection
[eos/hostdependX86LINUX64.git] / include / lll2ltlg.h
1 #ifndef LLL2LTLG_H
2 #define LLL2LTLG_H
3
4 #include <stdio.h>
5 #include <stdlib.h>
6 #include <string.h>
7 #include <math.h>
8 #undef DEBUG
9 #include "genUtil.h"
10 #include "Memory.h"
11 #include "String.h"
12 #include "File.h"
13 #include "llData.h"
14 #include "ltlgData.h"
15
16 /* struct begin */
17 typedef struct lll2ltlgInfo {
18         /* Input File */
19                 long flagIn;
20                 char* In;
21                 FILE* fptIn; 
22
23         /* Output File */
24         char* Out;
25         FILE* fptOut;
26
27         /* Config File */
28                 long flagconfigFile;
29                 char* configFile;
30         FILE* fptconfigFile;
31
32         /* Title for ltlg */
33                 long flagTitle;
34                 char* Title;
35
36         /* The Number of Layer Line */
37         long flagllMax;
38         long llMax;
39
40         /* The inverse of deltaR: unit Angstrom */
41         long flagdelRInv;
42         float delRInv;
43
44         /* The inverse of Rmax:  unix Angstrom */
45         long flagRMaxInv;
46         float RMaxInv;
47
48         /* Delta r : unit Angstrom */
49         long flagdelr;
50         float delr;
51
52         /* rmax : unit Angstrom */
53         long flagrMax;
54         float rMax;
55
56             long mode;
57 } lll2ltlgInfo;
58 /* struct end */
59
60 /* prototype begin */
61 extern void ll2ltlgConfigFileRead(lll2ltlgInfo* linfo, FILE* fpt);
62
63
64 /* Fourier Bessel Transform */
65 extern void lll2ltlg(ltlgData* out, llData* in, lll2ltlgInfo* linfo);
66 extern void emBessel(ltlgData* ltlg, llData* ll);
67 extern ltlgDataParaTypeReal Bessel0(ltlgDataParaTypeReal x0);
68 extern ltlgDataParaTypeReal Bessel1(ltlgDataParaTypeReal x0);
69 /* prototype end */
70
71 #endif /* LLL2LTLG_H */