mexopencv  0.1
mex interface for opencv library
Public Member Functions | List of all members
ConstMap< T, U > Class Template Reference

std::map wrapper with one-line initialization and lookup method. More...

#include <MxArray.hpp>

Public Member Functions

 ConstMap (const T &key, const U &val)
 Constructor with a single key-value pair.
 
ConstMap< T, U > & operator() (const T &key, const U &val)
 Consecutive insertion operator.
 
 operator std::map< T, U > () const
 Implicit converter to std::map.
 
const U & operator[] (const T &key) const
 Lookup operator; fail if not found.
 

Detailed Description

template<typename T, typename U>
class ConstMap< T, U >

std::map wrapper with one-line initialization and lookup method.

Initialization:

("Replicate", cv::BORDER_REPLICATE)
("Constant", cv::BORDER_CONSTANT)
("Reflect", cv::BORDER_REFLECT);

Lookup:

BorderType["Constant"] // => cv::BORDER_CONSTANT

Definition at line 927 of file MxArray.hpp.


The documentation for this class was generated from the following file: