OpenCV  3.4.18
Open Source Computer Vision
Classes | Namespaces | Macros | Typedefs | Functions
utility.hpp File Reference
#include "opencv2/core.hpp"
#include <ostream>
#include "opencv2/core/core_c.h"

Classes

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

Namespaces

 cv
 
 cv::samples
 
 cv::utils
 

Macros

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

Typedefs

typedef int(* cv::ErrorCallback) (int status, const char *func_name, const char *err_msg, const char *file_name, int line, void *userdata)
 

Functions

void cv::samples::addSamplesDataSearchPath (const cv::String &path)
 Override search data path by adding new search location. More...
 
void cv::samples::addSamplesDataSearchSubDirectory (const cv::String &subdir)
 Append samples search data sub directory. More...
 
template<typename _Tp >
static _Tp * cv::alignPtr (_Tp *ptr, int n=(int) sizeof(_Tp))
 Aligns a pointer to the specified number of bytes. More...
 
static size_t cv::alignSize (size_t sz, int n)
 Aligns a buffer size to the specified number of bytes. More...
 
bool cv::checkHardwareSupport (int feature)
 Returns true if the specified feature is supported by the host hardware. More...
 
static int cv::divUp (int a, unsigned int b)
 Integer division with result round up. More...
 
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. More...
 
cv::String cv::samples::findFileOrKeep (const cv::String &relative_path, bool silentMode=false)
 
const String & cv::getBuildInformation ()
 Returns full configuration time cmake output. More...
 
std::string cv::getCPUFeaturesLine ()
 Returns list of CPU features enabled during compilation. More...
 
int64 cv::getCPUTickCount ()
 Returns the number of CPU ticks. More...
 
static size_t cv::getElemSize (int type)
 
String cv::getHardwareFeatureName (int feature)
 Returns feature name by ID. More...
 
int cv::getNumberOfCPUs ()
 Returns the number of logical CPUs available for the process. More...
 
int cv::getNumThreads ()
 Returns the number of threads used by OpenCV for parallel regions. More...
 
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. More...
 
int64 cv::getTickCount ()
 Returns the number of ticks. More...
 
double cv::getTickFrequency ()
 Returns the number of ticks per second. More...
 
int cv::getVersionMajor ()
 Returns major library version. More...
 
int cv::getVersionMinor ()
 Returns minor library version. More...
 
int cv::getVersionRevision ()
 Returns revision field of the library version. More...
 
String cv::getVersionString ()
 Returns library version string. More...
 
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. More...
 
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 More...
 
void cv::parallel_for_ (const Range &range, const ParallelLoopBody &body, double nstripes=-1.)
 Parallel data processor. More...
 
ErrorCallback cv::redirectError (ErrorCallback errCallback, void *userdata=0, void **prevUserdata=0)
 Sets the new error handler and the optional user data. More...
 
static int cv::roundUp (int a, unsigned int b)
 Round first value up to the nearest multiple of second value. More...
 
static size_t cv::roundUp (size_t a, unsigned int b)
 
bool cv::setBreakOnError (bool flag)
 Sets/resets the break-on-error mode. More...
 
void cv::setNumThreads (int nthreads)
 OpenCV will try to set the number of threads for the next parallel region. More...
 
void cv::setUseOptimized (bool onoff)
 Enables or disables the optimized code. More...
 
String cv::tempfile (const char *suffix=0)
 
bool cv::useOptimized ()
 Returns the status of optimized code usage. More...
 

Macro Definition Documentation

◆ CV_IMPL_ADD

#define CV_IMPL_ADD (   impl)

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