import dtcwt # Use the modified 2-D DTCWT transform = dtcwt.Transform2d(biort='near_sym_b_bp', qshift='qshift_b_bp') # Forward transform image = datasets.mandrill() image_t = transform.forward(image) # Inverse transform Z = transform.inverse(image_t) # Show the error imshow(Z-image, cmap=cm.gray) colorbar()