All OpenCV constants being exported into matlab class and C++ map templates
This commit is contained in:
11
modules/matlab/generator/templates/template_map_base.cpp
Normal file
11
modules/matlab/generator/templates/template_map_base.cpp
Normal file
@@ -0,0 +1,11 @@
|
||||
#include <unordered_map>
|
||||
#include <string>
|
||||
#include <bridge>
|
||||
|
||||
typedef std::unordered_map Map;
|
||||
|
||||
Map<std::string, int> constants = {
|
||||
{% for key, val in constants.items() %}
|
||||
{ "{{key}}", {{val}} },
|
||||
{% endfor %}
|
||||
};
|
Reference in New Issue
Block a user