Bilateral filter for images | using the fast histogram based method |
x : input image r : the radius of the bilateral filter (r = 4 corresponds to a 9x9 window) h : bandwidth parameter of the bilateral filter
the spatial distance term is currently being ignored for efficiency reasons
function [] = fast_bilateral_filter(x : cube, y : cube, r : int, h : scalar)