• 大小: 36KB
    文件类型: .rar
    金币: 1
    下载: 0 次
    发布日期: 2021-06-05
  • 语言: Java
  • 标签: 图像处理  FFT  DCT  

资源简介

图片的处理,使用蝶式算法实现快速离散傅里叶变换,使用NetBeans编写。

资源截图

代码片段和文件信息

/*
 * To change this template choose Tools | Templates
 * and open the template in the editor.
 */
package dip2;

/**
 *
 * @author tatian
 */
//复数类,用于傅里叶变换计算
public class ComplexNumber {
    public double real;//实部
    public double img;//虚部
    
    public  ComplexNumber(){
        real=0;
        img=0;
    }
    public  ComplexNumber(double rdouble i){
        real=r;
        img=i;
    }
    //复数加
    public ComplexNumber add(ComplexNumber t){
        ComplexNumber tmp=new ComplexNumber();
        tmp.real=this.real+t.real;
        tmp.img=this.img+t.img;
        return tmp;
    }
    //复数减
    public ComplexNumber sub(ComplexNumber t){
        ComplexNumber tmp=new ComplexNumber();
        tmp.real=this.real-t.real;
        tmp.img=this.img-t.img;
        return tmp;
    }
    //复数乘
    public ComplexNumber mul(ComplexNumber t){
        ComplexNumber tmp=new ComplexNumber();
        tmp.real=this.real*t.real-this.img*t.img;
        tmp.img=this.real*t.img+this.img*t.real;
        return tmp;
    }
    //显示
    public void show(){
        System.out.println(““+real+“ “+img);
    }
}

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----

     文件        216  2014-03-22 14:52  DIP2\build\built-jar.properties

     文件          0  2014-03-22 15:13  DIP2\build\classes\.netbeans_automatic_build

     文件          0  2014-03-22 15:13  DIP2\build\classes\.netbeans_update_resources

     文件       1376  2014-03-23 16:45  DIP2\build\classes\dip2\ComplexNumber.class

     文件        507  2014-04-14 15:58  DIP2\build\classes\dip2\DIP2.class

     文件        832  2014-04-14 15:58  DIP2\build\classes\dip2\Mainframe$1.class

     文件        851  2014-04-14 15:58  DIP2\build\classes\dip2\Mainframe$2.class

     文件        721  2014-04-14 15:58  DIP2\build\classes\dip2\Mainframe$3.class

     文件        721  2014-04-14 15:58  DIP2\build\classes\dip2\Mainframe$4.class

     文件        721  2014-04-14 15:58  DIP2\build\classes\dip2\Mainframe$5.class

     文件        721  2014-04-14 15:58  DIP2\build\classes\dip2\Mainframe$6.class

     文件        524  2014-04-14 15:58  DIP2\build\classes\dip2\Mainframe$7.class

     文件      17297  2014-04-14 15:58  DIP2\build\classes\dip2\Mainframe.class

     文件      13676  2014-04-14 15:58  DIP2\build\classes\dip2\Mainframe.form

     文件       3707  2014-03-21 21:05  DIP2\build.xml

     文件         85  2014-03-10 22:54  DIP2\manifest.mf

     文件      56938  2014-03-21 21:05  DIP2\nbproject\build-impl.xml

     文件        475  2014-03-21 21:05  DIP2\nbproject\genfiles.properties

     文件         98  2014-03-10 22:54  DIP2\nbproject\private\private.properties

     文件        449  2014-04-14 16:46  DIP2\nbproject\private\private.xml

     文件       8489  2014-03-13 22:11  DIP2\nbproject\private\profiler\configurations.xml

     文件       2319  2014-03-21 21:06  DIP2\nbproject\project.properties

     文件        512  2014-03-21 21:05  DIP2\nbproject\project.xml

     文件       1212  2014-03-23 16:45  DIP2\src\dip2\ComplexNumber.java

     文件        443  2014-03-22 14:30  DIP2\src\dip2\DIP2.java

     文件      13676  2014-04-14 15:58  DIP2\src\dip2\Mainframe.form

     文件      25689  2014-04-14 15:58  DIP2\src\dip2\Mainframe.java

     目录          0  2014-03-22 15:13  DIP2\build\classes\dip1

     目录          0  2014-04-14 15:58  DIP2\build\classes\dip2

     目录          0  2014-03-22 14:52  DIP2\build\generated-sources\ap-source-output

............此处省略13个文件信息

评论

共有 条评论

相关资源