824 The Image Processing Handbook, Seventh Edition
the results. Because true median filtering, especially in a spherical region, is computationally
intensive, some implementations apply what they call a “separable” median, which applies
three 1D medians in the x-, y-, and z- directions through the central pixel. However, unlike
the Gaussian filter, the median is not actually separable; this approach produces much poorer
results than a true median, and those results differ according to the order in which the direc-
tions are processed, so this method should be avoided.
Conditional neighborhoods, for example, ones that omit voxels based on difference from the
central voxel or weighted by the direction of the gradient, are possible in 3D arrays. Ler ...