Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

asked 2016-03-22 06:49:19 -0600

Nbb gravatar image

Normalize vector

Hello

I have column vectors stored in a matrix M. How do i normalize each vector ? I have tried

normalize(M.col(i), M.col(i)); reduce(M, sum, 0, CV_REDUCE_SUM, CV_32FC1);

But the results do not give me a 1 for every column. Help thanks