imexpand {imageUtilities}R Documentation

pads an *array* to 3 dimensions (i.e. sets third dimension to '1' if it's single-channel).

Description

pads an *array* to 3 dimensions (i.e. sets third dimension to '1' if it's single-channel).

Usage

  imexpand(x)

Arguments

x

input array

Value

input array exactly if length(dim(x))==3, otherwise the input array with dimensions dim(x),1 (i.e. 3D slice).

See Also

Other foobar: imsqueeze


[Package imageUtilities version 1.0.3 Index]