mirror of
https://github.com/opencv/opencv_contrib.git
synced 2025-10-23 00:49:38 +08:00
Added size_t conversion for class Bridge. Need when compiling extra modules into matlab.
This commit is contained in:
@@ -293,6 +293,10 @@ public:
|
|||||||
int toInt() { return ptr_.scalar<int>(); }
|
int toInt() { return ptr_.scalar<int>(); }
|
||||||
operator int() { return toInt(); }
|
operator int() { return toInt(); }
|
||||||
|
|
||||||
|
// --------------------------- size_t -----------------------------------------
|
||||||
|
Bridge& operator=(const size_t&) { return *this; }
|
||||||
|
size_t toSizeT() { return ptr_.scalar<size_t>(); }
|
||||||
|
operator size_t() { return toSizeT(); }
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user