[Scilab-users] Element Wise multipliication in Scilab
nigamakashkumar
nigamakashkumar at gmail.com
Thu Jun 8 13:13:38 CEST 2017
During Image Processing, I have an extracted small matrix
Mat =
152 149 151
159 151 147
158 152 152
and a simple flipped sobel mask
Gy =
- 1. - 2. - 1.
0. 0. 0.
1. 2. 1.
To calculate the gradient in y-direction, I multiply elementwise (and would
sum later if the values were right)
Gy.*Mat, which funnily gives
104 214 105
0 0 0
158 48 152
Why aren't the first row values negative (They even appear morphed somehow).
Scilab help shows that .* may calculate the kronecker product of the two
matrices. How do I calculate the real element wise multiplication?
Kindly help.
--
View this message in context: http://mailinglists.scilab.org/Element-Wise-multipliication-in-Scilab-tp4036562.html
Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com.
More information about the users
mailing list