Main Page | Files | Data Structures | Functions | Global Variables |
gpiv-piv.h
Go to the documentation of this file.
1 /* -*- Mode: C; indent-tabs-mode: nil; c-basic-offset: 4 c-style: "K&R" -*- */
2 
3 /*-----------------------------------------------------------------------------
4 
5  libgpiv - library for Particle Image Velocimetry
6 
7  Copyright (C) 2002, 2003, 2004, 2005, 2006, 2007, 2008 Gerber van der Graaf
8 
9  This file is part of libgpiv.
10 
11  Libgpiv is free software; you can redistribute it and/or modify
12  it under the terms of the GNU General Public License as published by
13  the Free Software Foundation; either version 2, or (at your option)
14  any later version.
15 
16  This program is distributed in the hope that it will be useful,
17  but WITHOUT ANY WARRANTY; without even the implied warranty of
18  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19  GNU General Public License for more details.
20 
21  You should have received a copy of the GNU General Public License
22  along with this program; if not, write to the Free Software Foundation,
23  Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
24 
25 -------------------------------------------------------------------------------
26 LIBRARY: libgpiv
27 
28 SOURCE: piv.c
29 
30 EXTERNAL FUNCTIONS:
31  gpiv_piv_count_pivdata_fromimage
32  gpiv_piv_select_int_point
33  gpiv_piv_interrogate_img
34  gpiv_piv_interrogate_ia
35  gpiv_piv_isizadapt
36  gpiv_piv_write_deformed_image
37  gpiv_piv_weight_kernel_lin
38  gpiv_fread_fftw_wisdom
39  gpiv_fwrite_fftw_wisdom
40 
41 
42 ------------------------------------------------------------------------------*/
43 
55 #ifndef __LIBGPIV_PIV_H__
56 #define __LIBGPIV_PIVL_H__
57 
58 
59 #include <gpiv/gpiv-piv_par.h>
60 #include <gpiv/gpiv-valid_par.h>
61 
62 
63 
64 #define GPIV_ZEROPAD_FACT 2
65 #define GPIV_DIFF_ISI 0
68 #define GPIV_CUM_RESIDU_MIN 0.25
69 #define GPIV_MAX_PIV_SWEEP 10
71 #define GPIV_SNR_DISABLE 88.0
72 #define GPIV_DEFORMED_IMG_NAME "gpiv_defimg"
73 #define GPIV_LOGFILE "gpiv.log"
76 #define CMPR_FACT 2
78 #define GPIV_SHIFT_FACTOR 3
86 enum GpivIFit {
87  GPIV_NONE = 0,
88  GPIV_GAUSS = 1,
89  GPIV_POWER = 2,
91 };
92 
93 
94 
98 enum GpivIntGeo {
99  GPIV_AOI = 0,
103 };
104 
105 
106 
107 typedef struct __GpivCovariance GpivCov;
115  float **z;
116  float min;
117  float max;
119  long top_x;
120  long top_y;
121  float subtop_x;
122  float subtop_y;
123  float snr;
126  int z_rnl;
127  int z_rnh;
128  int z_rpl;
129  int z_rph;
131  int z_cnl;
132  int z_cnh;
133  int z_cpl;
134  int z_cph;
136  int z_rl;
137  int z_rh;
138  int z_cl;
139  int z_ch;
140 };
141 
142 
143 
144 /*-----------------------------------------------------------------------------
145  * Function prototypes
146  */
147 
148 
149 
160 gchar *
162  const GpivPivPar *piv_par,
163  guint *nx,
164  guint *ny
165  );
166 
167 
178 GpivPivData *
179 gpiv_piv_interrogate_img (const GpivImage *image,
180  const GpivPivPar *piv_par,
181  const GpivValidPar *valid_par,
182  const gboolean verbose
183  );
184 
185 
202 gchar *
203 gpiv_piv_interrogate_ia (const guint index_y,
204  const guint index_x,
205  const GpivImage *image,
206  const GpivPivPar *piv_par,
207  const guint sweep,
208  const guint last_sweep,
209  gfloat **int_area_1,
210  gfloat **int_area_2,
211  GpivCov *cov,
212  GpivPivData *piv_data
213  );
214 
215 
216 
229 void
230 gpiv_piv_isizadapt (const GpivPivPar *piv_par_src,
231  GpivPivPar *piv_par_dest,
232  gboolean *isiz_last
233  );
234 
235 
236 
244 gchar *
246  );
247 
248 
249 
250 
257 void
258 gpiv_fread_fftw_wisdom (const gint dir
259  );
260 
261 
262 
270 void
271 gpiv_fwrite_fftw_wisdom (const gint dir
272  );
273 
274 
284 gchar *
285 gpiv_piv_dxdy_at_new_grid (const GpivPivData *piv_data_src,
286  GpivPivData *piv_data_dest
287  );
288 
289 
290 
301 gchar *
303  );
304 
305 
306 
316 GpivPivData *
317 gpiv_piv_gridgen (const guint nx,
318  const guint ny,
319  const GpivImagePar *image_par,
320  const GpivPivPar *piv_par
321  );
322 
323 
324 
341 GpivPivData *
342 gpiv_piv_gridadapt (const GpivImagePar *image_par,
343  const GpivPivPar *piv_par_src,
344  GpivPivPar *piv_par_dest,
345  const GpivPivData *piv_data,
346  const guint sweep,
347  gboolean *grid_last
348  );
349 
350 
351 #endif /* __LIBGPIV_PIV_H__ */

Generated on Thu Mar 20 2014 09:01:34 for libgpiv-0.6.1 by doxygen 1.8.1.2