Description Usage Arguments Details Value Examples
Return the neighbourhood configuration corresponding to the specified name.
1 | initNeighborhood(Neighborhood, method)
|
Neighborhood |
the name of neighbourhood configuration. |
method |
the name of the function that called the initializer. character. |
ARGUMENTS :
Neighborhood
refers to classical neighbourhood configurations :
The first two characters refer to the dimension d of the filter : "2D"
or "3D"
.
The third character must be "_"
.
The fourth character refers to the type of filter and must be "N"
.
The last one or two characters indicates the number of neighbors (denoted n
) in each neighbourhood.
A n*d matrix with in line the coordinates of the neighbors relative to the current observation.
1 2 3 4 5 6 7 8 9 | # 2D neighbourhood
initNeighborhood("2D_N4", method = "calcFilter") # rock neighbourhood
initNeighborhood("2D_N8", method = "calcFilter") # queen neighbourhood
# 3D neighbourhood
initNeighborhood("3D_N6", method= "calcFilter")
initNeighborhood("3D_N10" ,method = "calcFilter")
initNeighborhood("3D_N18", method = "calcFilter")
initNeighborhood("3D_N26", method = "calcFilter")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.