1
0
Fork 0
mirror of https://github.com/ruby-opencv/ruby-opencv synced 2023-03-27 23:22:12 -04:00

added CvMat.find_homography

This commit is contained in:
ser1zw 2011-01-21 03:20:10 +09:00
parent ed69d8cea8
commit 440d27cdcb
5 changed files with 121 additions and 1 deletions

View file

@ -204,7 +204,14 @@ define_ruby_module()
rb_define_const(rb_module, "WARP_FLAG", warp_flag);
RESIST_CVMETHOD(warp_flag, "fill_outliers", CV_WARP_FILL_OUTLIERS);
RESIST_CVMETHOD(warp_flag, "inverse_map", CV_WARP_INVERSE_MAP);
VALUE homography_calc_method = rb_hash_new();
/* {:all, :ransac, :lmeds}: Methods used to computed homography matrix */
rb_define_const(rb_module, "HOMOGRAPHY_CALC_METHOD", homography_calc_method);
RESIST_CVMETHOD(homography_calc_method, "all", 0);
RESIST_CVMETHOD(homography_calc_method, "ransac", CV_RANSAC);
RESIST_CVMETHOD(homography_calc_method, "lmeds", CV_LMEDS);
VALUE depth = rb_hash_new();
/* {:cv8u, :cv8s, :cv16u, :cv16s, :cv32s, :cv32f, :cv64f}: Depth of each pixel. */
rb_define_const(rb_module, "DEPTH", depth);