请教:图像降采样方法

遥感服务 2016-09-11 05:57:47
When resizing data in ENVI, using the Resize Data tool or the RESIZE_DOIT routine, different resampling methods are proposed. When the resize factor is less than 1, the 2 resampling methods are Nearest Neighbor and Pixel Aggregate.
The definition of the Pixel Aggregate method is the following: it averages all of the pixel values that contribute to the output pixel. This Help Article shows how the Pixel Aggregate method is working to define the output image values, based on a data sample.
This article presents an example based on input image of 6*6 pixels, composed of 36 values going from 0 to 35:



This image will be resized to a 4*4 pixel image, using the pixel aggregate resampling method. The output image will be as follows:


In order to understand how each output value is computed we will overlay the output image (in red) onto the input one (in blue). This will illustrate the contribution of the each input pixel in the output pixels. In order to overlay the output image onto the original one the ratio between the input and output size of the image (in pixel) is computed. In this example this ratio is equal to 6/4=1.5 for both columns and lines so each output pixel will cover 1.5 input pixels (in lines and columns):


For example we will consider the following output pixel: (2,1). The contribution of the input pixels to this output one is written below:
100% of the input pixel (3,2) with a value of 15
50% of the input pixel (4,2) with a value of 16
50% of the input pixel (3,1) with a value of 9
25% of the input pixel (4,1) with a value of 10
The output pixel value will then be computed as the average of each contribution
(15+0.5*16+0.5*9+0.25*10)/(1.5*1.5)=13.3

请大家发挥一下思路,这个原始像素权重(100%、50%、25%)是怎么计算得到的?
...全文
1502 2 打赏 收藏 转发到动态 举报
写回复
用AI写文章
2 条回复
切换为时间正序
请发表友善的回复…
发表回复
clever101 2018-08-02
  • 打赏
  • 举报
回复
引用 1 楼 RSImager 的回复:
可参考立方卷积升采样原理


兄弟,有具体的实现算法吗?
RSImager 2017-11-20
  • 打赏
  • 举报
回复
可参考立方卷积升采样原理

7,765

社区成员

发帖
与我相关
我的任务
社区描述
.NET技术 非技术区
社区管理员
  • 非技术区社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧