Depending on the size of the original image and depending on the kind of padding used during 2D discrete wavelet transform and reconstruction, the reconstructed image has a larger size.
Is there a general method given a mxn
matrix and given some padding mode to crop the obtained pxq
matrix to the mxn
matrix (without trying every possibility in order to find the one with the least error)?