Learn R Programming

nandb (version 0.2.1)

Stack2DTifs: Put individual tif files into one tif stack.

Description

Say you have saved what you would like to be one 3D tif stack as a series of 2D tif files. This helps you stack them into one file.

Usage

Stack2DTifs(file.names, out.name, mcc = parallel::detectCores())

Arguments

file.names

The names of the files to stack (in order).

out.name

The name of the output .tif file.

mcc

The number of parallel cores to use for the processing.

Examples

Run this code
# NOT RUN {
setwd(tempdir())
img <- ReadImageData(system.file('extdata', '50.tif', package = 'nandb'))
WriteIntImage(img[, , 1], '50_1.tif')
WriteIntImage(img[, , 2], '50_2.tif')
Stack2DTifs(c('50_1.tif', '50_2.tif'), '50_1_2')
file.remove(list.files())
# }

Run the code above in your browser using DataLab