Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014 #if !defined(_PLANAR_H)
00015 #define _PLANAR_H
00016
00017 #include <cv.h>
00018
00019 const float pi = 3.1415926;
00020
00021
00022
00023 CvRect calc_mapped_rectangle(CvRect roi, CvMat* mat);
00024
00025
00026 CvSize gen_random_homog_transform(CvRect roi, CvMat* mat);
00027
00028
00029
00030
00031
00032
00033 void gen_random_homog_patches(IplImage* src, int count, IplImage** dst);
00034 void test_homog_transform(IplImage* src);
00035
00036 void save_image_array(const char* folder, const char* filename, int count, IplImage** images);
00037
00038 namespace cv{
00039 void findPlanarObjectPose(const Mat& object_points, const Mat& image_points, const Point3f& normal,
00040 const Mat& intrinsic_matrix, const Mat& distortion_coeffs, std::vector<Point3f>& object_points_crf);
00041 }
00042
00043
00044 #endif //_PLANAR_H