mirror of
https://github.com/opencv/opencv.git
synced 2025-06-10 02:53:07 +08:00
add python copyto with mask (https://github.com/opencv/opencv/issues/10225)
This commit is contained in:
parent
e0c888acf7
commit
389aae59ae
@ -1346,6 +1346,17 @@ You may even get a negative value in the case of overflow.
|
|||||||
*/
|
*/
|
||||||
CV_EXPORTS_W void absdiff(InputArray src1, InputArray src2, OutputArray dst);
|
CV_EXPORTS_W void absdiff(InputArray src1, InputArray src2, OutputArray dst);
|
||||||
|
|
||||||
|
/** @brief This is an overloaded member function, provided for convenience (python)
|
||||||
|
Copies the matrix to another one.
|
||||||
|
When the operation mask is specified, if the Mat::create call shown above reallocates the matrix, the newly allocated matrix is initialized with all zeros before copying the data.
|
||||||
|
@param src source matrix.
|
||||||
|
@param dst Destination matrix. If it does not have a proper size or type before the operation, it is
|
||||||
|
reallocated.
|
||||||
|
@param mask Operation mask of the same size as \*this. Its non-zero elements indicate which matrix
|
||||||
|
elements need to be copied. The mask has to be of type CV_8U and can have 1 or multiple channels.
|
||||||
|
*/
|
||||||
|
|
||||||
|
void CV_EXPORTS_W copyTo(InputArray src, OutputArray dst, InputArray mask);
|
||||||
/** @brief Checks if array elements lie between the elements of two other arrays.
|
/** @brief Checks if array elements lie between the elements of two other arrays.
|
||||||
|
|
||||||
The function checks the range as follows:
|
The function checks the range as follows:
|
||||||
|
@ -945,6 +945,13 @@ void cv::absdiff( InputArray src1, InputArray src2, OutputArray dst )
|
|||||||
arithm_op(src1, src2, dst, noArray(), -1, getAbsDiffTab(), false, 0, OCL_OP_ABSDIFF);
|
arithm_op(src1, src2, dst, noArray(), -1, getAbsDiffTab(), false, 0, OCL_OP_ABSDIFF);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void cv::copyTo(InputArray _src, OutputArray _dst, InputArray _mask)
|
||||||
|
{
|
||||||
|
CV_INSTRUMENT_REGION();
|
||||||
|
|
||||||
|
_src.copyTo(_dst, _mask);
|
||||||
|
}
|
||||||
|
|
||||||
/****************************************************************************************\
|
/****************************************************************************************\
|
||||||
* multiply/divide *
|
* multiply/divide *
|
||||||
\****************************************************************************************/
|
\****************************************************************************************/
|
||||||
|
Loading…
Reference in New Issue
Block a user