MountDoom: A crude algorithm to remove boundary voxels and reduce the...

Description Usage Arguments Details Value Author(s) Examples

View source: R/auxiliary.r

Description

It takes an image arrary; removes boundary voxels within certain numbers of voxels.

Usage

1
MountDoom(img, minval=0, thickness=2)

Arguments

img

An image presented as a 3D array.

thickness

The "thickness" of boundary, measured in number of voxels, to be removed.

minval

Any voxels with value less or equal to minval will be considered as the initial background.

Details

Some text to be written.

Value

A mask file (0=background; 1=foreground) that can be used to remove boundary points.

Author(s)

Xing Qiu

Examples

1
2
3
4
5
6
7
mask1 <- MountDoom(img1)

## we can use multiplication to get the trimmed image
img1b <- mask1*img1

## A more aggressive boundary removal
mask1b <- MountDoom(img1, thickness=3)

ygu427/iSPREADR documentation built on May 20, 2019, 4:37 p.m.