All OpenCV constants being exported into matlab class and C++ map templates

This commit is contained in:
hbristow
2013-06-26 15:45:05 -07:00
parent 0b9ff11537
commit e51bdbeb2d
4 changed files with 45 additions and 2 deletions

View 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 %}
};