numpy.ma.dstack()

numpy.ma.dstack

numpy.ma.dstack(tup) = <numpy.ma.extras._fromnxfunction_seq instance at 0x52d1dd4c>

Stack arrays in sequence depth wise (along third axis).

Takes a sequence of arrays and stack them along the third axis to make a single array. Rebuilds arrays divided by dsplit. This is a simple way to stack 2D arrays (images) into a single 3D array for processing.

This function continues to be supported for backward compatibility, but you should prefer np.concatenate or np.stack. The np.stack function was added in NumPy 1.10.

Parameters:

tup : sequence of arrays

Arrays to stack. A