Skip to content

Commit 5718d09

Browse files
committed
Misc. modules/ typos
Found via `codespell`
1 parent b675235 commit 5718d09

40 files changed

+76
-76
lines changed

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1788,7 +1788,7 @@ CVAPI(int) cvGraphRemoveVtx( CvGraph* graph, int index );
17881788
CVAPI(int) cvGraphRemoveVtxByPtr( CvGraph* graph, CvGraphVtx* vtx );
17891789

17901790

1791-
/** Link two vertices specifed by indices or pointers if they
1791+
/** Link two vertices specified by indices or pointers if they
17921792
are not connected or return pointer to already existing edge
17931793
connecting the vertices.
17941794
Functions return 1 if a new edge was created, 0 otherwise */
@@ -2648,7 +2648,7 @@ CVAPI(void) cvSetErrStatus( int status );
26482648
#define CV_ErrModeParent 1 /* Print error and continue */
26492649
#define CV_ErrModeSilent 2 /* Don't print and continue */
26502650

2651-
/** Retrives current error processing mode */
2651+
/** Retrieves current error processing mode */
26522652
CVAPI(int) cvGetErrMode( void );
26532653

26542654
/** Sets error processing mode, returns previously used mode */
@@ -2738,7 +2738,7 @@ static char cvFuncName[] = Name
27382738
/**
27392739
CV_CALL macro calls CV (or IPL) function, checks error status and
27402740
signals a error if the function failed. Useful in "parent node"
2741-
error procesing mode
2741+
error processing mode
27422742
*/
27432743
#define CV_CALL( Func ) \
27442744
{ \

modules/core/include/opencv2/core/cuda.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@
5656
@{
5757
@defgroup cudacore Core part
5858
@{
59-
@defgroup cudacore_init Initalization and Information
59+
@defgroup cudacore_init Initialization and Information
6060
@defgroup cudacore_struct Data Structures
6161
@}
6262
@}

modules/core/include/opencv2/core/mat.hpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2184,7 +2184,7 @@ template<typename _Tp> class Mat_ : public Mat
21842184
Mat_(int _ndims, const int* _sizes);
21852185
//! n-dim array constructor that sets each matrix element to specified value
21862186
Mat_(int _ndims, const int* _sizes, const _Tp& value);
2187-
//! copy/conversion contructor. If m is of different type, it's converted
2187+
//! copy/conversion constructor. If m is of different type, it's converted
21882188
Mat_(const Mat& m);
21892189
//! copy constructor
21902190
Mat_(const Mat_& m);
@@ -2275,7 +2275,7 @@ template<typename _Tp> class Mat_ : public Mat
22752275
static MatExpr eye(int rows, int cols);
22762276
static MatExpr eye(Size size);
22772277

2278-
//! some more overriden methods
2278+
//! some more overridden methods
22792279
Mat_& adjustROI( int dtop, int dbottom, int dleft, int dright );
22802280
Mat_ operator()( const Range& rowRange, const Range& colRange ) const;
22812281
Mat_ operator()( const Rect& roi ) const;
@@ -2943,7 +2943,7 @@ template<typename _Tp> class SparseMat_ : public SparseMat
29432943

29442944
//! the default constructor
29452945
SparseMat_();
2946-
//! the full constructor equivelent to SparseMat(dims, _sizes, DataType<_Tp>::type)
2946+
//! the full constructor equivalent to SparseMat(dims, _sizes, DataType<_Tp>::type)
29472947
SparseMat_(int dims, const int* _sizes);
29482948
//! the copy constructor. If DataType<_Tp>.type != m.type(), the m elements are converted
29492949
SparseMat_(const SparseMat& m);

modules/core/include/opencv2/core/matx.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ Except of the plain constructor which takes a list of elements, Matx can be init
9292
float values[] = { 1, 2, 3};
9393
Matx31f m(values);
9494
@endcode
95-
In case if C++11 features are avaliable, std::initializer_list can be also used to initialize Matx:
95+
In case if C++11 features are available, std::initializer_list can be also used to initialize Matx:
9696
@code{.cpp}
9797
Matx31f m = { 1, 2, 3};
9898
@endcode

modules/core/include/opencv2/core/opengl.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -245,7 +245,7 @@ class CV_EXPORTS Buffer
245245

246246
/** @brief Maps OpenGL buffer to CUDA device memory.
247247
248-
This operatation doesn't copy data. Several buffer objects can be mapped to CUDA memory at a time.
248+
This operation doesn't copy data. Several buffer objects can be mapped to CUDA memory at a time.
249249
250250
A mapped data store must be unmapped with ogl::Buffer::unmapDevice before its buffer object is used.
251251
*/

modules/core/include/opencv2/core/optim.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ class CV_EXPORTS MinProblemSolver : public Algorithm
115115
always sensible) will be used.
116116
117117
@param x The initial point, that will become a centroid of an initial simplex. After the algorithm
118-
will terminate, it will be setted to the point where the algorithm stops, the point of possible
118+
will terminate, it will be set to the point where the algorithm stops, the point of possible
119119
minimum.
120120
@return The value of a function at the point found.
121121
*/
@@ -288,7 +288,7 @@ Bland's rule <http://en.wikipedia.org/wiki/Bland%27s_rule> is used to prevent cy
288288
contain 32- or 64-bit floating point numbers. As a convenience, column-vector may be also submitted,
289289
in the latter case it is understood to correspond to \f$c^T\f$.
290290
@param Constr `m`-by-`n+1` matrix, whose rightmost column corresponds to \f$b\f$ in formulation above
291-
and the remaining to \f$A\f$. It should containt 32- or 64-bit floating point numbers.
291+
and the remaining to \f$A\f$. It should contain 32- or 64-bit floating point numbers.
292292
@param z The solution will be returned here as a column-vector - it corresponds to \f$c\f$ in the
293293
formulation above. It will contain 64-bit floating point numbers.
294294
@return One of cv::SolveLPResult

modules/core/include/opencv2/core/softfloat.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ namespace cv
8282
Both types support the following:
8383
- Construction from signed and unsigned 32-bit and 64 integers,
8484
float/double or raw binary representation
85-
- Conversions betweeen each other, to float or double and to int
85+
- Conversions between each other, to float or double and to int
8686
using @ref cvRound, @ref cvTrunc, @ref cvFloor, @ref cvCeil or a bunch of
8787
saturate_cast functions
8888
- Add, subtract, multiply, divide, remainder, square root, FMA with absolute precision

modules/core/include/opencv2/core/vsx_utils.hpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -555,7 +555,7 @@ VSX_IMPL_CONV_EVEN_2_4(vec_uint4, vec_double2, vec_ctu, vec_ctuo)
555555
// vector population count
556556
#define vec_popcntu vec_popcnt
557557

558-
// overload and redirect wih setting second arg to zero
558+
// overload and redirect with setting second arg to zero
559559
// since we only support conversions without the second arg
560560
#define VSX_IMPL_OVERLOAD_Z2(rt, rg, fnm) \
561561
VSX_FINLINE(rt) fnm(const rg& a) { return fnm(a, 0); }
@@ -610,7 +610,7 @@ VSX_IMPL_CONV_ODD_2_4(vec_uint4, vec_double2, vec_ctuo, vec_ctu)
610610

611611
#endif // XLC VSX compatibility
612612

613-
// ignore GCC warning that casued by -Wunused-but-set-variable in rare cases
613+
// ignore GCC warning that caused by -Wunused-but-set-variable in rare cases
614614
#if defined(__GNUG__) && !defined(__clang__)
615615
# define VSX_UNUSED(Tvec) Tvec __attribute__((__unused__))
616616
#else // CLANG, XLC
@@ -736,7 +736,7 @@ VSX_IMPL_LOAD_L8(vec_double2, double)
736736
# define vec_cmpne(a, b) vec_not(vec_cmpeq(a, b))
737737
#endif
738738

739-
// absoulte difference
739+
// absolute difference
740740
#ifndef vec_absd
741741
# define vec_absd(a, b) vec_sub(vec_max(a, b), vec_min(a, b))
742742
#endif

modules/core/include/opencv2/core/wimage.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -289,7 +289,7 @@ class WImageC : public WImage<T>
289289
};
290290

291291
/** Image class which owns the data, so it can be allocated and is always
292-
freed. It cannot be copied but can be explicity cloned.
292+
freed. It cannot be copied but can be explicitly cloned.
293293
*/
294294
template<typename T>
295295
class WImageBuffer : public WImage<T>

modules/core/src/array.cpp

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1914,7 +1914,7 @@ cvPtrND( const CvArr* arr, const int* idx, int* _type,
19141914
}
19151915

19161916

1917-
// Returns specifed element of n-D array given linear index
1917+
// Returns specified element of n-D array given linear index
19181918
CV_IMPL CvScalar
19191919
cvGet1D( const CvArr* arr, int idx )
19201920
{
@@ -1949,7 +1949,7 @@ cvGet1D( const CvArr* arr, int idx )
19491949
}
19501950

19511951

1952-
// Returns specifed element of 2D array
1952+
// Returns specified element of 2D array
19531953
CV_IMPL CvScalar
19541954
cvGet2D( const CvArr* arr, int y, int x )
19551955
{
@@ -1983,7 +1983,7 @@ cvGet2D( const CvArr* arr, int y, int x )
19831983
}
19841984

19851985

1986-
// Returns specifed element of 3D array
1986+
// Returns specified element of 3D array
19871987
CV_IMPL CvScalar
19881988
cvGet3D( const CvArr* arr, int z, int y, int x )
19891989
{
@@ -2005,7 +2005,7 @@ cvGet3D( const CvArr* arr, int z, int y, int x )
20052005
}
20062006

20072007

2008-
// Returns specifed element of nD array
2008+
// Returns specified element of nD array
20092009
CV_IMPL CvScalar
20102010
cvGetND( const CvArr* arr, const int* idx )
20112011
{
@@ -2025,7 +2025,7 @@ cvGetND( const CvArr* arr, const int* idx )
20252025
}
20262026

20272027

2028-
// Returns specifed element of n-D array given linear index
2028+
// Returns specified element of n-D array given linear index
20292029
CV_IMPL double
20302030
cvGetReal1D( const CvArr* arr, int idx )
20312031
{
@@ -2064,7 +2064,7 @@ cvGetReal1D( const CvArr* arr, int idx )
20642064
}
20652065

20662066

2067-
// Returns specifed element of 2D array
2067+
// Returns specified element of 2D array
20682068
CV_IMPL double
20692069
cvGetReal2D( const CvArr* arr, int y, int x )
20702070
{
@@ -2103,7 +2103,7 @@ cvGetReal2D( const CvArr* arr, int y, int x )
21032103
}
21042104

21052105

2106-
// Returns specifed element of 3D array
2106+
// Returns specified element of 3D array
21072107
CV_IMPL double
21082108
cvGetReal3D( const CvArr* arr, int z, int y, int x )
21092109
{
@@ -2131,7 +2131,7 @@ cvGetReal3D( const CvArr* arr, int z, int y, int x )
21312131
}
21322132

21332133

2134-
// Returns specifed element of nD array
2134+
// Returns specified element of nD array
21352135
CV_IMPL double
21362136
cvGetRealND( const CvArr* arr, const int* idx )
21372137
{
@@ -2156,7 +2156,7 @@ cvGetRealND( const CvArr* arr, const int* idx )
21562156
}
21572157

21582158

2159-
// Assigns new value to specifed element of nD array given linear index
2159+
// Assigns new value to specified element of nD array given linear index
21602160
CV_IMPL void
21612161
cvSet1D( CvArr* arr, int idx, CvScalar scalar )
21622162
{
@@ -2187,7 +2187,7 @@ cvSet1D( CvArr* arr, int idx, CvScalar scalar )
21872187
}
21882188

21892189

2190-
// Assigns new value to specifed element of 2D array
2190+
// Assigns new value to specified element of 2D array
21912191
CV_IMPL void
21922192
cvSet2D( CvArr* arr, int y, int x, CvScalar scalar )
21932193
{
@@ -2216,7 +2216,7 @@ cvSet2D( CvArr* arr, int y, int x, CvScalar scalar )
22162216
}
22172217

22182218

2219-
// Assigns new value to specifed element of 3D array
2219+
// Assigns new value to specified element of 3D array
22202220
CV_IMPL void
22212221
cvSet3D( CvArr* arr, int z, int y, int x, CvScalar scalar )
22222222
{
@@ -2234,7 +2234,7 @@ cvSet3D( CvArr* arr, int z, int y, int x, CvScalar scalar )
22342234
}
22352235

22362236

2237-
// Assigns new value to specifed element of nD array
2237+
// Assigns new value to specified element of nD array
22382238
CV_IMPL void
22392239
cvSetND( CvArr* arr, const int* idx, CvScalar scalar )
22402240
{

0 commit comments

Comments
 (0)