Skip to content

Commit 526220a

Browse files
csukuangfjvpisarev
authored andcommitted
Fix typos in the documentation (opencv#8226)
* fix typos. * Fix typos. * Fix typos. * Fix typos. * Fix typos.
1 parent 5bfaf99 commit 526220a

File tree

5 files changed

+17
-17
lines changed

5 files changed

+17
-17
lines changed

modules/core/include/opencv2/core.hpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ class CV_EXPORTS Exception : public std::exception
114114
*/
115115
Exception();
116116
/*!
117-
Full constructor. Normally the constuctor is not called explicitly.
117+
Full constructor. Normally the constructor is not called explicitly.
118118
Instead, the macros CV_Error(), CV_Error_() and CV_Assert() are used.
119119
*/
120120
Exception(int _code, const String& _err, const String& _func, const String& _file, int _line);
@@ -131,8 +131,8 @@ class CV_EXPORTS Exception : public std::exception
131131
int code; ///< error code @see CVStatus
132132
String err; ///< error description
133133
String func; ///< function name. Available only when the compiler supports getting it
134-
String file; ///< source file name where the error has occured
135-
int line; ///< line number in the source file where the error has occured
134+
String file; ///< source file name where the error has occurred
135+
int line; ///< line number in the source file where the error has occurred
136136
};
137137

138138
/*! @brief Signals an error and raises the exception.

modules/core/include/opencv2/core/core_c.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2654,7 +2654,7 @@ CVAPI(int) cvGetErrMode( void );
26542654
/** Sets error processing mode, returns previously used mode */
26552655
CVAPI(int) cvSetErrMode( int mode );
26562656

2657-
/** Sets error status and performs some additonal actions (displaying message box,
2657+
/** Sets error status and performs some additional actions (displaying message box,
26582658
writing message to stderr, terminating application etc.)
26592659
depending on the current error mode */
26602660
CVAPI(void) cvError( int status, const char* func_name,
@@ -2663,7 +2663,7 @@ CVAPI(void) cvError( int status, const char* func_name,
26632663
/** Retrieves textual description of the error given its code */
26642664
CVAPI(const char*) cvErrorStr( int status );
26652665

2666-
/** Retrieves detailed information about the last error occured */
2666+
/** Retrieves detailed information about the last error occurred */
26672667
CVAPI(int) cvGetErrInfo( const char** errcode_desc, const char** description,
26682668
const char** filename, int* line );
26692669

modules/core/include/opencv2/core/cvdef.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -416,7 +416,7 @@ Cv64suf;
416416
#define CV_IS_SUBMAT(flags) ((flags) & CV_MAT_SUBMAT_FLAG)
417417

418418
/** Size of each channel item,
419-
0x124489 = 1000 0100 0100 0010 0010 0001 0001 ~ array of sizeof(arr_type_elem) */
419+
0x8442211 = 1000 0100 0100 0010 0010 0001 0001 ~ array of sizeof(arr_type_elem) */
420420
#define CV_ELEM_SIZE1(type) \
421421
((((sizeof(size_t)<<28)|0x8442211) >> CV_MAT_DEPTH(type)*4) & 15)
422422

modules/core/include/opencv2/core/utility.hpp

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -61,8 +61,8 @@ namespace cv
6161
#ifdef CV_COLLECT_IMPL_DATA
6262
CV_EXPORTS void setImpl(int flags); // set implementation flags and reset storage arrays
6363
CV_EXPORTS void addImpl(int flag, const char* func = 0); // add implementation and function name to storage arrays
64-
// Get stored implementation flags and fucntions names arrays
65-
// Each implementation entry correspond to function name entry, so you can find which implementation was executed in which fucntion
64+
// Get stored implementation flags and functions names arrays
65+
// Each implementation entry correspond to function name entry, so you can find which implementation was executed in which function
6666
CV_EXPORTS int getImpl(std::vector<int> &impl, std::vector<String> &funName);
6767

6868
CV_EXPORTS bool useCollection(); // return implementation collection state
@@ -196,7 +196,7 @@ be called outside of parallel region.
196196
OpenCV will try to run it's functions with specified threads number, but some behaviour differs from
197197
framework:
198198
- `TBB` – User-defined parallel constructions will run with the same threads number, if
199-
another does not specified. If late on user creates own scheduler, OpenCV will be use it.
199+
another does not specified. If later on user creates own scheduler, OpenCV will use it.
200200
- `OpenMP` – No special defined behaviour.
201201
- `Concurrency` – If threads == 1, OpenCV will disable threading optimizations and run it's
202202
functions sequentially.
@@ -229,7 +229,7 @@ CV_EXPORTS_W int getNumThreads();
229229
returns 0 if called outside of parallel region.
230230
231231
The exact meaning of return value depends on the threading framework used by OpenCV library:
232-
- `TBB` – Unsupported with current 4.1 TBB release. May be will be supported in future.
232+
- `TBB` – Unsupported with current 4.1 TBB release. Maybe will be supported in future.
233233
- `OpenMP` – The thread number, within the current team, of the calling thread.
234234
- `Concurrency` – An ID for the virtual processor that the current context is executing on (0
235235
for master thread and unique number for others, but not necessary 1,2,3,...).
@@ -636,7 +636,7 @@ class TLSData : protected TLSDataContainer
636636
public:
637637
inline TLSData() {}
638638
inline ~TLSData() { release(); } // Release key and delete associated data
639-
inline T* get() const { return (T*)getData(); } // Get data assosiated with key
639+
inline T* get() const { return (T*)getData(); } // Get data associated with key
640640

641641
// Get data from all threads
642642
inline void gather(std::vector<T*> &data) const
@@ -687,7 +687,7 @@ The sample below demonstrates how to use CommandLineParser:
687687
688688
### Keys syntax
689689
690-
The keys parameter is a string containing several blocks, each one is enclosed in curley braces and
690+
The keys parameter is a string containing several blocks, each one is enclosed in curly braces and
691691
describes one argument. Each argument contains three parts separated by the `|` symbol:
692692
693693
-# argument names is a space-separated list of option synonyms (to mark argument as positional, prefix it with the `@` symbol)
@@ -845,7 +845,7 @@ class CV_EXPORTS CommandLineParser
845845

846846
/** @brief Check for parsing errors
847847
848-
Returns true if error occured while accessing the parameters (bad conversion, missing arguments,
848+
Returns true if error occurred while accessing the parameters (bad conversion, missing arguments,
849849
etc.). Call @ref printErrors to print error messages list.
850850
*/
851851
bool check() const;

modules/core/src/system.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -751,7 +751,7 @@ CV_IMPL const char* cvErrorStr( int status )
751751
case CV_StsAutoTrace : return "Autotrace call";
752752
case CV_StsBadSize : return "Incorrect size of input array";
753753
case CV_StsNullPtr : return "Null pointer";
754-
case CV_StsDivByZero : return "Division by zero occured";
754+
case CV_StsDivByZero : return "Division by zero occurred";
755755
case CV_BadStep : return "Image step is wrong";
756756
case CV_StsInplaceNotSupported : return "Inplace operation is not supported";
757757
case CV_StsObjectNotFound : return "Requested object was not found";
@@ -1035,7 +1035,7 @@ class TlsStorage
10351035
{
10361036
if(threads[i])
10371037
{
1038-
/* Current architecture doesn't allow proper global objects relase, so this check can cause crashes
1038+
/* Current architecture doesn't allow proper global objects release, so this check can cause crashes
10391039
10401040
// Check if all slots were properly cleared
10411041
for(size_t j = 0; j < threads[i]->slots.size(); j++)
@@ -1085,7 +1085,7 @@ class TlsStorage
10851085
return (tlsSlots.size()-1);
10861086
}
10871087

1088-
// Release TLS storage index and pass assosiated data to caller
1088+
// Release TLS storage index and pass associated data to caller
10891089
void releaseSlot(size_t slotIdx, std::vector<void*> &dataVec)
10901090
{
10911091
AutoLock guard(mtxGlobalAccess);
@@ -1196,7 +1196,7 @@ void TLSDataContainer::release()
11961196
std::vector<void*> data;
11971197
data.reserve(32);
11981198
getTlsStorage().releaseSlot(key_, data); // Release key and get stored data for proper destruction
1199-
for(size_t i = 0; i < data.size(); i++) // Delete all assosiated data
1199+
for(size_t i = 0; i < data.size(); i++) // Delete all associated data
12001200
deleteDataInstance(data[i]);
12011201
key_ = -1;
12021202
}

0 commit comments

Comments
 (0)