SN6多光谱和SAR数据融合

以全极化和RGB多光谱数据为例,采用HSV方法,对 多光谱和SAR融合流程如下:

  1. We first convert our quad-polarized 4-channel SAR data to single channel by calculating the total polarimetric scattering power for each pixel. When working with polarimetric radar, this is known as a calculating the ‘SPAN’ or creating a SPAN image.
  2. We then convert our RGB image and transform it to the HSV color space and swap the value channel with our single-channel SAR span image.
  3. Finally, we convert the [Hue, Saturation, SAR SPAN] image back to RGB color space

参考:

光学和SAR数据融合与可视化:

SpaceNet 6: Data Fusion and Colorization - In-Q-Tel

代码:

SpaceNetChallenge/SAR-RGB-DataFusion: A small codebase featuring a few elementary methods for SAR and Optical imagery data fusion (github.com)

核心融合代码:

import skimage.color as color

def fusion(rgb, sar, method='hsv'):
    # Get rgb_bands
    R = rgb[:,:,0] # red
    G = rgb[:,:,1] # green
    B = rgb[:,:,2] # blue  
    image = None
    if method == 'simple_mean':
        r = 0.5 * (0.5*R + sar)[:, :, np.newaxis]
        g = 0.5 * (0.5*G + sar)[:, :, np.newaxis]
        b = 0.5 * (0.5*B + sar)[:, :, np.newaxis]
        image = np.concatenate([r,g,b], axis=2)   
    if method == 'hsv':
        hsv = color.rgb2hsv(rgb)
        hsv[:,:,2] = sar 
        image = color.hsv2rgb(hsv)
    return image

  • 0
    点赞
  • 10
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值