View source: R/template_matching.R
findCenter | R Documentation |
The center of a binary mask is determined.
findCenter(M)
M |
is a binary mask (multidimensional array of logical values). |
This method most likely only works with convex three-dimensional shapes (e.g., a hyper-rectangle). Further testing is required to know the limits of the current implementation.
A vector of values the same length as the input array.
Brandon Whitcher bwhitcher@gmail.com
fastTemplateMatching
M <- array(FALSE, rep(10,3)) M[6:10,6:10,6:10] <- TRUE Mc <- findCenter(M) print(Mc)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.