I am trying to write this function that creates kernels for kernel convolution.
And I\'m converting the result from range -1,1 to range 0,1