img2ps | R Documentation |
Read an image into a point set. The points are formed by extracting the coordinates of voxel values strictly above the given cut-off (default 0).
img2ps(img = NULL, bkg = 0, crop.size = NULL)
img |
either a 2d or 3d array or a path to a file containing a 2d or 3d image. |
bkg |
Extract points for values strictly above this (default = 0). |
crop.size |
vector (of length 2 or 3) containing the desired reduced size of the images along each dimension, e.g. c(30,30,30). |
a point set as matrix with columns x,y[,z]
img.file <- system.file("test_data/img", "alien1_3d.tif", package = "LOMAR", mustWork = TRUE) point_set <- img2ps(img = img.file, bkg = 0)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.