sroi_analysis: Function for sROI analysis

Description Usage Arguments Value

Description

This function allows to carry out an entire sROI analysis for given webcam data. Example code can be downloaded at http://bothmann.userweb.mwn.de/dissertation.html.

Usage

1
2
3
4
5
6
7
8
9
sroi_analysis(folder_results = paste0(getwd(), "/"),
  folder_data = paste0(getwd(), "/"),
  name_of_analysis = substr(as.character(Sys.time()), 1, 10),
  get_timeseries = TRUE, correlate_timeseries = TRUE,
  do_evaluation = TRUE, do_strucchange = TRUE, color = "green",
  main_camera = NULL, n_pinpricks = 1, seed = 12345,
  threshold_vec = 0.9, a_vec = seq(1, 150, by = 1), b_vec = seq(1, 100, by
  = 1), lists_files, which_images = seq_len(length(lists_files)), doy,
  doy_c = doy, which_images_background = 1, x = NULL, y = NULL)

Arguments

folder_results

Folder where the results will be saved

folder_data

Folder where the data is saved

name_of_analysis

Name of the specific analysis for a unique folder

get_timeseries

If TRUE (default), greenness time series of pinpricks are extracted

correlate_timeseries

If TRUE (default), correlation images are computed

do_evaluation

If TRUE (default), correlation images and time series are saved

do_strucchange

If TRUE (default), optimality criteria are computed and best mask is saved

color

Name of color channel to be analyzed, typically green (default)

main_camera

Main for the output plots

n_pinpricks

Number of random pinpricks

seed

Seed for the random pinpricks

threshold_vec

Vector of thresholds for the correlation images

a_vec

Possible spring doys

b_vec

Possible autumn doys (counted backwards from 31.12.)

lists_files

Vector of file names of images

which_images

Vector of indices of images to be analyzed

doy

Vector of DOYs for each image

doy_c

Vector of DOYs for each image, continouing over a change of year of more than one year is analyzed, else doy

which_images_background

Index of background image

x

Vector of x-coordinates to read in. Default NULL results in a grid of all possible values.

y

Vector of y-coordinates to read in. Default NULL results in a grid of all possible values.

Value

An entire sROI analysis is carried out in the automated version of multiple random pinpricks. All results are saved on the disc, the necessary folders are created.


phenofun documentation built on Jan. 22, 2017, 9:01 p.m.