OpenCV  4.1.0
Open Source Computer Vision
Classes | Namespaces | Macros | Typedefs | Enumerations | Functions
utility.hpp File Reference
#include "opencv2/core.hpp"
#include <ostream>
#include <functional>
#include <mutex>

Classes

class  cv::AutoBuffer< _Tp, fixed_size >
 Automatically Allocated Buffer Class. More...
 
class  cv::CommandLineParser
 Designed for command line parsing. More...
 
class  cv::Node< OBJECT >
 
class  cv::instr::NodeData
 
struct  cv::instr::NodeDataTls
 
class  cv::ParallelLoopBody
 Base class for parallel data processors. More...
 
class  cv::ParallelLoopBodyLambdaWrapper
 
class  cv::TickMeter
 a Class to measure passing time. More...
 
class  cv::TLSData< T >
 
class  cv::TLSDataContainer
 

Namespaces

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

Macros

#define CV_IMPL_ADD(impl)
 

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 Node< NodeData > cv::instr::InstrNode
 
typedef std::recursive_mutex cv::Mutex
 

Enumerations

enum  cv::instr::FLAGS {
  cv::instr::FLAGS_NONE = 0,
  cv::instr::FLAGS_MAPPING = 0x01,
  cv::instr::FLAGS_EXPAND_SAME_NAMES = 0x02
}
 
enum  cv::instr::IMPL {
  cv::instr::IMPL_PLAIN = 0,
  cv::instr::IMPL_IPP,
  cv::instr::IMPL_OPENCL
}
 
enum  cv::instr::TYPE {
  cv::instr::TYPE_GENERAL = 0,
  cv::instr::TYPE_MARKER,
  cv::instr::TYPE_WRAPPER,
  cv::instr::TYPE_FUN
}
 

Functions

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)
 
FLAGS cv::instr::getFlags ()
 
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.
 
InstrNode * cv::instr::getTrace ()
 
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)
 
static std::ostream & cv::operator<< (std::ostream &out, const TickMeter &tm)
 output operator
 
bool cv::instr::operator== (const NodeData &lhs, const NodeData &rhs)
 
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.
 
void cv::instr::resetTrace ()
 
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::instr::setFlags (FLAGS modeFlags)
 
static void cv::instr::setFlags (int modeFlags)
 
void cv::setNumThreads (int nthreads)
 OpenCV will try to set the number of threads for the next parallel region.
 
void cv::instr::setUseInstrumentation (bool flag)
 
void cv::setUseOptimized (bool onoff)
 Enables or disables the optimized code.
 
String cv::tempfile (const char *suffix=0)
 
bool cv::instr::useInstrumentation ()
 
bool cv::useOptimized ()
 Returns the status of optimized code usage.
 

Macro Definition Documentation

#define CV_IMPL_ADD (   impl)