invertStack: Invert image stack

View source: R/invertStack.R

invertStackR Documentation

Invert image stack

Description

Inverts all the pixel values in an image stack, creating a negative of the images.

Usage

invertStack(Stack)

Arguments

Stack

an image stack object

Value

An array of the same dimensions as Stack with inverted pixel values.

Author(s)

Alessio Veneziano

Examples

#Invert pixel values of binary volume and plot 2D image
data(exampleStack)
invStack<-invertStack(exampleStack)
image(exampleStack[,,20])
image(invStack[,,20])


AlessioVeneziano/IndianaBones documentation built on Dec. 2, 2022, 7:35 a.m.