1
0
mirror of https://github.com/opencv/opencv.git synced 2026-07-30 15:53:03 +04:00

Fix modules/ typos

Found using `codespell -q 3 -S ./3rdparty -L activ,amin,ang,atleast,childs,dof,endwhile,halfs,hist,iff,nd,od,uint`
This commit is contained in:
luz.paz
2019-08-15 18:02:09 -04:00
parent ea667d82b3
commit ec43292e1e
94 changed files with 120 additions and 120 deletions
+3 -3
View File
@@ -46,12 +46,12 @@ majority of the work by itself, keeping the algorithm code clean from
device or optimization details. This approach has its own limitations,
though, as graph model is a _constrained_ model and not every
algorithm can be represented as a graph, so the G-API scope is limited
only to regular image processing -- various filters, arithmentic,
only to regular image processing -- various filters, arithmetic,
binary operations, and well-defined geometrical transformations.
## Porting with Graph API {#gapi_intro_port}
The essense of G-API is declaring a sequence of operations to run, and
The essence of G-API is declaring a sequence of operations to run, and
then executing that sequence. G-API is a constrained API, so it puts a
number of limitations on which operations can form a pipeline and
which data these operations may exchange each other.
@@ -67,7 +67,7 @@ interfaces, not implementations -- thus the same graph can be executed
on different devices (and, of course, using different optimization
techniques) with little-to-no changes in the graph itself.
G-API supports plugins (_Backends_) which aggreate logic and
G-API supports plugins (_Backends_) which aggregate logic and
intelligence on what is the best way to execute on a particular
platform. Once a pipeline is built with G-API, it can be parametrized
to use either of the backends (or a combination of it) and so a graph
+2 -2
View File
@@ -701,7 +701,7 @@ GAPI_EXPORTS GMat divRC(const GScalar& divident, const GMat& src, double scale,
/** @brief Applies a mask to a matrix.
The function mask set value from given matrix if the corresponding pixel value in mask matrix set to true,
and set the matrix value to 0 overwise.
and set the matrix value to 0 otherwise.
Supported src matrix data types are @ref CV_8UC1, @ref CV_16SC1, @ref CV_16UC1. Supported mask data type is @ref CV_8UC1.
@@ -1293,7 +1293,7 @@ depths.
*/
GAPI_EXPORTS GMat threshold(const GMat& src, const GScalar& thresh, const GScalar& maxval, int depth);
/** @overload
This function appicable for all threshold depths except CV_THRESH_OTSU and CV_THRESH_TRIANGLE
This function applicable for all threshold depths except CV_THRESH_OTSU and CV_THRESH_TRIANGLE
@note Function textual ID is "org.opencv.core.matrixop.thresholdOT"
*/
GAPI_EXPORTS std::tuple<GMat, GScalar> threshold(const GMat& src, const GScalar& maxval, int depth);
@@ -92,7 +92,7 @@ protected:
std::vector<GArg> m_args;
//FIXME: avoid conversion of arguments from internal representaion to OpenCV one on each call
//FIXME: avoid conversion of arguments from internal representation to OpenCV one on each call
//to OCV kernel. (This can be achieved by a two single time conversions in GCPUExecutable::run,
//once on enter for input and output arguments, and once before return for output arguments only
std::unordered_map<std::size_t, GRunArgP> m_results;
@@ -229,7 +229,7 @@ struct OCVCallHelper<Impl, std::tuple<Ins...>, std::tuple<Outs...> >
static void call(Inputs&&... ins, Outputs&&... outs)
{
//not using a std::forward on outs is deliberate in order to
//cause compilation error, by tring to bind rvalue references to lvalue references
//cause compilation error, by trying to bind rvalue references to lvalue references
Impl::run(std::forward<Inputs>(ins)..., outs...);
postprocess(outs...);
+1 -1
View File
@@ -81,7 +81,7 @@ namespace detail
protected:
GArrayU(); // Default constructor
template<class> friend class cv::GArray; // (avialable to GArray<T> only)
template<class> friend class cv::GArray; // (available to GArray<T> only)
void setConstructFcn(ConstructVec &&cv); // Store T-aware constructor
@@ -23,7 +23,7 @@ namespace wip {
class GAsyncContext;
//These functions asynchronously (i.e. probably on a separate thread of execution) call operator() member function of their first argument with copies of rest of arguments (except callback) passed in.
//The difference between the function is the way to get the completion notification (via callback or a waiting on std::future object)
//If exception is occurred during execution of apply it is transfered to the callback (via function parameter) or passed to future (and will be thrown on call to std::future::get)
//If exception is occurred during execution of apply it is transferred to the callback (via function parameter) or passed to future (and will be thrown on call to std::future::get)
//N.B. :
//Input arguments are copied on call to async function (actually on call to cv::gin) and thus do not have to outlive the actual completion of asynchronous activity.
@@ -83,7 +83,7 @@ namespace detail
* In the above example, sobelEdge expects one Mat on input and
* produces one Mat; while sobelEdgeSub expects two Mats on input and
* produces one Mat. GComputation's protocol defines how other
* computaion methods should be used -- cv::GComputation::compile() and
* computation methods should be used -- cv::GComputation::compile() and
* cv::GComputation::apply(). For example, if a graph is defined on
* two GMat inputs, two cv::Mat objects have to be passed to apply()
* for execution. GComputation checks protocol correctness in runtime
@@ -24,7 +24,7 @@ namespace wip {
class GAsyncContext;
//These functions asynchronously (i.e. probably on a separate thread of execution) call apply member function of their first argument with copies of rest of arguments (except callback) passed in.
//The difference between the function is the way to get the completion notification (via callback or a waiting on std::future object)
//If exception is occurred during execution of apply it is transfered to the callback (via function parameter) or passed to future (and will be thrown on call to std::future::get)
//If exception is occurred during execution of apply it is transferred to the callback (via function parameter) or passed to future (and will be thrown on call to std::future::get)
//N.B. :
//Input arguments are copied on call to async function (actually on call to cv::gin) and thus do not have to outlive the actual completion of asynchronous activity.
@@ -323,7 +323,7 @@ namespace gapi {
* implementations in form of type list (variadic template) and
* generates a kernel package atop of that.
*
* Kernel packages can be also generated programatically, starting
* Kernel packages can be also generated programmatically, starting
* with an empty package (created with the default constructor)
* and then by populating it with kernels via call to
* GKernelPackage::include(). Note this method is also a template
+1 -1
View File
@@ -164,7 +164,7 @@ typename Net::ResultL infer(cv::GArray<cv::Rect> roi, Args&&... args) {
* @param args network's input parameters as specified in G_API_NET() macro.
* @return an object of return type as defined in G_API_NET().
* If a network has multiple return values (defined with a tuple), a tuple of
* objects of apprpriate type is returned.
* objects of appropriate type is returned.
* @sa G_API_NET()
*/
template<typename Net, typename... Args>
@@ -198,7 +198,7 @@ struct OCLCallHelper<Impl, std::tuple<Ins...>, std::tuple<Outs...> >
static void call(Inputs&&... ins, Outputs&&... outs)
{
//not using a std::forward on outs is deliberate in order to
//cause compilation error, by tring to bind rvalue references to lvalue references
//cause compilation error, by trying to bind rvalue references to lvalue references
Impl::run(std::forward<Inputs>(ins)..., outs...);
postprocess_ocl(outs...);
@@ -66,7 +66,7 @@ static inline DST saturate(SRC x, R round)
GAPI_DbgAssert(std::is_integral<DST>::value &&
std::is_floating_point<SRC>::value);
#ifdef _WIN32
// Suppress warning about convering x to floating-point
// Suppress warning about converting x to floating-point
// Note that x is already floating-point at this point
#pragma warning(disable: 4244)
#endif
+2 -2
View File
@@ -239,7 +239,7 @@ void resetInternalData(Mag& mag, const Data &d)
break;
case GShape::GMAT:
// Do nothign here - FIXME unify with initInternalData?
// Do nothing here - FIXME unify with initInternalData?
break;
default:
@@ -281,7 +281,7 @@ cv::GRunArgP getObjPtr(Mag& mag, const RcDesc &rc, bool is_umat)
return GRunArgP(&mag.template slot<cv::gapi::own::Mat>()[rc.id]);
case GShape::GSCALAR: return GRunArgP(&mag.template slot<cv::gapi::own::Scalar>()[rc.id]);
// Note: .at() is intentional for GArray as object MUST be already there
// (and constructer by either bindIn/Out or resetInternal)
// (and constructor by either bindIn/Out or resetInternal)
case GShape::GARRAY:
// FIXME(DM): For some absolutely unknown to me reason, move
// semantics is involved here without const_cast to const (and
+2 -2
View File
@@ -413,7 +413,7 @@ GAPI_OCV_KERNEL(GCPUSplit3, cv::gapi::core::GSplit3)
std::vector<cv::Mat> outMats = {m1, m2, m3};
cv::split(in, outMats);
// Write back FIXME: Write a helper or avoid this nonsence completely!
// Write back FIXME: Write a helper or avoid this nonsense completely!
m1 = outMats[0];
m2 = outMats[1];
m3 = outMats[2];
@@ -427,7 +427,7 @@ GAPI_OCV_KERNEL(GCPUSplit4, cv::gapi::core::GSplit4)
std::vector<cv::Mat> outMats = {m1, m2, m3, m4};
cv::split(in, outMats);
// Write back FIXME: Write a helper or avoid this nonsence completely!
// Write back FIXME: Write a helper or avoid this nonsense completely!
m1 = outMats[0];
m2 = outMats[1];
m3 = outMats[2];
+1 -1
View File
@@ -204,7 +204,7 @@ struct IECallContext
// Input parameters passed to an inference operation.
std::vector<cv::GArg> args;
//FIXME: avoid conversion of arguments from internal representaion to OpenCV one on each call
//FIXME: avoid conversion of arguments from internal representation to OpenCV one on each call
//to OCV kernel. (This can be achieved by a two single time conversions in GCPUExecutable::run,
//once on enter for input and output arguments, and once before return for output arguments only
//FIXME: check if the above applies to this backend (taken from CPU)
+2 -2
View File
@@ -410,7 +410,7 @@ GAPI_OCL_KERNEL(GOCLSplit3, cv::gapi::core::GSplit3)
std::vector<cv::UMat> outMats = {m1, m2, m3};
cv::split(in, outMats);
// Write back FIXME: Write a helper or avoid this nonsence completely!
// Write back FIXME: Write a helper or avoid this nonsense completely!
m1 = outMats[0];
m2 = outMats[1];
m3 = outMats[2];
@@ -424,7 +424,7 @@ GAPI_OCL_KERNEL(GOCLSplit4, cv::gapi::core::GSplit4)
std::vector<cv::UMat> outMats = {m1, m2, m3, m4};
cv::split(in, outMats);
// Write back FIXME: Write a helper or avoid this nonsence completely!
// Write back FIXME: Write a helper or avoid this nonsense completely!
m1 = outMats[0];
m2 = outMats[1];
m3 = outMats[2];
+1 -1
View File
@@ -297,7 +297,7 @@ void cv::gimpl::GCompiler::compileIslands(ade::Graph &g)
cv::GCompiled cv::gimpl::GCompiler::produceCompiled(GPtr &&pg)
{
// This is the final compilation step. Here:
// - An instance of GExecutor is created. Depening on the platform,
// - An instance of GExecutor is created. Depending on the platform,
// build configuration, etc, a GExecutor may be:
// - a naive single-thread graph interpreter;
// - a std::thread-based thing
+1 -1
View File
@@ -80,7 +80,7 @@ cv::gimpl::Unrolled cv::gimpl::unrollExpr(const GProtoArgs &ins,
std::unordered_set<GObjId> in_objs_p;
for (const auto& in_obj : ins)
{
// Objects are guarnateed to remain alive while this method
// Objects are guaranteed to remain alive while this method
// is working, so it is safe to keep pointers here and below
in_objs_p.insert(&proto::origin_of(in_obj));
}
+1 -1
View File
@@ -454,7 +454,7 @@ namespace
m_changes.enqueue<Change::DropLink>(m_g, m_cons, out_edge);
}
// D: Process the intermediate slots (betweed Prod n Cons).
// D: Process the intermediate slots (between Prod n Cons).
// D/1 - Those which are optimized out are just removed from the model
for (auto opt_slot_nh : mo.opt_interim_slots)
{
+1 -1
View File
@@ -32,7 +32,7 @@ namespace
cv::GArgs in_args;
};
// Generaly the algorithm is following
// Generally the algorithm is following
//
// 1. Get GCompoundKernel implementation
// 2. Create GCompoundContext
+1 -1
View File
@@ -113,7 +113,7 @@ void cv::gimpl::passes::inferMeta(ade::passes::PassContext &ctx, bool meta_is_in
} // for(sorted)
}
// After all metadata in graph is infered, store a vector of inferred metas
// After all metadata in graph is inferred, store a vector of inferred metas
// for computation output values.
void cv::gimpl::passes::storeResultingMeta(ade::passes::PassContext &ctx)
{