Announcement: All noncommercial projects registered to use Earth Engine before
April 15, 2025 must
verify noncommercial eligibility to maintain Earth Engine access.
ee.Image.matrixTranspose
Stay organized with collections
Save and categorize content based on your preferences.
Transposes two dimensions of each array pixel.
Usage | Returns | Image.matrixTranspose(axis1, axis2) | Image |
Argument | Type | Details | this: input | Image | Input image. |
axis1 | Integer, default: 0 | First axis to swap. |
axis2 | Integer, default: 1 | Second axis to swap. |
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2023-10-06 UTC.
[null,null,["Last updated 2023-10-06 UTC."],[[["\u003cp\u003eThe \u003ccode\u003eImage.matrixTranspose()\u003c/code\u003e function swaps two dimensions of an image's pixels, effectively transposing it.\u003c/p\u003e\n"],["\u003cp\u003eIt takes the input image and two arguments, \u003ccode\u003eaxis1\u003c/code\u003e and \u003ccode\u003eaxis2\u003c/code\u003e, representing the dimensions to be transposed, defaulting to 0 and 1 respectively.\u003c/p\u003e\n"],["\u003cp\u003eThe function returns a new Image object with the transposed dimensions.\u003c/p\u003e\n"]]],[],null,["# ee.Image.matrixTranspose\n\nTransposes two dimensions of each array pixel.\n\n\u003cbr /\u003e\n\n| Usage | Returns |\n|------------------------------------------------|---------|\n| Image.matrixTranspose`(`*axis1* `, `*axis2*`)` | Image |\n\n| Argument | Type | Details |\n|---------------|---------------------|----------------------|\n| this: `input` | Image | Input image. |\n| `axis1` | Integer, default: 0 | First axis to swap. |\n| `axis2` | Integer, default: 1 | Second axis to swap. |"]]