reshape
Gives a new shape to an array without changing its data.
Parameters
- src : ImageArray
-
Specifies an ImageArray object to be reshaped.
- shape : int, Tuple[int, …]
-
Specifies the new shape for an ImageArray object. The shape should be compatible with the original shape. If an integer, then the result will be a 1-D array of that length. One shape dimension can be -1. In this case, the value is inferred from the length of the array and remaining dimensions.
- order
-
Reads the elements of the ImageArray object using this index order, and place the elements into the reshaped array using this index order. ‘C’ means to read and write the elements using C-like index order, with the last axis index changing fastest, back to the first axis index changing slowest. ‘F’ means to read and write the elements using Fortran-like index order, with the first index changing fastest, and the last index changing slowest.
Returns
- ImageArray
-
A new ImageArray object with the new shape.