Boundary condition test used to index the image slice.
Slice of the input image.
Color sigma value.
Spatial sigma value.
Size of convolution kernel. Must be odd number.
Optional pre-allocated result image buffer. If not of same shape as input slice, its allocated anew.
Optional TaskPool instance used to parallelize computation.
Slice of filtered image.
Bilateral filtering implementation.
Non-linear, edge-preserving and noise-reducing smoothing filtering algorithm.