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

Popular posts from this blog

c# - DetailsView in ASP.Net - How to add another column on the side/add a control in each row? -

javascript - firefox memory leak -

Trying to import CSV file to a SQL Server database using asp.net and c# - can't find what I'm missing -