morphIMG: Apply mathematical morphology kernel on image and save as RDS

Description Usage Arguments Value

View source: R/morphIMG.R

Description

Morph images as a preparation for subsequent analyses

Usage

1
morphIMG(imgs, morph = NULL, kern = c(3, 3, 3), type = "box", cores = 1)

Arguments

imgs

The paths of array files; i.e. output from loadIMG or findIMG functions.

morph

One of "erode", "dilate", "opening", or "closing"

kern

Numeric vector indicating range of morpinh in the x,y,z directions. Has to be odd integers.

type

Type of kernel for morphing "box" includes diagonals, "diamond" is without diagonals

cores

Integer. Number of cores to use for parallel computing.

Value

Creates arrays as RDS files and outputs the paths for these files


Russel88/RCon3D documentation built on May 24, 2018, 5:54 a.m.