ocv_read_annotorious | R Documentation |
Extract the areas of interests of an image
ocv_read_annotorious(data, image)
data |
an object as returned by |
image |
an ocv image object |
a list of ocv images with the extracted areas of interest
library(opencv) library(magick) data(openseadragon_areas) url <- attr(openseadragon_areas, "src") img <- ocv_read(url) areas <- ocv_read_annotorious(data = openseadragon_areas, image = img) areas[[1]] areas[[2]] img <- lapply(areas, FUN = function(x) image_read(ocv_bitmap(x))) img <- do.call(c, img) img <- image_append(img, stack = FALSE) image_resize(img, "x200")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.