Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Overcomplete haar dictionary bug #3

Open
ghost opened this issue Mar 2, 2020 · 1 comment
Open

Overcomplete haar dictionary bug #3

ghost opened this issue Mar 2, 2020 · 1 comment
Labels
enhancement New feature or request

Comments

@ghost
Copy link

ghost commented Mar 2, 2020

HaarDictionary(n, k) return dictionary of size k^2 x n^2 instead of n^2 x k^2.
I think that there is a problem in haar function defined in dictionaries/utils.py - it only work for sampling_factor=None because tmp[i]=0 for i > n.

@fubel fubel self-assigned this Mar 2, 2020
@fubel fubel removed their assignment Apr 18, 2020
@fubel fubel added the enhancement New feature or request label Oct 12, 2020
@fubel
Copy link
Owner

fubel commented Apr 21, 2022

Unfortunately I couldn't find the exact definition of the Overcomplete Haar Dictionaries as used in the K-SVD literature. However, I found this Matlab script to generate a 8x21 Haar Dict:

https://www.ux.uis.no/~karlsk/dle/get8x21haar.m

I assume it would be possible to generalize this to the nxK case. I'll try to add it once I have the time.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant