AdaptiveOpticsControl
linopt_imtools.h
Go to the documentation of this file.
1 
16 #ifndef _LINOPTIMTOOLS_H
17 #define _LINOPTIMTOOLS_H
18 
19 
20 
21 /* =============================================================================================== */
22 /* =============================================================================================== */
26 /* =============================================================================================== */
28 /* =============================================================================================== */
29 
31 
33 
34 
35 
36 
37 /* =============================================================================================== */
38 /* =============================================================================================== */
42 /* =============================================================================================== */
44 /* =============================================================================================== */
45 
46 long linopt_imtools_mask_to_pixtable(const char *IDmask_name, const char *IDpixindex_name, const char *IDpixmult_name);
47 
48 long linopt_imtools_Image_to_vec(const char *ID_name, const char *IDpixindex_name, const char *IDpixmult_name, const char *IDvec_name);
49 
50 long linopt_imtools_vec_to_2DImage(const char *IDvec_name, const char *IDpixindex_name, const char *IDpixmult_name, const char *ID_name, long xsize, long ysize);
51 
53 
54 
55 
56 
57 
58 
59 /* =============================================================================================== */
60 /* =============================================================================================== */
64 /* =============================================================================================== */
66 /* =============================================================================================== */
67 
68 long linopt_imtools_make1Dpolynomials(const char *IDout_name, long NBpts, long MaxOrder, float r0pix);
69 
70 long linopt_imtools_makeCosRadModes(const char *ID_name, long size, long kmax, float radius, float radfactlim);
71 
72 long linopt_imtools_makeCPAmodes(const char *ID_name, long size, float CPAmax, float deltaCPA, float radius, float radfactlim, int writeMfile);
73 
75 
76 
77 
78 
79 
80 
81 /* =============================================================================================== */
82 /* =============================================================================================== */
86 /* =============================================================================================== */
88 /* =============================================================================================== */
89 
90 
91 
92 long linopt_imtools_image_construct(const char *IDmodes_name, const char *IDcoeff_name, const char *ID_name);
93 
94 long linopt_imtools_image_construct_stream(const char *IDmodes_name, const char *IDcoeff_name, const char *IDout_name);
95 
96 long linopt_compute_SVDdecomp(const char *IDin_name, const char *IDout_name, const char *IDcoeff_name);
97 
98 int linopt_compute_SVDpseudoInverse(const char *ID_Rmatrix_name, const char *ID_Cmatrix_name, double SVDeps, long MaxNBmodes, const char *ID_VTmatrix_name);
99 
100 long linopt_compute_1Dfit(const char *fnamein, long NBpt, long MaxOrder, const char *fnameout, int MODE);
101 
102 long linopt_imtools_image_fitModes(const char *ID_name, const char *IDmodes_name, const char *IDmask_name, double SVDeps, const char *IDcoeff_name, int reuse);
103 
104 double linopt_imtools_match_slow(const char *ID_name, const char *IDref_name, const char *IDmask_name, const char *IDsol_name, const char *IDout_name);
105 
106 double linopt_imtools_match(const char *ID_name, const char *IDref_name, const char *IDmask_name, const char *IDsol_name, const char *IDout_name);
107 
108 
110 
111 
112 
113 
114 
115 /* =============================================================================================== */
116 /* =============================================================================================== */
120 /* =============================================================================================== */
122 /* =============================================================================================== */
123 
124 
131 long linopt_compute_linRM_from_inout(const char *IDinput_name, const char *IDinmask_name, const char *IDoutput_name, const char *IDRM_name);
132 
133 
135 
136 
137 
138 
139 
140 
141 #endif
long linopt_imtools_Image_to_vec(const char *ID_name, const char *IDpixindex_name, const char *IDpixmult_name, const char *IDvec_name)
Definition: linopt_imtools.c:498
long linopt_imtools_make1Dpolynomials(const char *IDout_name, long NBpts, long MaxOrder, float r0pix)
Definition: linopt_imtools.c:594
long linopt_imtools_makeCPAmodes(const char *ID_name, long size, float CPAmax, float deltaCPA, float radius, float radfactlim, int writeMfile)
Definition: linopt_imtools.c:666
long linopt_imtools_image_construct_stream(const char *IDmodes_name, const char *IDcoeff_name, const char *IDout_name)
Definition: linopt_imtools.c:1002
long linopt_imtools_image_construct(const char *IDmodes_name, const char *IDcoeff_name, const char *ID_name)
Definition: linopt_imtools.c:951
long linopt_imtools_image_fitModes(const char *ID_name, const char *IDmodes_name, const char *IDmask_name, double SVDeps, const char *IDcoeff_name, int reuse)
Definition: linopt_imtools.c:1687
long linopt_compute_1Dfit(const char *fnamein, long NBpt, long MaxOrder, const char *fnameout, int MODE)
Definition: linopt_imtools.c:1553
double linopt_imtools_match(const char *ID_name, const char *IDref_name, const char *IDmask_name, const char *IDsol_name, const char *IDout_name)
Definition: linopt_imtools.c:2049
int linopt_compute_SVDpseudoInverse(const char *ID_Rmatrix_name, const char *ID_Cmatrix_name, double SVDeps, long MaxNBmodes, const char *ID_VTmatrix_name)
Definition: linopt_imtools.c:1207
long linopt_compute_linRM_from_inout(const char *IDinput_name, const char *IDinmask_name, const char *IDoutput_name, const char *IDRM_name)
Solve for response matrix given a series of input and output.
Definition: linopt_imtools.c:2160
long linopt_imtools_mask_to_pixtable(const char *IDmask_name, const char *IDpixindex_name, const char *IDpixmult_name)
Definition: linopt_imtools.c:453
long linopt_imtools_vec_to_2DImage(const char *IDvec_name, const char *IDpixindex_name, const char *IDpixmult_name, const char *ID_name, long xsize, long ysize)
Definition: linopt_imtools.c:554
double linopt_imtools_match_slow(const char *ID_name, const char *IDref_name, const char *IDmask_name, const char *IDsol_name, const char *IDout_name)
Definition: linopt_imtools.c:1785
long linopt_compute_SVDdecomp(const char *IDin_name, const char *IDout_name, const char *IDcoeff_name)
Definition: linopt_imtools.c:1075
long linopt_imtools_makeCosRadModes(const char *ID_name, long size, long kmax, float radius, float radfactlim)
Definition: linopt_imtools.c:624
int init_linopt_imtools()
Definition: linopt_imtools.c:313
int size
Definition: kdtree.c:87