5
#ifndef OPENCV_CORE_PARALLEL_BACKEND_HPP
6
#define OPENCV_CORE_PARALLEL_BACKEND_HPP
8
#include "opencv2/core/cvdef.h"
11
namespace
cv
{
namespace
parallel {
61
typedef
void (CV_API_CALL *FN_parallel_for_body_cb_t)(
int
start,
int
end,
void* data);
63
virtual
void
parallel_for(
int
tasks, FN_parallel_for_body_cb_t body_callback,
void* callback_data) = 0;
71
virtual
const
char* getName()
const
= 0;
80
CV_EXPORTS
void
setParallelForBackend(
const
std::shared_ptr<ParallelForAPI>& api,
bool
propagateNumThreads =
true);
Definition:
parallel_backend.hpp:57
CV_EXPORTS_W bool setParallelForBackend(const std::string &backendName, bool propagateNumThreads=true)
Change OpenCV parallel_for backend
CV_EXPORTS_W void setNumThreads(int nthreads)
OpenCV will try to set the number of threads for the next parallel region.
CV_EXPORTS_W int getThreadNum()
Returns the index of the currently executed thread within the current parallel region....
CV_EXPORTS_W int getNumThreads()
Returns the number of threads used by OpenCV for parallel regions.
"black box" representation of the file storage associated with a file on disk.
Definition:
aruco.hpp:75