Following up on #608, I took the liberty of reducing some code duplication in the horizontal_filter and vertical_filter functions.
Do note that this branches off #608 itself and therefore looks bigger than it actually is. The actual change is the introduction of the clamp_and_reset function. This comparison gives a better idea.
Following up on #608, I took the liberty of reducing some code duplication in the
horizontal_filter
andvertical_filter
functions.Do note that this branches off #608 itself and therefore looks bigger than it actually is. The actual change is the introduction of the
clamp_and_reset
function. This comparison gives a better idea.