View source: R/extract_stats.R
extract_stats | R Documentation |
This function calculates statistics from six ROI stored in a shapefile. It was designed for Konstantina's workflow and it is unlikely to work in another context. The ROI need to be called D1, D2, V1, V2, eye, gills.
extract_stats(tif_file, roi_file, type_file)
tif_file |
path to tif file with the parameters to extract |
roi_file |
path shapefile with the ROI file |
type_file |
parameter to setup if the file is LAB or LCH. |
The function returns a list with the statistics and the pixel values for each ROI.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.