custom adaptive filtering using trackbars