在研究opencv,不是很难,但是需要换种思维来认知这个C/C++为编程函数的开源代码库,OK,我现在还是总结一些常用MATLAB的函数,随时更新,下一阶段就是opencv方面的认知了!
1.std
Standard deviation
Syntax
s = std(X) s = std(X,flag) s = std(X,flag,dim)Examples
For matrix X X = 1 5 9 7 15 22 s = std(X,0,1) s = 4.2426 7.0711 9.1924 s = std(X,0,2) s = 4.000 7.5056
2.reshape
Reshape array
Syntax
B = reshape(A,m,n) B = reshape(A,[m n]) B = reshape(A,m,n,p,...) B = reshape(A,[m n p ...]) B = reshape(A,...,[],...)Examples
Reshape a 3-by-4 matrix into a 2-by-6 matrix. A = 1 4 7 10 2 5 8 11 3 6 9 12 B = reshape(A,2,6) B = 1 3 5 7 9 11 2 4 6 8 10 12 B = reshape(A,2,[]) B = 1 3 5 7 9 11 2 4 6 8 10 12