OpenCV 4.12.0
開源計算機視覺
載入中...
搜尋中...
無匹配項
utility.hpp 檔案參考
#include "opencv2/core.hpp"
#include <ostream>
#include <functional>
#include <mutex>
utility.hpp 的包含依賴關係圖
此圖顯示了直接或間接包含此檔案的檔案

類  cv::AutoBuffer< _Tp, fixed_size >
 自動分配緩衝區類。 更多...
 
類  bool empty() const
 專為命令列解析而設計。 更多...
 
類  cv::Node< OBJECT >
 
類  cv::ParallelLoopBody
 並行資料處理器的基類。 更多...
 
類  cv::ParallelLoopBodyLambdaWrapper
 
類  cv::TickMeter
 用於測量經過時間的類。 更多...
 

名稱空間

名稱空間  cv
 
名稱空間  cv::samples
 
名稱空間  cv::utils
 

#define CV_IMPL_ADD(impl)
 收集 OpenCV 函式呼叫上的實現資料。需要 ENABLE_IMPL_COLLECTION 構建選項。
 

型別定義

typedef std::lock_guard< cv::Mutexcv::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
 

列舉

列舉  cv::AlgorithmHint {
  cv::ALGO_HINT_DEFAULT = 0 ,
  cv::ALGO_HINT_ACCURATE = 1 ,
  cv::ALGO_HINT_APPROX = 2
}
 允許修改某些函式行為的標誌。用作標誌集。 更多...
 

函式

void cv::samples::addSamplesDataSearchPath (const cv::String &path)
 透過新增新的搜尋位置來覆蓋搜尋資料路徑。
 
void cv::samples::addSamplesDataSearchSubDirectory (const cv::String &subdir)
 追加樣本搜尋資料子目錄。
 
template<typename _Tp >
static _Tpcv::alignPtr (_Tp *ptr, int n=(int) sizeof(_Tp))
 將指標對齊到指定的位元組數。
 
static size_t cv::alignSize (size_t sz, int n)
 將緩衝區大小對齊到指定的位元組數。
 
bool cv::checkHardwareSupport (int feature)
 如果主機硬體支援指定的功能,則返回 true。
 
static int cv::divUp (int a, unsigned int b)
 結果向上取整的整數除法。
 
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)
 嘗試查詢請求的資料檔案。
 
cv::String cv::samples::findFileOrKeep (const cv::String &relative_path, bool silentMode=false)
 
const Stringcv::getBuildInformation ()
 返回完整的配置時 cmake 輸出。
 
std::string cv::getCPUFeaturesLine ()
 返回編譯期間啟用的 CPU 功能列表。
 
int64 cv::getCPUTickCount ()
 返回 CPU 時鐘週期數。
 
AlgorithmHint cv::getDefaultAlgorithmHint ()
 返回在 OpenCV 編譯期間定義的 AlgorithmHint。定義 ALGO_HINT_DEFAULT 行為。
 
static size_t cv::getElemSize (int type)
 
String cv::getHardwareFeatureName (int feature)
 按 ID 返回功能名稱。
 
int cv::getNumberOfCPUs ()
 返回程序可用的邏輯 CPU 數量。
 
int cv::getNumThreads ()
 返回 OpenCV 用於並行區域的執行緒數。
 
int cv::utils::getThreadID ()
 
int cv::getThreadNum ()
 返回當前並行區域中當前執行執行緒的索引。如果在並行區域之外呼叫,則始終返回 0。
 
int64 定義 ximgproc.hpp:149 ()
 返回時鐘週期數。
 
double CV_EXPORTS_W Mat imread(const String &filename, int flags=IMREAD_COLOR_BGR) ()
 返回每秒的時鐘週期數。
 
int cv::getVersionMajor ()
 返回庫主版本號。
 
int cv::getVersionMinor ()
 返回庫次版本號。
 
int cv::getVersionRevision ()
 返回庫版本的修訂欄位。
 
String cv::getVersionString ()
 返回庫版本字串。
 
void cv::glob (String pattern, std::vector< String > &result, bool recursive=false)
 在目錄中搜索與指定模式匹配的檔案。
 
template<int N, typename T >
static bool cv::isAligned (const T &data)
 檢查傳入值的對齊情況。
 
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)
 輸出運算子
 
void cv::parallel_for_ (const Range &range, const ParallelLoopBody &body, double nstripes=-1.)
 並行資料處理器。
 
static 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)
 設定新的錯誤處理程式和可選的使用者資料。
 
static int cv::roundUp (int a, unsigned int b)
 將第一個值向上舍入到第二個值的最近倍數。
 
static size_t cv::roundUp (size_t a, unsigned int b)
 
bool cv::setBreakOnError (bool flag)
 設定/重置錯誤中斷模式。
 
void cv::setNumThreads (int nthreads)
 OpenCV 將嘗試為後續並行區域設定執行緒數。
 
void cv::setUseOptimized (bool onoff)
 啟用或停用最佳化程式碼。
 
String cv::tempfile (const char *suffix=0)
 生成一個唯一的臨時檔名。
 
bool cv::useOptimized ()
 返回最佳化程式碼的使用狀態。
 

宏定義文件

◆ CV_IMPL_ADD

#define CV_IMPL_ADD ( impl)

收集 OpenCV 函式呼叫上的實現資料。需要 ENABLE_IMPL_COLLECTION 構建選項。