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

View source: R/morphIMG.R

morphIMGR Documentation

Apply mathematical morphology kernel on image and save as RDS

Description

Morph images as a preparation for subsequent analyses

Usage

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 Dec. 14, 2022, 11:06 p.m.