Description Usage Arguments Details Value Examples
Return a filter corresponding to the specified name.
1 | initFilter(filter, method)
|
filter |
the filter to be initialized. character. REQUIRED. |
method |
the name of the function that called the initializer. character. |
ARGUMENTS :
filter refers to classical filters that will be constructed by the function:
The first two characters refer to the dimension of the filter : "2D" or "3D".
The third character must be "_".
The fourth character refers to the type of filter among : "M", "G", "S" or "I" :
"M" : median filter (by default a weight of 1 is attributed to each site)
"G" : gaussian filter (sites are weight with a gaussian kernel)
"S" : sobel filter (gradient in the i, j or k direction)
"I" : influence filter (sites with distance to the central site inferior or equal to sqrt(p) have weight 1, otherwise 0)
The last one or two characters indicates the size p of the filter except for the sobel filter where it indicates the direction of the gradient ("x", "y" or "z")
A list were :
[[filter]] : contains the filter. matrix of dimension p*p or array of dimension p*p*p.
[[filter_split]] : contains the decomposition of the filter name. character vector.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 | initFilter("2D_G3", method = "calcFilter")$filter
initFilter("2D_G5", method = "calcFilter")$filter
initFilter("3D_G3", method = "calcFilter")$filter
initFilter("2D_M9", method = "calcFilter")$filter
initFilter("3D_M3", method = "calcFilter")$filter
initFilter("2D_Sx", method = "calcFilter")$filter
initFilter("2D_Sy", method = "calcFilter")$filter
initFilter("3D_Sx", method = "calcFilter")$filter
initFilter("3D_Sz", method = "calcFilter")$filter
initFilter("2D_I3", method = "calcFilter")$filter
initFilter("2D_I5", method = "calcFilter")$filter
initFilter("2D_I7", method = "calcFilter")$filter
initFilter("2D_I9", method = "calcFilter")$filter
initFilter("3D_I5", method = "calcFilter")$filter
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.