I'm newbie with Python.
I have found this code:
array = FLAIR_array[..., np.newaxis] # FLAIR_array is a Numpy array.
FLAIR_array shape is (960, 200, 200)
and array shape is (960, 200, 200, 1)
.
np.newaxis
has added a new dimension to the array, but I don't know what value is in that new dimension (this is a question, but I think I can't ask more than one thing on the same question).
My question is: What does ...
mean in FLAIR_array[..., np.newaxis]
?