Macros | |
#define | CV_AA cv::LINE_AA |
#define | CV_FILLED cv::FILLED |
#define | CV_RGB(r, g, b) cvScalar( (b), (g), (r) ) |
Functions | |
void | blend_images_cv (Darknet::Image new_img, float alpha, Darknet::Image old_img, float beta) |
void | draw_detections_cv_v3 (cv::Mat mat, Darknet::Detection *dets, int num, float thresh, char **names, int classes, int ext_output) |
static float | get_pixel (Darknet::Image m, int x, int y, int c) |
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 channels) |
Load the given image using OpenCV. | |
void | save_mat_jpg (cv::Mat mat, const char *name) |
void | save_mat_png (cv::Mat mat, const char *name) |
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) |
#define CV_AA cv::LINE_AA |
#define CV_FILLED cv::FILLED |
#define CV_RGB | ( | r, | |
g, | |||
b | |||
) | cvScalar( (b), (g), (r) ) |
void blend_images_cv | ( | Darknet::Image | new_img, |
float | alpha, | ||
Darknet::Image | old_img, | ||
float | beta | ||
) |
void draw_detections_cv_v3 | ( | cv::Mat | mat, |
Darknet::Detection * | dets, | ||
int | num, | ||
float | thresh, | ||
char ** | names, | ||
int | classes, | ||
int | ext_output | ||
) |
|
static |
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.
Automatically converts the image from the usual OpenCV BGR format to RGB for use in Darknet.
void save_mat_jpg | ( | cv::Mat | mat, |
const char * | name | ||
) |
void save_mat_png | ( | cv::Mat | mat, |
const char * | name | ||
) |
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 | ||
) |