Melanie - 1 year ago 230

Python Question

I have an image array in RGB space and want to add the alpha channel to be all zeros. Specifically, I have a

`numpy`

Answer Source

You could use one of the stack functions (stack/hstack/vstack/dstack/concatenate) to join multiple arrays together.

```
numpy.dstack( ( your_input_array, numpy.zeros((25, 54)) ) )
```