mergeListToNDImage: mergeListToNDImage

View source: R/splitNDImageToList.R

mergeListToNDImageR Documentation

mergeListToNDImage

Description

This function will copy a list of d-1 images into a d-dimension target image. This function reverses the operation performed by splitNDImageToList.

Usage

mergeListToNDImage(img, imgList)

Arguments

img

input image of class antsImage, last dimension will be split

imgList

input list to be merged back into dimension d space

Value

output list filled with d-1 volumes of class antsImage

Author(s)

Pustina D, Avants B

Examples


my4Dimage <- makeImage(c(5, 5, 5, 4), rnorm(5 * 5 * 5 * 4))
my3Dlist <- splitNDImageToList(my4Dimage)
my4DimageR <- mergeListToNDImage(my4Dimage, my3Dlist)


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