mirror of
https://github.com/opencv/opencv.git
synced 2024-11-24 19:20:28 +08:00
Merge pull request #13710 from ramezrafla:3.4
* Added DMatch bindings * Added CR which was accidently removed to maintain consistency * Removed trailing white-space
This commit is contained in:
parent
268d73165e
commit
eb00dce78e
@ -328,6 +328,9 @@ EMSCRIPTEN_BINDINGS(binding_utils)
|
||||
register_vector<cv::Mat>("MatVector");
|
||||
register_vector<cv::Rect>("RectVector");
|
||||
register_vector<cv::KeyPoint>("KeyPointVector");
|
||||
register_vector<cv::DMatch>("DMatchVector");
|
||||
register_vector<std::vector<cv::DMatch>>("DMatchVectorVector");
|
||||
|
||||
|
||||
emscripten::class_<cv::Mat>("Mat")
|
||||
.constructor<>()
|
||||
@ -481,6 +484,12 @@ EMSCRIPTEN_BINDINGS(binding_utils)
|
||||
.field("response", &cv::KeyPoint::response)
|
||||
.field("size", &cv::KeyPoint::size);
|
||||
|
||||
emscripten::value_object<cv::DMatch>("DMatch")
|
||||
.field("queryIdx", &cv::DMatch::queryIdx)
|
||||
.field("trainIdx", &cv::DMatch::trainIdx)
|
||||
.field("imgIdx", &cv::DMatch::imgIdx)
|
||||
.field("distance", &cv::DMatch::distance);
|
||||
|
||||
emscripten::value_array<cv::Scalar_<double>> ("Scalar")
|
||||
.element(index<0>())
|
||||
.element(index<1>())
|
||||
|
Loading…
Reference in New Issue
Block a user