Paparazzi UAS  v7.0_unstable
Paparazzi is a free software Unmanned Aircraft System.
wedgebug_opencv.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) Ralph Rudi schmidt <ralph.r.schmidt@outlook.com>
3 
4  *
5  * This file is part of paparazzi
6  *
7  * paparazzi is free software; you can redistribute it and/or modify
8  * it under the terms of the GNU General Public License as published by
9  * the Free Software Foundation; either version 2, or (at your option)
10  * any later version.
11  *
12  * paparazzi is distributed in the hope that it will be useful,
13  * but WITHOUT ANY WARRANTY; without even the implied warranty of
14  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15  * GNU General Public License for more details.
16  *
17  * You should have received a copy of the GNU General Public License
18  * along with paparazzi; see the file COPYING. If not, see
19  * <http://www.gnu.org/licenses/>.
20 
21  */
27 #ifndef WEDGEBUG_OPENCV_H
28 #define WEDGEBUG_OPENCV_H
29 
30 
31 
32 
33 
34 //
35 #ifdef __cplusplus
36 extern "C" {
37 #endif
38 
39 
40 
41 // Custom C headers to include
42 #include "modules/computer_vision/lib/vision/image.h" // Needed for imae_t struct type
43 #include "modules/wedgebug/wedgebug.h" // needed for calculating crop dimensions
44 
45 
46 // Global functions:
47 
48 extern int save_image_gray(struct image_t *img, char *myString);
49 int save_image_color(struct image_t *img, char *myString);
50 int save_image_HM(struct image_t *img, char *myString, int const heatmap);
51 extern int SBM_OCV(struct image_t *img_disp, const struct image_t *img_left, const struct image_t *img_right,
52  const int ndisparities, const int SADWindowSize, const bool cropped);
53 extern int opening_OCV(struct image_t *img_input, const struct image_t *img_output, const int SE_size,
54  const int iteration);
55 extern int closing_OCV(struct image_t *img_input, const struct image_t *img_output, const int SE_size,
56  const int iteration);
57 extern int dilation_OCV(struct image_t *img_input, const struct image_t *img_output, const int SE_size,
58  const int iteration);
59 extern int erosion_OCV(struct image_t *img_input, const struct image_t *img_output, const int SE_size,
60  const int iteration);
61 int sobel_OCV(struct image_t *img_input, const struct image_t *img_output, const int kernel_size, const int thr);
62 
63 
64 
65 
66 #ifdef __cplusplus
67 }
68 #endif
69 
70 #endif // WEDGEBUG_OPENCV_H
Image helper functions like resizing, color filter, converters...
Definition: image.h:44
struct image_t img_left
Definition: wedgebug.c:74
struct image_t img_right
Image obtained from left camera (UYVY format)
Definition: wedgebug.c:75
int SBM_OCV(struct image_t *img_disp, const struct image_t *img_left, const struct image_t *img_right, const int ndisparities, const int SADWindowSize, const bool cropped)
int closing_OCV(struct image_t *img_input, const struct image_t *img_output, const int SE_size, const int iteration)
int sobel_OCV(struct image_t *img_input, const struct image_t *img_output, const int kernel_size, const int thr)
int save_image_gray(struct image_t *img, char *myString)
int dilation_OCV(struct image_t *img_input, const struct image_t *img_output, const int SE_size, const int iteration)
int save_image_color(struct image_t *img, char *myString)
int erosion_OCV(struct image_t *img_input, const struct image_t *img_output, const int SE_size, const int iteration)
int opening_OCV(struct image_t *img_input, const struct image_t *img_output, const int SE_size, const int iteration)
int save_image_HM(struct image_t *img, char *myString, int const heatmap)