Skip to contents

Joint bilateral filter using a permutohedral lattice backend (the `grid` alias is supported and routed to the same implementation).

Usage

fast_bilateral_joint3d(
  vol,
  guide_spatial,
  sigma_s,
  sigma_r,
  range_bins = NULL,
  passes = 1L,
  mask = NULL,
  interp_guide = 1L,
  interp_mask = 0L,
  backend = c("grid", "permutohedral"),
  guides = NULL
)

Arguments

vol

3D volume array or `NeuroVol`.

guide_spatial

3D guide image (array or `NeuroVol`).

sigma_s

Spatial sigma (voxels).

sigma_r

Range sigma for guide intensity.

range_bins

Unused placeholder for grid backend compatibility.

passes

Integer number of lattice blur passes.

mask

Optional 3D mask.

interp_guide

Guide interpolation mode for resampling.

interp_mask

Mask interpolation mode for resampling.

backend

One of 'grid' or 'permutohedral'.

guides

Optional list of additional 3D guides.

Value

Smoothed 3D data, wrapped like `vol` when possible.