extract_stats: Calculate several statistics from selected ROI

View source: R/extract_stats.R

extract_statsR Documentation

Calculate several statistics from selected ROI

Description

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.

Usage

extract_stats(tif_file, roi_file, type_file)

Arguments

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.

Value

The function returns a list with the statistics and the pixel values for each ROI.


bmjesus/hyperfish documentation built on May 30, 2022, 4:04 p.m.