reflectance_color_indices: Calculate reflectance and LAB, LCH parameters using an 18...

View source: R/reflectance_color_indices.R

reflectance_color_indicesR Documentation

Calculate reflectance and LAB, LCH parameters using an 18 percent reference image

Description

This function calculates reflectance using a 18 percent reference image, calculates the corresponding Lab and LCH parameters for each pixel and then it extracts the pixel data using a shapefile with the desired ROI. It was designed specifically for Konstantina's workflow so it is unlikelly to function outside that scope.

Usage

reflectance_color_indices(
  camera_file,
  reference_file,
  roi_file,
  my_plots = TRUE
)

Arguments

camera_file

path to the camera file, cube version

reference_file

path to the 18 percent reference file

roi_file

path shapefile with the ROI file

my_plots

logical value to activate-desactivate plots. Not implemented yet

Value

The function outputs a reflectance tif file, a LAB tif file, a LCH tif file, an excel LAB file stats + pixel values, an excel LCH file stats + pixel values and it returns a R list with lab/lch statistics, the reflectance image, and the lab+lch images


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