merge

Merge multiple slices into one.

By input of multiple Slice!(kind, N, T*) objects, produces one Slice!(kind, [N+1], T*) object, where length of last dimension is number of input slices. Values of input slices' elements are copied to resulting slice, where [..., i] element of j-th input slice is copied to [..., i, j] element of output slice.

e.g. If three single channel images (Slice!(kind, [2], Iterator)) are merged, output will be a three channel image (Slice!(kind, [3], Iterator)).

pure
merge
(
Slices...
)
(
Slices slices
)
if (
Slices.length > 0 &&
isSlice!(Slices[0])
&&
allSameType!Slices
)

Parameters

slices
Type: Slices

Input slices. All must by Slice object with same input template parameters.

Return Value

Type: auto

For input of n Slice!(Contiguous, N, T*) objects, outputs Slice!(kind, [N+1], T*) object, where last dimension size is n.

Meta