MVE: Bilateral filter refactor