-
Notifications
You must be signed in to change notification settings - Fork 30
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
Average patterns with adjacent patterns to reduce noise #13
Comments
Comment to 2): Are you thinking about solving that by adding a conditional statement: only use pixel for averaging if the difference between them (abs of subtract) is lower than some threshold? |
Yes, a suggested value should be default, however I should be able to overwrite this. The 'pattern difference' procedure as explained by Wright et al. in the article referenced above:
|
Should use |
This is now possible with |
Another way of reducing noise in patterns than creating model patterns from decomposition factors is by simply averaging a pattern with the adjacent patterns. This can be done by e.g. using
scipy.ndimage.filters.generic_filter
and passingnumpy.mean
as the function to apply to each pattern. There are (at least) two problems to address:map()
since we have to also access the adjacent patternsA
s.average_patterns(num_neighbours=1)
function would be nice!The text was updated successfully, but these errors were encountered: