[[["易于理解","easyToUnderstand","thumb-up"],["解决了我的问题","solvedMyProblem","thumb-up"],["其他","otherUp","thumb-up"]],[["没有我需要的信息","missingTheInformationINeed","thumb-down"],["太复杂/步骤太多","tooComplicatedTooManySteps","thumb-down"],["内容需要更新","outOfDate","thumb-down"],["翻译问题","translationIssue","thumb-down"],["示例/代码问题","samplesCodeIssue","thumb-down"],["其他","otherDown","thumb-down"]],["最后更新时间 (UTC):2025-08-04。"],[[["The `image.gradient()` function in Google Earth Engine calculates the gradient of each band in an image, yielding X and Y direction components."],["By combining the X and Y gradient components, you can derive both the gradient magnitude and direction."],["The gradient magnitude represents the rate of change in pixel values, while the direction indicates the orientation of this change."],["Visualizing the gradient can highlight areas of rapid change in the image, such as edges and textures."],["This functionality is demonstrated using Landsat 8 panchromatic data, showcasing the gradient over the San Francisco Bay area."]]],["The `image.gradient()` function computes the gradient of each image band, outputting X and Y-direction gradients. The example loads a Landsat 8 panchromatic band image, calculates the X and Y gradients, then determines the gradient's magnitude by combining the squared X and Y values and the gradient's direction using `atan2` function. Finally, it displays the gradient and its direction, centered on San Francisco. The image gradient magnitude is then illustrated.\n"]]