Skip to content

BUG: preserve coarse complex details in inverse stationary wavelet transforms - #911

Open
AryanRG wants to merge 1 commit into
PyWavelets:mainfrom
AryanRG:fix/complex-details-in-inverse-swt
Open

AryanRG wants to merge 1 commit into
PyWavelets:mainfrom
AryanRG:fix/complex-details-in-inverse-swt

Conversation

@AryanRG

@AryanRG AryanRG commented Dec 1, 2026

Copy link
Copy Markdown

In a multilevel inverse stationary wavelet transform, a complex detail band can give the reconstructed approximation an imaginary component. If the next level has real detail coefficients, iswt2 and iswtn cast that approximation back to real and discard the imaginary part.

Use the current approximation’s dtype when promoting each level. The regression checks that multiplying a coarse horizontal detail coefficient by 1j multiplies its reconstructed contribution by 1j in both inverse paths.

This extends the mixed-dtype support introduced in #450.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant