• 大小: 4KB
    文件类型: .zip
    金币: 1
    下载: 0 次
    发布日期: 2021-05-10
  • 语言: C#
  • 标签: DWT  C#  

资源简介

C#实现一维离散小波变换,选用mallet小波,变换后得到cA(低频 和cD(高频)部分

资源截图

代码片段和文件信息

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace LightInspectionMachine.dsp
{
    public class Filter
    {
        #region 小波滤波器抽头系数
        //double[][] dbL;
        //double[][] dbH;
        //double[][] dbLR;
        //double[][] dbHR;
        double[] db1L = new double[] { 0.7071 0.7071 };
        double[] db1H = new double[] { -0.7071 0.7071 };
        double[] db1LR = new double[] { 0.7071 0.7071 };
        double[] db1HR = new double[] { 0.7071 -0.7071 };

        double[] db2L = new double[] { -0.1294 0.2241 0.8365 0.4830 };
        double[] db2H = new double[] { -0.4830 0.8365 -0.2241 -0.1294 };
        double[] db2LR = new double[] { 0.4830 0.8365 0.2241 -0.1294 };
        double[] db2HR = new double[] { -0.1294 -0.2241 0.8365 -0.4830 };

        double[] db3L = new double[] { 0.0352 -0.0854 -0.1350 0.4599 0.8069 0.3327 };
        double[] db3H = new double[] { -0.3327 0.8069 -0.4599 -0.1350 0.0854 0.0352 };
        double[] db3LR = new double[] { 0.3327 0.8069 0.4599 -0.1350 -0.0854 0.0352 };
        double[] db3HR = new double[] { 0.0352 0.0854 -0.1350 -0.4599 0.8069 -0.3327 };

        double[] db4L = new double[] { -0.0106 0.0329 0.0308 -0.1870 -0.0280 0.6309 0.7148 0.2304 };
        double[] db4H = new double[] { -0.2304 0.7148 -0.6309 -0.0280 0.1870 0.0308 -0.0329 -0.0106 };
        double[] db4LR = new double[] { 0.2304 0.7148 0.6309 -0.0280 -0.1870 0.0308 0.0329 -0.0106 };
        double[] db4HR = new double[] { -0.0106 -0.0329 0.0308 0.1870 -0.0280 -0.6309 0.7148 -0.2304 };

        double[] db5L = new double[] { 0.1601 0.6038 0.7243 0.1384 -0.2423 -0.0322 0.0776 -0.0062 -0.0126 0.0033 };
        double[] db5H = new double[] { 0.0033 0.0126 -0.0062 -0.0776 -0.0322 0.2423 0.1384 -0.7243 0.6038 -0.1601 };
        double[] db5LR = new double[]{  0.1601    0.6038    0.7243    0.1384   -0.2423  
                   -0.0322   0.0776   -0.0062   -0.0126      0.0033};
        double[] db5HR = new double[]{0.0033    0.0126   -0.0062   -0.0776  -0.0322   
                   0.2423  0.1384   -0.7243    0.6038-0.1601};

        double[] db6L = new double[]{-0.0011    0.0048    0.0006   -0.0316    0.0275    0.0975 
                  -0.1298   -0.2263    0.3153 0.7511    0.4946    0.1115};
        double[] db6H = new double[]{ -0.1115    0.4946   -0.7511   0.3153   0.2263   -0.1298
                -0.0975    0.0275    0.0316  0.0006   -0.0048   -0.0011};
        double[] db6LR = new double[]{ 0.1115    0.4946    0.7511    0.3153   -0.2263   -0.1298 
                      0.0975    0.0275   -0.03160.0006    0.0048   -0.0011};
        double[] db6HR = new double[]{-0.0011   -0.0048    0.0006    0.0316    0.0275   -0.0975 
                   -0.1298    0.2263    0.3153   -0.7511    0.4946   -0.1115};


    

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     文件        9657  2013-07-28 23:28  C#实现一维离散小波变换\Filter.cs
     文件        3318  2013-07-27 15:42  C#实现一维离散小波变换\Wavelet.cs
     文件          23  2018-12-21 15:23  C#实现一维离散小波变换\说明.txt
     目录           0  2018-12-21 15:23  C#实现一维离散小波变换\

评论

共有 条评论