OpenCV 5.0.0
Open Source Computer Vision
読み込み中...
検索中...
見つかりません
🤖 AIによる機械翻訳(非公式) — これは OpenCV 5.0.0 公式リファレンス(英語)を AI (Claude) で自動翻訳したものです。訳に誤りを含む場合があります。正確な情報は 公式英語版(原文) を参照してください。
utility.hpp ファイル
#include "opencv2/core.hpp"
#include <ostream>
#include <functional>
#include <mutex>
Include dependency graph for utility.hpp:
This graph shows which files directly or indirectly include this file:

クラス

class  cv::AutoBuffer< _Tp, fixed_size >
 自動的に割り当てられるバッファクラス。続きを読む...
 
class  cv::CommandLineParser
 コマンドライン解析用に設計されている。続きを読む...
 
class  cv::Node< OBJECT >
 
class  cv::ParallelLoopBody
 並列データプロセッサの基底クラス。続きを読む...
 
class  cv::ParallelLoopBodyLambdaWrapper
 
class  cv::TickMeter
 経過時間を測定するためのクラス。続きを読む...
 

名前空間

namespace  cv
 
namespace  cv::samples
 
namespace  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
 

列挙型

enum  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 ()
 完全なconfiguration time 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 cv::getTickCount ()
 ティック数を返す。
 
double cv::getTickFrequency ()
 1秒あたりのティック数を返す。
 
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)
 第1引数の値を第2引数の値の最も近い倍数に切り上げる。
 
static size_t cv::roundUp (size_t a, unsigned int b)
 
bool cv::setBreakOnError (bool flag)
 break-on-errorモードを設定/解除する。
 
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ビルドオプションが必要。