1
0
mirror of https://github.com/opencv/opencv.git synced 2026-07-29 15:23:05 +04:00

JS: Support enum properties

This commit is contained in:
Hamdi Sahloul
2018-09-23 23:36:42 +09:00
parent 475c775b25
commit 0739d1c2eb
3 changed files with 11 additions and 1 deletions
+6
View File
@@ -78,6 +78,12 @@ using namespace dnn;
namespace binding_utils
{
template<typename classT, typename enumT>
static inline typename std::underlying_type<enumT>::type classT::* underlying_ptr(enumT classT::* enum_ptr)
{
return reinterpret_cast<typename std::underlying_type<enumT>::type classT::*>(enum_ptr);
}
template<typename T>
emscripten::val matData(const cv::Mat& mat)
{