genre | Kernel |
authors | Wolf Spindler, Sven Hansen |
package | MeVisLab/Standard |
dll | MLKernel |
definition | MLKernel.def |
see also | Convolution, ExtendedConvolution, Morphology, KernelExample, KernelEditor, LoG |
keywords | local, minimum, maximum, median, index, edge, preserving, enhance, kernel, input, filter, average, gauss, interval, sphere, spherical, structure, element |
The module Rank implements the rank based kernel filters Min, Max, Median, Rank and Index.
Optionally a threshold interval can be used to select a subset of voxels of the input image to which the filtering is applied. Another threshold interval can be used to limit the set of voxels under a kernel used to produce a filtered voxel. By using these intervals filtering can be applied selectively to regions in the image. Also the influence of certain objects to the filtering itself can be avoided by excluding the corresponding voxels from the kernel.
Border Handling: Enum | KernelY: Integer | referenceExtentMode: Enum |
External Kernel: String | KernelZ: Integer | Use (filterMode): Enum |
Fill Value: Double | Make kernel spherical: Bool | Use (useIntervalOfFilteredVoxels): Bool |
Info: String | Max (intervalMaxOfFilteredVoxels): Double | Use (useIntervalOfVoxelsForFiltering): Bool |
KernelC: Integer | Max (intervalMaxOfVoxelsForFiltering): Double | Use (useExternalKernel): Bool |
KernelT: Integer | Min (intervalMinOfFilteredVoxels): Double | useRank: Bool |
KernelU: Integer | Min (intervalMinOfVoxelsForFiltering): Double | |
KernelX: Integer | Rank: Integer |
Defines the border handling mode.
See MLGuide/BorderHandling for details.
Values:
Title | Name |
---|---|
No Pad | NoPad |
Pad Src Fill | PadSrcFill |
Pad Dst Fill | PadDstFill |
Pad Dst Fill With Orig | PadDstFillWithOrig |
Pad Src Undefined | PadSrcUndefined |
Pad Dst Undefined | PadDstUndefined |
Pad Src Clamp | PadSrcClamp |
Sets the fill value for certain Border Handling modes.
Defines the filter mode of this module.
Values:
Title | Name | Description |
---|---|---|
Id | Id | Copies the input image. |
Rank | Rank | Sorts upwards all input voxels under kernel elements and writes that one to the ouput which is specified in the Rank field. If the value in the Rank field is greater than the number of elements in the sorted list than the highest value of the list is used. |
Min | Min | Writes the minimum of all input voxels under kernel elements to the output. |
Median | Median | Sorts all input voxels under kernel elements in an ascending manner and writes the middle one to the output image. |
Max | Max | Writes the maximum of all input voxels under kernel elements to the output. |
Index | Index | Sorts all input voxels under kernel elements in an ascending manner and writes the index of the position of the current voxel to the output. In case that multiple voxels under the kernel have the same value as the center one the rank field is used as a relative percentage parameter to decide which of the indices belonging to the same value will be written. Therefore the formula: index = floor(0.5 + minIdx + rank / 100.0 * (maxIdx - minIdx)) is used. E.g. if there are 10 voxels with the same value as the center voxel under a 27 neigborhood kernel (including the center) and the first / last index is 12 resp. 21 then if rank = 0 the output is 12, if rank = 100 the output is 21 and if rank = 20 the output is 14. This mode with appropriate use of the Rank as a precentage can be useful in combination with an interval thresholding to find the equivalent of local minima or maxima in a quantized image. |
Sets the rank value used in the Rank and in the Index filter.
Sets the x-extent of the kernel.
Sets the y-extent of the kernel.
Sets the z-extent of the kernel.
Sets the c-extent of the kernel.
Sets the t-extent of the kernel.
Sets the u-extent of the kernel.
If checked, the used kernel is a spherical kernel, not a rectangular one.
Sets the minimum value threshold for outputting a subset of voxel.
Sets the maximum value threshold for outputting a subset of voxel.
If checked, the module outputs only on a subset of voxels defined by a value range.
Sets the minimum value threshold for operating on a subset of voxel.
Sets the maximum value threshold for operating on a subset of voxel.
If checked, the module operates only on a subset of voxels defined by a value range.
Sets an external kernel as a string.
Use the module KernelEditor for editing the kernel or set the kernel by scripting.
If checked, the optionally attached External Kernel is used.