mirror of
https://github.com/opencv/opencv.git
synced 2026-07-31 00:03:03 +04:00
Merge branch '2.4'
This commit is contained in:
@@ -2064,10 +2064,11 @@ SparseMat::SparseMat
|
||||
Various SparseMat constructors.
|
||||
|
||||
.. ocv:function:: SparseMat::SparseMat()
|
||||
.. ocv:function:: SparseMat::SparseMat(int dims, const int* _sizes, int _type)
|
||||
.. ocv:function:: SparseMat::SparseMat(const SparseMat& m)
|
||||
.. ocv:function:: SparseMat::SparseMat(const Mat& m, bool try1d=false)
|
||||
.. ocv:function:: SparseMat::SparseMat(const CvSparseMat* m)
|
||||
.. ocv:function:: SparseMat::SparseMat( int dims, const int* _sizes, int _type )
|
||||
.. ocv:function:: SparseMat::SparseMat( const SparseMat& m )
|
||||
.. ocv:function:: SparseMat::SparseMat( const Mat& m )
|
||||
.. ocv:function:: SparseMat::SparseMat( const CvSparseMat* m )
|
||||
|
||||
|
||||
:param m: Source matrix for copy constructor. If m is dense matrix (ocv:class:`Mat`) then it will be converted to sparse representation.
|
||||
:param dims: Array dimensionality.
|
||||
@@ -2081,12 +2082,12 @@ SparseMat object destructor.
|
||||
|
||||
.. ocv:function:: SparseMat::~SparseMat()
|
||||
|
||||
SparseMat::operator =
|
||||
---------------------
|
||||
SparseMat::operator=
|
||||
--------------------
|
||||
Provides sparse matrix assignment operators.
|
||||
|
||||
.. ocv:function:: SparseMat& SparseMat::operator=(const SparseMat& m)
|
||||
.. ocv:function:: SparseMat& SparseMat::operator=(const Mat& m)
|
||||
.. ocv:function:: SparseMat& SparseMat::operator = (const SparseMat& m)
|
||||
.. ocv:function:: SparseMat& SparseMat::operator = (const Mat& m)
|
||||
|
||||
The last variant is equivalent to the corresponding constructor with try1d=false.
|
||||
|
||||
|
||||
@@ -444,9 +444,9 @@ If ``threads == 0``, OpenCV will disable threading optimizations and run all it'
|
||||
functions sequentially. Passing ``threads < 0`` will reset threads number to system default.
|
||||
This function must be called outside of parallel region.
|
||||
|
||||
.. ocv:function:: void setNumThreads(int threads)
|
||||
.. ocv:function:: void setNumThreads(int nthreads)
|
||||
|
||||
:param threads: Number of threads used by OpenCV.
|
||||
:param nthreads: Number of threads used by OpenCV.
|
||||
|
||||
OpenCV will try to run it's functions with specified threads number, but
|
||||
some behaviour differs from framework:
|
||||
|
||||
@@ -3549,7 +3549,7 @@ enum { HASH_SIZE0 = 8 };
|
||||
static inline void copyElem(const uchar* from, uchar* to, size_t elemSize)
|
||||
{
|
||||
size_t i;
|
||||
for( i = 0; (int)i <= (int)(elemSize - sizeof(int)); i += sizeof(int) )
|
||||
for( i = 0; i + sizeof(int) <= elemSize; i += sizeof(int) )
|
||||
*(int*)(to + i) = *(const int*)(from + i);
|
||||
for( ; i < elemSize; i++ )
|
||||
to[i] = from[i];
|
||||
@@ -3558,7 +3558,7 @@ static inline void copyElem(const uchar* from, uchar* to, size_t elemSize)
|
||||
static inline bool isZeroElem(const uchar* data, size_t elemSize)
|
||||
{
|
||||
size_t i;
|
||||
for( i = 0; i <= elemSize - sizeof(int); i += sizeof(int) )
|
||||
for( i = 0; i + sizeof(int) <= elemSize; i += sizeof(int) )
|
||||
if( *(int*)(data + i) != 0 )
|
||||
return false;
|
||||
for( ; i < elemSize; i++ )
|
||||
|
||||
Reference in New Issue
Block a user