fn dilate_grayscale_optimized(
data: &[f64],
nx: usize,
ny: usize,
nz: usize,
kernel: &SphereKernel,
) -> Vec<f64>Expand description
Optimized grayscale dilation with spherical structuring element Uses pre-computed linear offsets and separates interior from boundary processing