ee.Image.matrixToDiag
Computes a square diagonal matrix from a single column matrix.
Usage | Returns |
---|
Image.matrixToDiag() | Image |
Argument | Type | Details |
---|
this: value | Image | The image to which the operation is applied. |
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."],[[["Creates a diagonal matrix where the diagonal elements are derived from a single column matrix, essentially spreading the column values across the diagonal."],["This method is applicable to `Image` objects and returns a modified `Image` with the diagonal matrix applied."],["The input is a single column matrix (represented as an `Image` object) that is used to construct the diagonal matrix."]]],[]]