Paparazzi UAS  v5.18.0_stable
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
img_right
struct image_t img_right
Image obtained from left camera (UYVY format)
Definition: wedgebug.c:75
save_image_HM
int save_image_HM(struct image_t *img, char *myString, int const heatmap)
Definition: wedgebug_opencv.cpp:116
erosion_OCV
int erosion_OCV(struct image_t *img_input, const struct image_t *img_output, const int SE_size, const int iteration)
Definition: wedgebug_opencv.cpp:355
save_image_color
int save_image_color(struct image_t *img, char *myString)
Definition: wedgebug_opencv.cpp:94
wedgebug.h
SBM_OCV
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)
Definition: wedgebug_opencv.cpp:168
image.h
save_image_gray
int save_image_gray(struct image_t *img, char *myString)
Definition: wedgebug_opencv.cpp:69
closing_OCV
int closing_OCV(struct image_t *img_input, const struct image_t *img_output, const int SE_size, const int iteration)
Definition: wedgebug_opencv.cpp:304
img_left
struct image_t img_left
Definition: wedgebug.c:74
sobel_OCV
int sobel_OCV(struct image_t *img_input, const struct image_t *img_output, const int kernel_size, const int thr)
Definition: wedgebug_opencv.cpp:380
dilation_OCV
int dilation_OCV(struct image_t *img_input, const struct image_t *img_output, const int SE_size, const int iteration)
Definition: wedgebug_opencv.cpp:330
opening_OCV
int opening_OCV(struct image_t *img_input, const struct image_t *img_output, const int SE_size, const int iteration)
Definition: wedgebug_opencv.cpp:277
image_t
Definition: image.h:44