Hi,
I wrote two functions, FWT2_PO and IWT2_PO, both having a 'transform' method. The functions work really well, but a strange thing happens.
Namely, the following code gives different output than the code below.
denoised = FWT2_PO.transform(array, 4, QMF, 2);
//recovered=IWT2_PO.transform(denoised, 4, QMF);
for (int i=0;i<denoised.length;i++){
for (int j=0;j<denoised.length;j++){
System.out.print(" ");
System.out.print(denoised[i][j]);
System.out.print("\t");
}
System.out.print("\n");
}
The only difference is the one uncommented line
denoised = FWT2_PO.transform(array, 4, QMF, 2);
recovered=IWT2_PO.transform(denoised, 4, QMF);
for (int i=0;i<denoised.length;i++){
for (int j=0;j<denoised.length;j++){
System.out.print(" ");
System.out.print(denoised[i][j]);
System.out.print("\t");
}
System.out.print("\n");
}
How can this happen?