utility.hpp File Reference


#include " opencv2/core.hpp "
#include <ostream>
#include <functional>
#include <mutex>

class   cv::AutoBuffer< _Tp, fixed_size >
  Automatically Allocated Buffer Class. 更多...
 
class   cv::CommandLineParser
  Designed for command line parsing. 更多...
 
class   cv::Node< OBJECT >
 
class   cv::ParallelLoopBody
  Base class for parallel data processors. 更多...
 
class   cv::ParallelLoopBodyLambdaWrapper
 
class   cv::TickMeter
  a Class to measure passing time. 更多...
 

名称空间

  cv
  "black box" representation of the file storage associated with a file on disk.
 
  cv::samples
 
  cv::utils
 

#define  CV_IMPL_ADD (impl)
  Collect implementation data on OpenCV function call. Requires ENABLE_IMPL_COLLECTION build option. 更多...
 

Typedefs

typedef std::lock_guard< cv::Mutex cv::AutoLock
 
typedef int(*  cv::ErrorCallback ) (int status, const char *func_name, const char *err_msg, const char *file_name, int line, void *userdata)
 
typedef std::recursive_mutex  cv::Mutex
 

函数

void  cv::samples::addSamplesDataSearchPath (const cv::String &path)
  Override search data path by adding new search location. 更多...
 
void  cv::samples::addSamplesDataSearchSubDirectory (const cv::String &subdir)
  Append samples search data sub directory. 更多...
 
template<typename _Tp >
static _Tp *  cv::alignPtr (_Tp *ptr, int n=(int) sizeof(_Tp))
  Aligns a pointer to the specified number of bytes. 更多...
 
static size_t  cv::alignSize (size_t sz, int n)
  Aligns a buffer size to the specified number of bytes. 更多...
 
bool  cv::checkHardwareSupport (int feature)
  Returns true if the specified feature is supported by the host hardware. 更多...
 
static int  cv::divUp (int a, unsigned int b)
  Integer division with result round up. 更多...
 
static size_t  cv::divUp (size_t a, unsigned int b)
 
cv::String   cv::samples::findFile (const cv::String &relative_path, bool required=true, bool silentMode=false)
  Try to find requested data file. 更多...
 
cv::String   cv::samples::findFileOrKeep (const cv::String &relative_path, bool silentMode=false)
 
const String &  cv::getBuildInformation ()
  Returns full configuration time cmake output. 更多...
 
std::string  cv::getCPUFeaturesLine ()
  Returns list of CPU features enabled during compilation. 更多...
 
int64   cv::getCPUTickCount ()
  Returns the number of CPU ticks. 更多...
 
static size_t  cv::getElemSize (int type)
 
String  cv::getHardwareFeatureName (int feature)
  Returns feature name by ID. 更多...
 
int  cv::getNumberOfCPUs ()
  Returns the number of logical CPUs available for the process. 更多...
 
int  cv::getNumThreads ()
  Returns the number of threads used by OpenCV for parallel regions. 更多...
 
int  cv::utils::getThreadID ()
 
int  cv::getThreadNum ()
  Returns the index of the currently executed thread within the current parallel region. Always returns 0 if called outside of parallel region. 更多...
 
int64   cv::getTickCount ()
  Returns the number of ticks. 更多...
 
double  cv::getTickFrequency ()
  Returns the number of ticks per second. 更多...
 
int  cv::getVersionMajor ()
  Returns major library version. 更多...
 
int  cv::getVersionMinor ()
  Returns minor library version. 更多...
 
int  cv::getVersionRevision ()
  Returns revision field of the library version. 更多...
 
String  cv::getVersionString ()
  Returns library version string. 更多...
 
void  cv::glob (String pattern, std::vector< String > &result, bool recursive=false)
 
template<int N, typename T >
static bool  cv::isAligned (const T &data)
  Alignment check of passed values. 更多...
 
template<int N>
static bool  cv::isAligned (const void *p1)
 
template<int N>
static bool  cv::isAligned (const void *p1, const void *p2)
 
template<int N>
static bool  cv::isAligned (const void *p1, const void *p2, const void *p3)
 
template<int N>
static bool  cv::isAligned (const void *p1, const void *p2, const void *p3, const void *p4)
 
static std::ostream &  cv::operator<< (std::ostream &out, const TickMeter &tm)
  output operator 更多...
 
void  cv::parallel_for_ (const Range &range, const ParallelLoopBody &body, double nstripes=-1.)
  Parallel data processor. 更多...
 
void  cv::parallel_for_ (const Range &range, std::function< void(const Range &)> functor, double nstripes=-1.)
 
ErrorCallback  cv::redirectError (ErrorCallback errCallback, void *userdata=0, void **prevUserdata=0)
  Sets the new error handler and the optional user data. 更多...
 
static int  cv::roundUp (int a, unsigned int b)
  Round first value up to the nearest multiple of second value. 更多...
 
static size_t  cv::roundUp (size_t a, unsigned int b)
 
bool  cv::setBreakOnError (bool flag)
  Sets/resets the break-on-error mode. 更多...
 
void  cv::setNumThreads (int nthreads)
  OpenCV will try to set the number of threads for the next parallel region. 更多...
 
void  cv::setUseOptimized (bool onoff)
  Enables or disables the optimized code. 更多...
 
String  cv::tempfile (const char *suffix=0)
 
bool  cv::useOptimized ()
  Returns the status of optimized code usage. 更多...
 

宏定义文档编制

◆  CV_IMPL_ADD

#define CV_IMPL_ADD (   impl )

Collect implementation data on OpenCV function call. Requires ENABLE_IMPL_COLLECTION build option.