Darknet/YOLO v3.0-177-gfa2353b
Object Detection Framework
 
Loading...
Searching...
No Matches
image_opencv.hpp File Reference
Include dependency graph for image_opencv.hpp:
This graph shows which files directly or indirectly include this file:

Functions

void blend_images_cv (Darknet::Image new_img, float alpha, Darknet::Image old_img, float beta)
 
void draw_detections_cv_v3 (cv::Mat show_img, Darknet::Detection *dets, int num, float thresh, char **names, int classes, int ext_output)
 
Darknet::Image image_data_augmentation (cv::Mat mat, int w, int h, int pleft, int ptop, int swidth, int sheight, int flip, float dhue, float dsat, float dexp, int gaussian_noise, int blur, int num_boxes, int truth_size, float *truth)
 
cv::Mat load_rgb_mat_image (const char *const filename, int flag)
 Load the given image using OpenCV.
 
void show_anchors (int number_of_boxes, int num_of_clusters, float *rel_width_height_array, model anchors_data, int width, int height)
 
void show_image_cv (Darknet::Image p, const char *name)
 

Function Documentation

◆ blend_images_cv()

void blend_images_cv ( Darknet::Image  new_img,
float  alpha,
Darknet::Image  old_img,
float  beta 
)
Here is the caller graph for this function:

◆ draw_detections_cv_v3()

void draw_detections_cv_v3 ( cv::Mat  show_img,
Darknet::Detection dets,
int  num,
float  thresh,
char **  names,
int  classes,
int  ext_output 
)
Here is the call graph for this function:

◆ image_data_augmentation()

Darknet::Image image_data_augmentation ( cv::Mat  mat,
int  w,
int  h,
int  pleft,
int  ptop,
int  swidth,
int  sheight,
int  flip,
float  dhue,
float  dsat,
float  dexp,
int  gaussian_noise,
int  blur,
int  num_boxes,
int  truth_size,
float *  truth 
)
Todo:
COLOR - cannot do hue in hyperspectal land
Here is the call graph for this function:
Here is the caller graph for this function:

◆ load_rgb_mat_image()

cv::Mat load_rgb_mat_image ( const char *const  filename,
int  flag 
)

Load the given image using OpenCV.

Automatically converts the image from the usual OpenCV BGR format to RGB for use in Darknet.

See also
Darknet::load_image()
Here is the call graph for this function:
Here is the caller graph for this function:

◆ show_anchors()

void show_anchors ( int  number_of_boxes,
int  num_of_clusters,
float *  rel_width_height_array,
model  anchors_data,
int  width,
int  height 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ show_image_cv()

void show_image_cv ( Darknet::Image  p,
const char *  name 
)
Here is the call graph for this function:
Here is the caller graph for this function: