imexpand {imageUtilities} | R Documentation |
pads an *array* to 3 dimensions (i.e. sets third dimension to '1' if it's single-channel).
imexpand(x)
x |
input array |
input array exactly if length(dim(x))==3
,
otherwise the input array with dimensions dim(x),1
(i.e. 3D slice).
Other foobar: imsqueeze