Debian Codegraph @

raster3d/r3.in.lidar/filters.h

raw symbols SCIP
1 /*
2 * lidar-related filtering functions
3 *
4 * Authors:
5 * Markus Metz (r.in.lidar)
6 * Vaclav Petras (refactoring and various additions)
7 *
8 * Copyright 2011-2016 by Markus Metz, and the GRASS Development Team
9 *
10 * This program is free software licensed under the GPL (>=v2).
11 * Read the COPYING file that comes with GRASS for details.
12 *
13 */
14
15 #ifndef __FILTERS_H__
16 #define __FILTERS_H__
17
18 #define LAS_ALL 0
19 #define LAS_FIRST 1
20 #define LAS_MID 2
21 #define LAS_LAST 3
22
23 struct ReturnFilter {
24 int filter;
25 };
26
27 struct ClassFilter {
28
29 /** NULL terminated list of class numbers represented as string */
30 char **str_classes;
31 };
32
33 struct Option;
34
35 int range_filter_from_option(struct Option *option, double *min, double *max);
36
37 int return_filter_create_from_string(struct ReturnFilter *return_filter,
38 const char *name);
39 int return_filter_is_out(struct ReturnFilter *return_filter, int return_n,
40 int n_returns);
41 int class_filter_create_from_strings(struct ClassFilter *class_filter,
42 char **classes);
43 int class_filter_is_out(struct ClassFilter *class_filter, int class_n);
44
45 #endif /* __FILTERS_H__ */