#' Label cluster in image.
#'
#' @import SimpleITK
#' @import magrittr
#' @export
#'
label_cluster = function(arr) {
arr %>%
as.image %>%
ScalarConnectedComponent %>%
RelabelComponent %>%
as.array
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.