在opencv函数的源码中很多都会出现CV_INSTRUMENT_REGION这个宏,查了一下资料,是opencv用来监控函数执行情况的。
Instrumentation framework for OpenCV performance test system. It was
developed to:
track implementations execution inside OpenCV functions with call tree
output to test logs
track implementations execution time weight in the
pipeline
Framework can be enabled with ENABLE_INSTRUMENTATION define
in CMake and disabled by default. In disabled state it doesn’t consume
resources.
是opencv性能检测框架,跟踪opencv的函数执行情况,并进行日志的输出,以及执行时间权重。可以关闭,关闭后不消耗资源。
有的博客说与初始化和边界有关,暂时不清楚哪个正确,先做一下记录。