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:
@@ -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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user