Filter response debugged, improved performance by using a more efficient opencv function.