前往小程序,Get更优阅读体验!
立即前往
首页
学习
活动
专区
工具
TVP
发布
社区首页 >专栏 >GEE(Google Earth Engine)——Landsat8TOA图形显示效果优化

GEE(Google Earth Engine)——Landsat8TOA图形显示效果优化

作者头像
此星光明
发布2024-02-01 20:05:45
780
发布2024-02-01 20:05:45
举报

卫星原有影像:

HSV转换后的影像:

rgbToHsv()

Transforms the image from the RGB color space to the HSV color space. Expects a 3 band image in the range [0, 1], and produces three bands: hue, saturation and value with values in the range [0, 1].

Arguments:

this:image (Image):

The image to transform.

Returns: Image

hsvToRgb()

Transforms the image from the HSV color space to the RGB color space. Expects a 3 band image in the range [0, 1], and produces three bands: red, green and blue with values in the range [0, 1].

Arguments:

this:image (Image):

The image to transform.

Returns: Image

代码:

代码语言:javascript
复制
var image = ee.Image('LANDSAT/LC08/C01/T1_TOA/LC08_044034_20140318');
Map.addLayer(
    image,
    {bands: ['B4', 'B3', 'B2'], min: 0, max: 0.25, gamma: [1.1, 1.1, 1]},
    'rgb');

//将 RGB 波段转换为 HSV 颜色空间。
var hsv = image.select(['B4', 'B3', 'B2']).rgbToHsv();

//交换全色波段并转换回 RGB。通过CAT将影像合并最后转化为RGB
var sharpened = ee.Image.cat([
  hsv.select('hue'), hsv.select('saturation'), image.select('B8')
]).hsvToRgb();


Map.setCenter(-122.44829, 37.76664, 13);
Map.addLayer(sharpened,
             {min: 0, max: 0.25, gamma: [1.3, 1.3, 1.3]},
             'pan-sharpened');
本文参与?腾讯云自媒体分享计划,分享自作者个人站点/博客。
原始发表:2024-02-01,如有侵权请联系 cloudcommunity@tencent.com 删除

本文分享自 作者个人站点/博客?前往查看

如有侵权,请联系 cloudcommunity@tencent.com 删除。

本文参与?腾讯云自媒体分享计划? ,欢迎热爱写作的你一起参与!

评论
登录后参与评论
0 条评论
热度
最新
推荐阅读
目录
  • Arguments:
  • Returns: Image
  • Arguments:
  • Returns: Image
领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档
http://www.vxiaotou.com