milk  1.01
Modular Image processing Library toolKit
linopt_imtools.h
Go to the documentation of this file.
1 
11 #ifndef _LINOPTIMTOOLS_H
12 #define _LINOPTIMTOOLS_H
13 
14 
15 
16 /* =============================================================================================== */
17 /* =============================================================================================== */
21 /* =============================================================================================== */
23 /* =============================================================================================== */
24 
25 void __attribute__((constructor)) libinit_linopt_imtools();
26 
28 
29 
30 
31 
32 /* =============================================================================================== */
33 /* =============================================================================================== */
37 /* =============================================================================================== */
39 /* =============================================================================================== */
40 
41 long linopt_imtools_mask_to_pixtable(const char *IDmask_name,
42  const char *IDpixindex_name, const char *IDpixmult_name);
43 
44 
45 imageID linopt_imtools_Image_to_vec(
46  const char *ID_name,
47  const char *IDpixindex_name,
48  const char *IDpixmult_name,
49  const char *IDvec_name
50 );
51 
52 imageID linopt_imtools_vec_to_2DImage(
53  const char *IDvec_name,
54  const char *IDpixindex_name,
55  const char *IDpixmult_name,
56  const char *ID_name,
57  long xsize,
58  long ysize
59 );
61 
62 
63 
64 
65 
66 
67 /* =============================================================================================== */
68 /* =============================================================================================== */
72 /* =============================================================================================== */
74 /* =============================================================================================== */
75 
76 imageID linopt_imtools_make1Dpolynomials(
77  const char *IDout_name,
78  long NBpts,
79  long MaxOrder,
80  float r0pix
81 );
82 
83 
84 imageID linopt_imtools_makeCosRadModes(
85  const char *ID_name,
86  long size,
87  long kmax,
88  float radius,
89  float radfactlim
90 );
91 
92 
93 long linopt_imtools_makeCPAmodes(
94  const char *ID_name,
95  long size,
96  float CPAmax,
97  float deltaCPA,
98  float radius,
99  float radfactlim,
100  int writeMfile
101 );
102 
104 
105 
106 
107 
108 
109 
110 /* =============================================================================================== */
111 /* =============================================================================================== */
115 /* =============================================================================================== */
117 /* =============================================================================================== */
118 
119 
120 
121 imageID linopt_imtools_image_construct(
122  const char *IDmodes_name,
123  const char *IDcoeff_name,
124  const char *ID_name
125 );
126 
127 
128 imageID linopt_imtools_image_construct_stream(
129  const char *IDmodes_name,
130  const char *IDcoeff_name,
131  const char *IDout_name
132 );
133 
134 
135 long linopt_compute_SVDdecomp(const char *IDin_name, const char *IDout_name,
136  const char *IDcoeff_name);
137 
138 
139 imageID linopt_compute_SVDpseudoInverse(
140  const char *ID_Rmatrix_name,
141  const char *ID_Cmatrix_name,
142  double SVDeps,
143  long MaxNBmodes,
144  const char *ID_VTmatrix_name
145 );
146 
147 
148 imageID linopt_compute_1Dfit(
149  const char *fnamein,
150  long NBpt,
151  long MaxOrder,
152  const char *fnameout,
153  int MODE
154 );
155 
156 
157 imageID linopt_imtools_image_fitModes(
158  const char *ID_name,
159  const char *IDmodes_name,
160  const char *IDmask_name,
161  double SVDeps,
162  const char *IDcoeff_name,
163  int reuse
164 );
165 
166 
167 
168 double linopt_imtools_match_slow(
169  const char *ID_name,
170  const char *IDref_name,
171  const char *IDmask_name,
172  const char *IDsol_name,
173  const char *IDout_name
174 );
175 
176 
177 double linopt_imtools_match(
178  const char *ID_name,
179  const char *IDref_name,
180  const char *IDmask_name,
181  const char *IDsol_name,
182  const char *IDout_name
183 );
184 
186 
187 
188 
189 
190 
191 /* =============================================================================================== */
192 /* =============================================================================================== */
196 /* =============================================================================================== */
198 /* =============================================================================================== */
199 
200 
207 long linopt_compute_linRM_from_inout(const char *IDinput_name,
208  const char *IDinmask_name, const char *IDoutput_name, const char *IDRM_name);
209 
210 
212 
213 
214 
215 
216 
217 
218 #endif
linopt_compute_SVDdecomp
long linopt_compute_SVDdecomp(const char *IDin_name, const char *IDout_name, const char *IDcoeff_name)
Definition: linopt_imtools.c:1493
__attribute__
errno_t __attribute__((hot))
Logs a shared memory stream onto disk.
Definition: logshmim.c:685
linopt_compute_linRM_from_inout
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:2797