generate_masks: Generate binary masks from the results of a cluster analysis

Description Usage Arguments Value

Description

This function transforms the results of a cluster analysis in a set of binary masks (or ROIs).

Usage

1
2
generate_masks(settings, cluster_list, x = NULL, y = NULL, name_of_analysis,
  path_base, return_masks = TRUE, save_masks = TRUE, type = ".tiff")

Arguments

settings

A matrix containing the analysed settings. Preferably the output from find_clusters.

cluster_list

A list with the results of the cluster analysis. Preferably the output from find_clusters.

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.

name_of_analysis

Name of the analysis (for file name of the results)

path_base

Base directory

return_masks

TRUE (default): Masks are returned as list.

save_masks

TRUE (default): Masks are saved as .RData and .tiff.

type

Type of saved images: .tiff, .jpeg, .jpg, .png, ..., everything possible in EBImage::writeImage, see ?EBImage::writeImage

Value

List of masks.


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