mergeChannels: merge images into a multiChannel antsImage

View source: R/mergeChannels.R

mergeChannelsR Documentation

merge images into a multiChannel antsImage

Description

merge images into a multiChannel antsImage

Usage

mergeChannels(imageList)

Arguments

imageList

a list of antsImage objects to merge

Value

A multiChannel antsImage object

Author(s)

Duda, JT

Examples

dims <- c(30, 30)
n <- prod(dims)
r <- floor(seq(n) / (n) * 255)
dim(r) <- dims
arr <- r
r <- as.antsImage(r)
g <- r * 0
b <- r * 0
rgbImage <- mergeChannels(list(r, g, b))
testthat::expect_error(mergeChannels(list(arr, arr)))


stnava/ANTsR documentation built on April 16, 2024, 12:17 a.m.