bilateral_filter.q

Summary
bilateral_filter.q
Functions
compute_bilateral_filterComputes bilateral filter coefficients
apply_bilateral_filterApplies the bilateral filter to an image

Functions

compute_bilateral_filter

Computes bilateral filter coefficients

Parameters

Labimage in LAB space
n_widthwidth of the filter window
n_heightheight of the filter window
alphadivisor for the color distance
betadivisor for the spatial distance
eucl_distuse the euclidian distance (1), or the square of the distance (0)
normalizenormalize 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)

apply_bilateral_filter

Applies the bilateral filter to an image

Parameters

bfbilateral filter coefficients
n_widthwidth of the filter window
n_heightheight of the filter window
function result:cube = apply_bilateral_filter(image:cube, bf:cube, n_width:int, n_height:int)
Close