emgucv - Element-wise square of a matrix in EMGU CV -
i need element-wise square of matrix. in matlab find code: if a
matrix a.^2
calculates element wise square of matrix. there function in emgu cv same?
actually need standard deviation of matrix. if there function of computing standard deviation of method computing standard deviation more helpful me.
element-wise square same element-wise multiplication matrix itself. so, following code line should trick (assuming matrix
called mat
):
mat._mul(mat);
be aware though replaces original mat
. if want have saved, can do:
matrix<byte> squaredmatrix = mat.copy(); squaredmatrix._mul(mat);
Comments
Post a Comment