Lib
piv API documentation
Main Page
|
Files
|
Data Structures
|
Functions
|
Global Variables
|
Main Page
Data Structures
Files
File List
Globals
gpiv-valid.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
libgpiv - library for Particle Image Velocimetry
5
6
Copyright (C) 2002, 2003, 2004, 2005, 2006, 2007, 2008 Gerber van der Graaf
7
8
This file is part of libgpiv.
9
10
Libgpiv is free software; you can redistribute it and/or modify
11
it under the terms of the GNU General Public License as published by
12
the Free Software Foundation; either version 2, or (at your option)
13
any later version.
14
15
This program is distributed in the hope that it will be useful,
16
but WITHOUT ANY WARRANTY; without even the implied warranty of
17
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18
GNU General Public License for more details.
19
20
You should have received a copy of the GNU General Public License
21
along with this program; if not, write to the Free Software Foundation,
22
Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
23
24
25
26
27
-----------------------------------------------------------------------
28
LIBRARY: libgpiv
29
EXTERNAL FUNCTIONS:
30
SOURCE: valid_par.c
31
gpiv_valid_parameters_set
32
gpiv_valid_default_parameters
33
gpiv_valid_read_parameters
34
gpiv_valid_check_parameters_read
35
gpiv_valid_test_parameter
36
gpiv_valid_fprint_parameters
37
38
SOURCE: valid.c
39
gpiv_valid_residu
40
gpiv_valid_residu_stats
41
gpiv_valid_peaklck
42
gpiv_valid_errvec
43
gpiv_valid_gradient
44
gpiv_cumhisto_eqdatbin_gnuplot
45
gpiv_valid_threshold
46
47
------------------------------------------------------------------- */
48
59
#ifndef __LIBGPIV_VALID_H__
60
#define __LIBGPIV_VALID_H__
61
62
63
#include <
gpiv/gpiv-valid_par.h
>
64
65
#define GPIV_GRADIENT_THRESHOLD 2.0
66
#define GPIV_THRESHOLD_DEFAULT 1.2
67
#define GPIV_VALID_MAX_SWEEP 9
68
#define GPIV_RESIDU_MAX_NORMMEDIAN 2.0
73
typedef struct __GpivLinRegData GpivLinRegData;
74
78
struct
__GpivLinRegData
{
79
double
c0
;
80
double
c1
;
81
double
cov00
;
82
double
cov01
;
83
double
cov11
;
84
double
sumsq
;
85
};
86
87
88
98
gchar *
99
gpiv_valid_residu
(
GpivPivData
*piv_data,
100
const
GpivValidPar
*valid_par,
101
const
gboolean incl_point
102
);
103
104
105
116
GpivBinData
*
117
gpiv_valid_residu_stats
(
const
GpivPivData
*piv_data,
118
const
guint nbins,
119
GpivLinRegData
*linreg
120
);
121
122
123
132
GpivBinData
*
133
gpiv_valid_peaklck
(
const
GpivPivData
*piv_data,
134
const
guint nbins
135
);
136
137
149
gchar *
150
gpiv_valid_errvec
(
GpivPivData
*piv_data,
151
const
GpivImage
*image,
152
const
GpivPivPar
*piv_par,
153
const
GpivValidPar
*valid_par,
154
const
gboolean interrogate_valid
155
);
156
157
168
void
169
gpiv_valid_gradient
(
const
GpivPivPar
*piv_par,
170
GpivPivData
*piv_data
171
);
172
173
185
void
186
gpiv_cumhisto_eqdatbin_gnuplot
(
const
gchar *fname_out,
187
const
gchar *title,
188
const
gchar *GNUPLOT_DISPLAY_COLOR,
189
const
gint GNUPLOT_DISPLAY_SIZE,
190
const
GpivLinRegData
*linreg
191
);
192
193
203
gfloat
204
gpiv_valid_threshold
(
const
GpivPivPar
*piv_par,
205
const
GpivValidPar
*valid_par,
206
const
GpivLinRegData
*linreg
207
);
208
209
210
211
212
213
#endif
/* __LIBGPIV_VALID_H__ */
214
Generated on Thu Mar 20 2014 09:01:34 for libgpiv-0.6.1 by
1.8.1.2