23#include <opencv2/core/core.hpp>
24#include <opencv2/imgproc/imgproc.hpp>
25#include <opencv2/imgproc/types_c.h>
26#include <opencv2/imgcodecs/imgcodecs.hpp>
27#include <opencv2/calib3d/calib3d.hpp>
46 for (
int i = 0; i < (from->rows * from->cols); i++) {
54 for (
int i = 0; i < (from->rows * from->cols); i++) {
85 std::cout <<
"This function only worked with images of type IMAGE_GRAYSCALE and IAMGE_OPENCV_DISP. Leaving function." <<
156 std::cout <<
"This function only worked with images of type IMAGE_GRAYSCALE and IAMGE_OPENCV_DISP. Leaving function." <<
268 std::cout <<
"This function only worked with images of type IMAGE_GRAYSCALE and IAMGE_OPENCV_DISP. Leaving function." <<
288 std::cout <<
"This function only worked with images of type IMAGE_GRAYSCALE and IAMGE_OPENCV_DISP. Leaving function." <<
316 std::cout <<
"This function only worked with images of type IMAGE_GRAYSCALE and IAMGE_OPENCV_DISP. Leaving function." <<
342 std::cout <<
"This function only worked with images of type IMAGE_GRAYSCALE and IAMGE_OPENCV_DISP. Leaving function." <<
367 std::cout <<
"This function only worked with images of type IMAGE_GRAYSCALE and IAMGE_OPENCV_DISP. Leaving function." <<
412 std::cout <<
"This function only worked with images of type IMAGE_GRAYSCALE and IAMGE_OPENCV_DISP. Leaving function." <<
static const float scale[]
uint16_t h
height of the cropped area
uint16_t w
Width of the cropped area.
void * buf
Image buffer (depending on the image_type)
uint16_t x
Start position x (horizontal)
uint16_t y
Start position y (vertical)
enum image_type type
The image type.
@ IMAGE_GRAYSCALE
Grayscale image with only the Y part (uint8 per pixel)
@ IMAGE_INT16
An image to hold disparity image data from openCV (int16 per pixel)
unsigned short uint16_t
Typedef defining 16 bit unsigned short type.
short int16_t
Typedef defining 16 bit short type.
unsigned char uint8_t
Typedef defining 8 bit unsigned char type.
void post_disparity_crop_rect(struct crop_t *_img_cropped_info, struct img_size_t *_original_img_dims, const int disp_n, const int block_size)
struct crop_t img_cropped_info
struct image_t img_right
Image obtained from left camera (UYVY format)
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 transfer(const Mat *from, const image_t *to)
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)