bilateral_filter

bilateral_filter(vol, mask=None, spatial_sigma=2, intensity_sigma=1, window=1)

Apply bilateral filter to a volumetric image.

This function smooths a volumetric image using a bilateral filter. The bilateral filter considers both spatial closeness and intensity similarity for smoothing.

Parameters

Name Type Description Default
vol NeuroVol The image volume to be smoothed required
mask LogicalNeuroVol Image mask defining the region where filtering is applied. If not provided, the entire volume is considered. None
spatial_sigma float Standard deviation of the spatial Gaussian kernel (default is 2) 2
intensity_sigma float Standard deviation of the intensity Gaussian kernel (default is 1) 1
window int Number of voxels around the center voxel to include on each side. For example, window=1 for a 3x3x3 kernel (default is 1) 1

Returns

Name Type Description
DenseNeuroVol The smoothed image
Back to top