KernelExample¶
-
MLModule
¶ genre Kernel
author MeVis Medical Solutions AG
package MeVisLab/Examples
dll MLKernelExamples
definition MLKernelExamples.def see also Convolution
,ExtendedConvolution
,Rank
,Sigma
,BitMorphology
,Morphology
,LoG
,KernelEditor
,StandardDeviation
keywords enhance
,kernel
,filter
Purpose¶
This module is an example operator how to implement a convolution filter.
It contains all options and parameters which are available from the KernelBaseOp and KernelOp classes.
Parameter Fields¶
Field Index¶
Border Handling : Enum |
Max (intervalMaxOfVoxelsForFiltering) : Double |
U : Integer |
C : Integer |
Maximum Value for Output Image : Double |
Use (useExternalKernel) : Bool |
Determine min/max from calculated pages : Bool |
Min (intervalMinOfFilteredVoxels) : Double |
Use (useIntervalOfFilteredVoxels) : Bool |
Fill Value : Double |
Min (intervalMinOfVoxelsForFiltering) : Double |
Use (useIntervalOfVoxelsForFiltering) : Bool |
Info : String |
Minimum Value for Output Image : Double |
Use min/max values for output image : Bool |
Input : String |
Normalize kernel : Bool |
X : Integer |
Kernel Output : String |
numKernelElements : Integer |
Y : Integer |
kernelElementsSum : Double |
referenceExtentMode : Enum |
Z : Integer |
Make kernel spherical : Bool |
Set : Trigger |
|
Max (intervalMaxOfFilteredVoxels) : Double |
T : Integer |
Visible Fields¶
Border Handling¶
-
name:
borderHandling
, type:
Enum
, default:
PadSrcClamp
, deprecated name:
edgeMode
¶ Defines the border handling of the kernel operation.
Values:
Title | Name | Description |
---|---|---|
No Pad | NoPad | Only those voxels are passed to the output which can be filtered correctly by the entire kernel. So the output image usually shrinks by the extents of the kernel - 1. |
Pad Src Fill | PadSrcFill | The input image is virtually expanded by so many voxels that all input image voxels can be filtered correctly with the kernel. The area added around the input image is filled with the value specified in the |
Pad Dst Fill | PadDstFill | All pixels of the output image which can be filtered correctly with the kernel without accessing voxels outside the output image are filtered with the kernel. All other voxels in the image are filled with the value specified in the |
Pad Dst Fill With Orig | PadDstFillWithOrig | All pixels of the output image which can be filtered correctly with the kernel without accessing voxels outside the output image are filtered with the kernel. All other voxels in the image are filled with their corresponding values from the input image. |
Pad Src Undefined | PadSrcUndefined | The input image is virtually expanded by so many voxels that all input image voxels can be filtered correctly with the kernel. The area added around the input image is not filled with a certain value and remains undefined. Note that this mode saves time for border filling but causes unpredictable values in the border regions of the output image. |
Pad Dst Undefined | PadDstUndefined | All pixels of the output image which can be filtered correctly with the kernel without accessing voxels outside the output image are filtered with the kernel. All other voxels in the image are left undefined. Note that this mode saves time for border filling but causes unpredictable values in the border regions of the output image. |
Pad Src Clamp | PadSrcClamp | The input image is virtually expanded by so many voxels that all input image voxels can be filtered correctly with the kernel. The contents of the area added around the input image is filled with those voxels of the input image which are nearest to the filled ones. |
Fill Value¶
-
name:
fillValue
, type:
Double
, default:
0
¶ Sets a fill value that is used for filling the border in certain modes of
Border Handling
.
X¶
-
name:
kernelX
, type:
Integer
, default:
3
, minimum:
1
¶ Sets the size of the kernel in x-direction.
Y¶
-
name:
kernelY
, type:
Integer
, default:
3
, minimum:
1
¶ Sets the size of the kernel in y-direction.
Z¶
-
name:
kernelZ
, type:
Integer
, default:
1
, minimum:
1
¶ Sets the size of the kernel in z-direction.
C¶
-
name:
kernelC
, type:
Integer
, default:
1
, minimum:
1
¶ Sets the size of the kernel in c-direction.
T¶
-
name:
kernelT
, type:
Integer
, default:
1
, minimum:
1
¶ Sets the size of the kernel in t-direction.
U¶
-
name:
kernelU
, type:
Integer
, default:
1
, minimum:
1
¶ Sets the size of the kernel in u-direction.
Make kernel spherical¶
-
name:
makeSpherical
, type:
Bool
, default:
TRUE
¶ If checked, the used kernel has an approximately spherical shape.
Otherwise, the kernel has a rectangular shape.
Normalize kernel¶
-
name:
normalize
, type:
Bool
, default:
TRUE
, deprecated name:
autoNormalize
¶ If checked, the kernel values are normalized, so they all add up to 1.
Input¶
-
name:
externalKernel
, type:
String
, deprecated name:
kernelInput
¶ Sets a kernel from another module as a string.
Use (useExternalKernel)¶
-
name:
useExternalKernel
, type:
Bool
, default:
FALSE
¶ If checked, an attached external kernel is used.
Min (intervalMinOfFilteredVoxels)¶
-
name:
intervalMinOfFilteredVoxels
, type:
Double
, default:
30
, deprecated name:
ImageIntervalMin
¶ Sets the minimum voxel value for the post-filtering interval.
Max (intervalMaxOfFilteredVoxels)¶
-
name:
intervalMaxOfFilteredVoxels
, type:
Double
, default:
50
, deprecated name:
ImageIntervalMax
¶ Sets the maximum voxel value for the post-filtering interval.
Use (useIntervalOfFilteredVoxels)¶
Min (intervalMinOfVoxelsForFiltering)¶
-
name:
intervalMinOfVoxelsForFiltering
, type:
Double
, default:
30
, deprecated name:
KernelIntervalMin
¶ Sets the minimum voxel value for the pre-filtering interval.
Max (intervalMaxOfVoxelsForFiltering)¶
-
name:
intervalMaxOfVoxelsForFiltering
, type:
Double
, default:
50
, deprecated name:
KernelIntervalMax
¶ Sets the maximum voxel value for the pre-filtering interval.
Use (useIntervalOfVoxelsForFiltering)¶
Determine min/max from calculated pages¶
-
name:
autoCalcMinMax
, type:
Bool
, default:
TRUE
¶ If checked, the minimum and the maximum values of the output image is determined by all values of the actually filtered voxels.
Set¶
-
name:
setAutoMinMax
, type:
Trigger
¶ If pressed, the determined minimum and maximum values are set to the output image.
Minimum Value for Output Image¶
-
name:
outputMin
, type:
Double
, default:
1
¶ Sets the minimum value for the output image manually.
NOTE: the actual image values MUST be within the minimum and maximum values in the image!