New and slightly modified Code. (Output dwtout.txt added)

This commit is contained in:
rafat.hsn@gmail.com 2011-08-20 09:45:14 +00:00
parent a657292131
commit a05f0ccd87

View File

@ -8,7 +8,7 @@
#include <iostream> #include <iostream>
#include <fstream> #include <fstream>
#include "wavelet2d.h" // Include wavelet2s.h if you are working with static library #include "wavelet2d.h"
#include <vector> #include <vector>
#include <string> #include <string>
#include <cmath> #include <cmath>
@ -58,6 +58,11 @@ int main() {
vector<int> length; vector<int> length;
dwt_sym(sig, J, nm, dwt_output,flag,length); dwt_sym(sig, J, nm, dwt_output,flag,length);
ofstream dwtout("dwtout.txt");
for (unsigned int i = 0; i < dwt_output.size(); i++){
dwtout << dwt_output[i] << endl;
}
//Perform J-Level IDWT //Perform J-Level IDWT