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

calculate spectrum whitening filter only in the search region #81

Merged
merged 3 commits into from
Jan 26, 2024

Conversation

McHaillet
Copy link
Collaborator

Small patch to only calculate the whitening filter in the user specified search region. Edges of reconstructions can often have reconstruction/interpolation artifacts that users might want to avoid. The whitening filter should also not take them into account as the data here does not contain reliable info about the signal to noise ratio of the tomogram.

@McHaillet McHaillet requested a review from sroet January 24, 2024 15:22
@sroet
Copy link
Collaborator

sroet commented Jan 25, 2024

could you add a test? (probably a quick one that checks if the saved whitening filter has the expected dimensions?) LGTM otherwise

@McHaillet
Copy link
Collaborator Author

Test is added!

I also switched to recalculating the whitening filter in TMJob's. Since version 0.3.3 its fast to calculate and this will prevent

  • bugs later on where the whitening filter does not have the correct size for a cropped search volume
  • and properly update the whitening filter to the search region

Copy link
Collaborator

@sroet sroet left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, feel free to merge

@McHaillet McHaillet merged commit b7e6faa into SBC-Utrecht:main Jan 26, 2024
@McHaillet McHaillet deleted the patch-whitening-roi branch January 26, 2024 12:43
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.

2 participants