Your code is missing the ‘>’ at the begging which means that each pixel is processed sequentially (like audio).
A high pass filter will produce negative values, so I would add 128 after doing it to display the result.
Your code is missing the ‘>’ at the begging which means that each pixel is processed sequentially (like audio).
A high pass filter will produce negative values, so I would add 128 after doing it to display the result.