21 #ifndef AFFINE_IMAGE_GENERATOR_H
22 #define AFFINE_IMAGE_GENERATOR_H
34 static const int max_point_number = 5000;
40 int _u_corner1 = -1,
int _v_corner1 = -1,
int _u_corner2 = -1,
int _v_corner2 = -1,
41 int _u_corner3 = -1,
int _v_corner3 = -1,
int _u_corner4 = -1,
int _v_corner4 = -1,
42 int affine_image_width = -1,
int affine_image_height = -1);
49 void add_keypoint(
float u,
float v,
int scale,
int class_index);
88 void set_roi(
int _u_corner1,
int _v_corner1,
89 int _u_corner2,
int _v_corner2,
90 int _u_corner3,
int _v_corner3,
91 int _u_corner4,
int _v_corner4);
101 static void affine_transformation(
float a[6],
int width,
int height,
float u,
float v,
float & nu,
float & nv);
145 #endif // AFFINE_IMAGE_GENERATOR_H