LiQiufu / WaveCNet

the code for WaveCNet
127 stars 16 forks source link

why in DWT_IDWT\DWT_IDWT_layer.py DWT using rec_lo and rec_hi ? #5

Open ghost opened 3 years ago

ghost commented 3 years ago

thx so much for sharing, i have a question: why in DWT_IDWT\DWT_IDWT_layer.py, DWT is using rec_lo and rec_hi, while in IDWT, using dec_lo/hi and then reverse ? i thought that in DWT with dec_lo/hi and IDWT with rec_lo/hi, cuz DWT is the decomposition process and IDWT is the reconstruction process.

LiQiufu commented 3 years ago

That's not the key. You can also use dec_lo/dec_hi in DWT, and use rec_lo/rec_hi in IDWT.

ghost commented 3 years ago

ahh okay. just wondering. Thx for reply :)