Hi guys,
Some convolution kernels I see are integer based. If my colour intensities are float based [0...1] how should I scale the convolution output.
Do I add up the kernel integers then divide each kernel entry by that sum ? That works with a basic average:
1 1 1
1 1 1
1 1 1
becomes
1.0f/9.0f ...
...
...
...but what about a Sobel that sums to zero ?
1 0 -1
2 0 -2
1 0 -1
Thanks