python gdal 重采样_用GDAL对影像重采样的一些要点

1、RasterIO只能使用最临近插值法

做影像金字塔时,开始用的GDALDataSet的RasterIO通过控制行列宽度来抽层,代码写起来很简洁,奇怪一直没见设置重采样参数的地方,急于实现功能,没有怎么深究,基本功能全都做好后发现分层质量很差。文档里边没找到资料介绍这些,查了很久在Maillist上发现RasterIO() level resampling should all be "nearest neighbour", and so

not introduce any new values.看来不换方法是不行了。

参考资源:http://lists.maptools.org/pipermail/gdal-dev/2005-May/005646.html

On 5/4/05, Sheykhet, Rostic wrote:

>Hello,

>

>I am trying to perform RasterIO on a band that references a color

table.

>When the source and destination image dimensions are different, I get

>back a band that has indexes into blank/invalid color table entries.

>I assume this is because of the decimation procedure. Is there a way

>to modify this behavior?

Rostic,

RasterIO() level resampling should all be "nearest

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

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

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值