美文网首页GEE案例
GEEHSV图像融合

GEEHSV图像融合

作者: 赤豆冰棍 | 来源:发表于2019-01-04 00:55 被阅读0次

HSV图像融合

主要功能

对LC8影像,进行HSV图像融合

代码

// HSV-based Pan-Sharpening.

// Grab a sample L8 image and pull out the RGB and pan bands.
var image = ee.Image(ee.ImageCollection('LANDSAT/LC08/C01/T1_TOA')
  .filterDate('2017-01-01', '2017-12-31')
  .filterBounds(ee.Geometry.Point(-122.0808, 37.3947))
  .sort('CLOUD_COVER')
  .first());

var rgb = image.select('B4', 'B3', 'B2');
var pan = image.select('B8');

// Convert to HSV, swap in the pan band, and convert back to RGB.
var huesat = rgb.rgbToHsv().select('hue', 'saturation');
var upres = ee.Image.cat(huesat, pan).hsvToRgb();

// There are many fine places to look; here is one.  Comment
// this out if you want to twiddle knobs while panning around.
Map.setCenter(-122.0808, 37.3947, 14);

// Display before and after layers using the same vis parameters.
Map.addLayer(rgb, {max: 0.3}, 'Original');
Map.addLayer(upres, {max: 0.3}, 'Pansharpened');

步骤分析

  1. 创建ee对象,获取LC08数据,筛选获取时间,包含的坐标点,按照云量排序,获得云量最少的一景影像
  2. 选择RGB三个波段(432),选择全色波段8
  3. 色彩空间转换,rgb到hsv空间
  4. 使用全色波段替换掉h分量
  5. 设置地图中心,缩放等级
  6. 添加图像融合图层
  7. 添加原始图像

主要方法

  1. ee.Image.rgbToHsv()
    Transforms the image from the RGB color space to the HSV color space. Produces three bands: hue, saturation and value, all floating point values in the range [0, 1].
    Arguments:this:image (Image):The image to transform.
    Returns: Image

将输入影像从RGB转换到HSV颜色空间。生成三个波段,h,s,v浮点型[0,1]区间内。

  1. ee.Image.cat()
    Concatenate the given images together into a single image.
    Returns the combined image.
    Arguments:var_args (VarArgs<Image>):The images to be combined.
    Returns: Image

组合输入的影像为一个影像。返回组合数据。

  1. ee.Image.hsvToRgb()
    Transforms the image from the HSV color space to the RGB color space. Produces three bands: red, green and blue, all floating point values in the range [0, 1].
    Arguments:this:image (Image):The image to transform.
    Returns: Image

将输入影像从HSV转换到RGB颜色空间,生成三个波段,RGB,浮点型[0,1]区间内。

相关文章

  • GEEHSV图像融合

    HSV图像融合 主要功能 对LC8影像,进行HSV图像融合 代码 步骤分析 创建ee对象,获取LC08数据,筛选获...

  • 图像加载以及融合

    图像加载函数 图像的线性融合

  • 泊松融合

    图像融合,就是把不同的图像的不同法人部分放在一起形成一张新的图像。融合图看起来越自然,融合算法就越好。 引言 图像...

  • 并行计算在图像融合中的应用概述

    摘要: 本文根据并行计算在图像融合上的应用简单概述了一些国内的基于并行计算的图像融合算法。在概述之前相对图像融合和...

  • 通道分离融合

    融合时类型要一致,所以读取图像时使用灰度图像。

  • #ENVI IDL#ENVI系列之二 :遥感影像数据:图像融合Ⅰ

    图像融合 图像融合是将低空间分辨率的多光谱图像或搞光谱数据与高空间分辨率的单波段图像重采样生成一幅高分辨率多光...

  • 2017.9.9

    清华实验室情况: ·高光谱图像超分、数据融合 ·目标检测与识别 ·图像修复与重构 ·图像理解与分割 ·图像信息表征...

  • ROI和图像融合

    【OpenCV入门教程之四】 ROI区域图像叠加&初级图像混合 全剖析 ROI: region of intere...

  • 38. 图像融合

    opencv的add()和addWeighted()区别在于前者只能叠加,后者可以调节权重 add()法: 效果如...

  • 【GIS】图像合并/融合

    定义 图像融合(Image Fusion)是指将多源信道所采集到的关于同一目标的图像数据经过图像处理和计算机技术等...

网友评论

    本文标题:GEEHSV图像融合

    本文链接:https://www.haomeiwen.com/subject/eehcrqtx.html