iterations = 1The function uses a cubic operator for 3-D processing and square operator in the x-y plane for 2-D (size determined by ``operator_size''). A number of sectors, shaped like a spotlight beam (actually a circular paraboloid), are defined within the operator. The more sectors one uses, the better the filter works (as set by ``number_of_sectors''). The shape of the beam is determined by ``constant'' - values < 1 give a narrow beam, > 1 gives a wide beam.
number_of_sectors = 3D:7;2D:5
function = mean
max_variance = 999
operator_size = 5
dimension = 2-D
threshold = 0
constant = 1100
For a voxel of interest, the filter finds the sector whose voxels have the lowest grayscale variance. This sector is used for updating the voxel of interest. If no sector about a voxel of interest has a variance smaller than the value set by ``max_variance'', then the voxel of interest is not changed - this condition occurs in areas a wildly varying grayscale activity (near edges). (Note that the variance can be > 255 for 8-bit data.
The ``function'' parameter, which toggles, determines what is computed. The value ``mean'' acts as a filter. The value ``variance'' outputs the grayscale variance of the sector having the smallest grayscale variance - this setting acts very much like a em directionally-sensitive edge detector.
The setting ``max'' also acts as a filter; for a voxel of interest whose lowest-variance sector has a mean grayscale value > than ``threshold'', use the brightest value in this sector as the new value for the voxel of interest. Otherwise, use the mean value. This is useful for sharpening up bright regions and really separating such regions from the background.