Skip to content

Feature request: optional return of aaa (LLL) coefficients at all levels in wavedec3/wavedec2 #131

@jmontoyaz

Description

@jmontoyaz

Dear all

Thanks for the nice toolbox! Currently, I’m using wavedec3 for multi-level 3D wavelet decomposition. Right now, when level > 1, the output includes only the 7 detail subbands per level:

  • aad, ada, add, daa, dad, dda, ddd

(each at their respective scales)

However, for some cases, it would be very useful to also have access to the approximation / low-pass coefficients (aaa) at every intermediate level, not only the final coarsest approximation, i.e. a way to return all aaa coefficients for each level when level > 1, e.g. something like:

  • level 1: aaa, aad, ada, add, daa, dad, dda, ddd
  • level 2: aaa, aad, ada, add, daa, dad, dda, ddd
  • ...
  • level L: aaa, aad, ada, add, daa, dad, dda, ddd

One idea would be to add an optional flag to wavedec3, for example:

  • aaa_per_level: bool = False (default keeps current behavior)

When True, include the aaa coefficients for each level in the returned structure.

Regarding the output structure: one possibility could be:

  • keep the current structure, and
    • add an "aaa" entry alongside the existing 7 keys in each level’s dictionary/list element

Is there any chance to add this feature?

Thanks a lot!

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions