I am designing a High pass Digital filter. I calculated the filter coefficients using fdatool and got some negative filter values.
Now, I need to convert them into values from 0 to 255.
In case of low pass filter , I used
value = value*255/sum(value)
I have heard that same needs to be done for negative coefficients as well by taking absolute values of all the coefficients, but that seems a little odd to me.
Can anyone please tell me how to convert my filter coefficients to values ranging from 0 to 255
Thanks