• 大小: 927B
    文件类型: .c
    金币: 1
    下载: 0 次
    发布日期: 2021-05-07
  • 语言: C/C++
  • 标签: c语言  

资源简介

这个是双线性内插法的实现,用c语言实现,并跑通,效果比邻域内插要好

资源截图

代码片段和文件信息




void Bilinear_Interpolation(unsigned char * source_addrunsigned char * destination_addrint source_heightint source_widthfloat destination_heightfloat destination_width)
{ float f_u;
  float f_v;
  int ijxy;
  int adjacent[4];
  for(j=0;j  { for(i=0;i  { f_u=i*(source_width/destination_width);
  f_v=j*(source_height/destination_height);
  x=(int)f_u;
  f_u=f_u-x;
  y=

评论

共有 条评论