图像处理滤波器(六)——频率滤波器(Frequency Filter)

本文介绍了频率滤波器在图像处理中的应用,特别是基于Fourier变换的高通和低通滤波器。以FFT Filter为例,展示了1/3和1/2截止频率的输出效果,强调低通滤波器在去除噪声时可能同时损失图像细节,暗示需要更精细的图像处理技术。
摘要由CSDN通过智能技术生成

描述:频率滤波器是一种常见的滤波器,它是基于Fourier 变换演变过来的,它主要分为高通滤波器和低通滤波器。所谓高通滤波器就是只通过高频,滤除低频。反之低通滤波器就是滤除高频,保留低频。


现举例一个常见的频率滤波器——FFT Filter


Code:


  /** 
   * Constructor to set up an FFT object and then automatically 
   * apply the FFT algorithm.
   *
   * @param pixels  int array containing the image data.
   * @param w  The width of the image in pixels.
   * @param h  The height of the image in pixels.
   */
  public FFT(int [] pixels, int w, int h){
    input = new TwoDArray(pixels,w,h);
    intermediate = new TwoDArray(pixels,w,h);
    output = new TwoDArray(pixels,w,h);
    transform();
  }
  
  /**
   * Method to recursively apply the 1D FFT to a ComplexNumber array.
   *
   * @param  x  A ComplexNumber array containing a row or a column of
   * image data.
   * @return A ComplexNumber array containing the result of the
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值