-
Notifications
You must be signed in to change notification settings - Fork 1
CVCore
This class contains most of the main matrix manipulation methods. More information here.
Prototype: static CVMat absdiff(CVMat mat1, CVMat mat2)
Returns the per-element absolute difference between two mats.
Prototype: static CVMat add(CVMat mat1, CVMat mat2, Dictionary additional_parameters)
Returns the per-element sum of two arrays value by value.
- Additional parameters: mask: CVMat, dtype: Int
Prototype: static CVMat add_weighted(CVMat src1, double alpha, CVMat src2, double beta, double gamma, Dictionary additional_parameters)
Returns the per-element weighted sum of two arrays.
- Additional parameters: dtype: Int
Prototype: static CVMat bitwise_and(CVMat mat1, CVMat mat2, Dictionary additional_parameters)
Returns the per-element bit-wise conjunction of two arrays.
- Additional parameters: mask: CVMat
Prototype: static CVMat bitwise_not(CVMat mat, Dictionary additional_parameters)
Returns a mat with every bit of the input inverted.
- Additional parameters: mask: CVMat
Prototype: static CVMat bitwise_or(CVMat mat1, CVMat mat2, Dictionary additional_parameters)
Returns the per-element bit-wise disjunction of two arrays
- Additional parameters: mask: CVMat
Prototype: static CVMat bitwise_xor(CVMat mat1, CVMat mat2, Dictionary additional_parameters)
Returns the per-element bit-wise "exclusive or" operation on two arrays
- Additional parameters: mask: CVMat
Prototype: static CVMat convert_fp16(CVMat mat)
Deprecated method for matrix conversion, see CVMat.convert_to.
Prototype: static CVMat dft(CVMat src, Dictionary additional_parameters)
Returns a forward or inverse Discrete Fourier transform of a mat.
- Additional parameters: flags: Int, non_zero_rows: Int
Prototype: static CVMat exp(CVMat mat)
Returns the exponent of every element.
Prototype: static int get_optimal_dft_size(int vecsize)
Returns the optimal DFT size for a given vector size.
Prototype: static CVMat hconcat(CVMat mat1, CVMat mat2)
Returns the horizontal concatenation of both matrices.
Prototype: static CVMat log(CVMat mat)
Returns a mat with the natural logarithm of every array element.
Prototype: static CVMat max(CVMat mat1, CVMat mat2)
Calculates per-element maximum of two arrays.
Prototype: static CVMat min(CVMat mat1, CVMat mat2)
Calculates per-element minimum of two arrays
Prototype: static CVMat normalize(CVMat src, Dictionary additional_parameters)
Normalizes the norm of the mat.
- Additional parameters: alpha: Float, beta: Float, norm_type: Int, dtype: Int, mask: CVMat
Prototype: static CVMat subtract(CVMat mat1, CVMat mat2, Dictionary additional_parameters)
Returns the subtraction of two arrays value by value.
- Additional parameters: mask: CVMat, dtype: Int
Prototype: static CVMat sqrt(CVMat mat)
Returns the per-element square root of the input matrix.
Prototype: static CVMat transpose(CVMat mat)
Returns the transpose of the input matrix.
Prototype: static CVMat vconcat(CVMat mat1, CVMat mat2)
Returns the vertical concatenation of both matrices.