In OpenCV 2.4.9, the following works:
cv::Mat TestMat(3,3,CV_32F); int RefCount = *TestMat.refcount;
How to do the same in OpenCV 3.0.0b?
int RefCount = TestMat.u ? (*TestMat.u->refcount) : 0;
The control counter is in the UMatData u field. See https://github.com/jet47/opencv/blob/master/modules/core/include/opencv2/core/mat.hpp#L455 for a UMatData .
UMatData u
UMatData
Source: https://habr.com/ru/post/1212126/More articles:Unable to import material library into android studio - android-studioWeb Api [Queryable] attribute not recognized - asp.net-web-apiGoogle Docs / Spreadsheets API Current error - Influx of 500 errors - google-apiC ++ 11 initialization T {p, ...} vs T = {p, ...} - c ++ASP.NET Web API 2 with Multiple Authentication Filters - authenticationPandas read_table uses the first column as an index - pythonSearch for conditional gaussian mixture using scikit-learn.mixture.GMM - pythonPython property inheritance - pythonWhy am I getting a type error in this sequence of parsers (lecture 8 by Eric Meyer)? - typesHow to make top line shorter than bottom line (inside div) - javascriptAll Articles