For mean filtering, an 8-connected structuring element is used. Edges are handled in the following manner: At the first and last time-points, 3D (xyz) processing is used. At the first and last slices of each time-point, 3D (xyt) processing is used. At the first and last slices of the first and last time-points, 2D (xy) processing is used.
For grayscale inversion, each hypervoxel of the output image is set to the grayscale value 255 minus the input hypervoxel's grayscale value.
method = mean``Method of 4D filtering'' can be set to either ``mean'' or ``grayscale inversion.'' The filenames of the 4D input and output images should be entered in the appropriate slots.
target_img = 4D_image_in
image_out = 4D_image_out