-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathwaveletlib.h
More file actions
35 lines (24 loc) · 817 Bytes
/
Copy pathwaveletlib.h
File metadata and controls
35 lines (24 loc) · 817 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
#ifndef _WAVELET_H_
#define _WAVELET_H_
#include <iostream>
#include <stdio.h>
#include <stdlib.h>
#include <math.h>
using namespace std;
typedef struct _WaveletNode WaveletNode;
struct _WaveletNode
{
struct _WaveletNode *sibling;
double *pVer;
double *pHor;
double *pDiag;
double *pLow;
int coeffRow;
int coeffCol;
int nLayers;
};
void ShiftInvariantInverseWaveletTransform(int row, int col, double *pLoFilter, double *pHiFilter, int filterLen, int nLayer, WaveletNode *pNodeList);
void ShiftInvariantWaveletTransform(double *pSrc, int row, int col, double *pLoFilter, double *pHiFilter, int filterLen, int nLayer, WaveletNode *pNodeList);
void WaveletDenoise(WaveletNode *pNodeList, double *pBuffer, int nLayer, double *pKSigma);
void ReleaseList(WaveletNode *pNodeList, int nLayer);
#endif