Computes bilateral filter coefficients
Parameters
Lab | image in LAB space |
n_width | width of the filter window |
n_height | height of the filter window |
alpha | divisor for the color distance |
beta | divisor for the spatial distance |
eucl_dist | use the euclidian distance (1), or the square of the distance (0) |
normalize | normalize the bilateral filter coefficients over each neighbourhood (1) |
function bf:cube = compute_bilateral_filter(Lab:cube'safe, n_width:int, n_height:int, alpha:scalar, beta:scalar, eucl_dist:scalar, normalize:scalar)