KernelEditor¶
-
MLModule
¶ genre Kernel
author MeVis Medical Solutions AG
package MeVisLab/Standard
dll MLKernel
definition MLKernel.def see also Convolution
,ExtendedConvolution
,Rank
,Morphology
keywords enhance
,sphere
,mirror
,spherical
,extents
,normalize
,input
Purpose¶
The module KernelEditor
implements an editor for 6D kernels.
Operations on the kernel like textual editing, element normalization, gauss settings, undo/redo, size changes and arithmetic operations are supported.
Usage¶
The typical way to use the edited kernel in other modules is to connect the text field with the kernel input fields of other operators.
The textual input of the kernel shows rows of kernel elements. A typical kernel string look like
(*,0,0,0,0,0): , , 0.038462, ,
(*,1,0,0,0,0): , 0.038462, 0.038462, 0.038462,
(*,2,0,0,0,0): 0.038462, 0.038462, 0.038462, 0.038462, 0.038462
(*,3,0,0,0,0): , 0.038462, 0.038462, 0.038462,
(*,4,0,0,0,0): , , 0.038462, ,
(*,0,1,0,0,0): , , 0.038462, ,
(*,1,1,0,0,0): , 0.038462, 0.038462, 0.038462,
(*,2,1,0,0,0): 0.038462, 0.038462, 0.038462, 0.038462, 0.038462
(*,3,1,0,0,0): , 0.038462, 0.038462, 0.038462,
(*,4,1,0,0,0): , , 0.038462, ,
This example shows a 5x5x2 kernel with extents 1 in c, t and u dimension.
All rows contain their start coordinates in the kernel where the x coordinate is an asterisk since it represents all x coordinates in the row.
Details¶
- Not all kernel elements need to be specified. Empty fields separated by commas do not become part of the kernel.
- Kernel extents are automatically adapted to the extent given by really defined kernel elements. So it is not possible to create an empty kernel of size 3x3x1x1x1x1 in which only one voxel is defined. Extents will be set automatically to 1x1x1x1x1x1 in this case.
For large kernels it might be useful to specify single elements like the following example
(3,4,1,0,0,0):17
This sets the kernel element at position (3,4,1,0,0,0) to value 17.
Parameter Fields¶
Field Index¶
All : Trigger |
Kernel : String |
Sphere : Trigger |
Apply : Trigger |
KernelC : Integer |
Sqrt(K) : Trigger |
C : Trigger |
KernelT : Integer |
Status : String |
Element Sum : Double |
KernelU : Integer |
T : Trigger |
Field Width : Integer |
KernelX : Integer |
U : Trigger |
FillGaps : Trigger |
KernelY : Integer |
Undo : Trigger |
Gauss : Trigger |
KernelZ : Integer |
V-K : Trigger |
K*V : Trigger |
Log v(K) : Trigger |
V/K : Trigger |
K+V : Trigger |
Norm : Trigger |
Value v= : Double |
K-V : Trigger |
Num Elements : Integer |
X : Trigger |
K/V : Trigger |
Precision : Integer |
Y : Trigger |
K^2 : Trigger |
Redo : Trigger |
Z : Trigger |
K^V : Trigger |
SetValues : Trigger |
Visible Fields¶
Field Width¶
-
name:
fieldWidth
, type:
Integer
, default:
10
, minimum:
1
¶ Sets the minimum number of characters used to show a kernel element in the text field.
It can be used to adapt the textual appearance of the kernel to the length of the kernel element numbers.
Precision¶
-
name:
precision
, type:
Integer
, default:
6
, minimum:
1
, maximum:
64
¶ Sets the minimum number of digits after the comma used to show a kernel element in the text field.
It can be adjusted to adapt the textual appearance of the kernel and the precision of the kernel element
Value v=¶
Apply¶
SetValues¶
FillGaps¶
K+V¶
K-V¶
K*V¶
K/V¶
V/K¶
V-K¶
K^V¶
Log v(K)¶
Gauss¶
-
name:
gauss
, type:
Trigger
¶ If pressed, the kernel elements are set to form a normalized Gaussian kernel.
Norm¶
-
name:
normalize
, type:
Trigger
¶ If pressed, the kernel elements are being normalized.
This means that the sum of all elements result to 1.
All¶
-
name:
mirror
, type:
Trigger
¶ If pressed, all kernel elements are being mirrored in a point symmetric manner in 6D.
X¶
-
name:
mirrorX
, type:
Trigger
¶ If pressed, all kernel elements are being mirrored in a point symmetric manner in the x-dimension.
Y¶
-
name:
mirrorY
, type:
Trigger
¶ If pressed, all kernel elements are being mirrored in a point symmetric manner in the y-dimension.
Z¶
-
name:
mirrorZ
, type:
Trigger
¶ If pressed, all kernel elements are being mirrored in a point symmetric manner in the y-dimension.
C¶
-
name:
mirrorC
, type:
Trigger
¶ If pressed, all kernel elements are being mirrored in a point symmetric manner in the c-dimension.
T¶
-
name:
mirrorT
, type:
Trigger
¶ If pressed, all kernel elements are being mirrored in a point symmetric manner in the t-dimension.
U¶
-
name:
mirrorU
, type:
Trigger
¶ If pressed, all kernel elements are being mirrored in a point symmetric manner in the u-dimension.