Skip to content

Conversation

@psomhorst
Copy link
Contributor

@psomhorst psomhorst commented Dec 7, 2025

This PR introduces a fix for the issue covered in #462.
The example resulted in no peaks found in the cross correlation. This fix skips pixels where no peaks are found in the cross correlation.

I added a warning about skipping pixels. We could discuss whether we want to expand this warning to indicate that the section might not be stable (when no cross correlation is found, that's probably due to large non-respiratory changes).

Fixes #462.

@psomhorst psomhorst changed the base branch from main to develop December 7, 2025 14:42
@psomhorst psomhorst changed the base branch from develop to main December 7, 2025 14:42
@psomhorst psomhorst force-pushed the fix/462-pixel-breath-cross-correlation branch from abdeba5 to 30c6591 Compare December 8, 2025 07:13
@psomhorst psomhorst force-pushed the fix/462-pixel-breath-cross-correlation branch from 30c6591 to dc5b1f1 Compare December 8, 2025 08:12
Copy link
Contributor

@JulietteFrancovich JulietteFrancovich left a comment

Choose a reason for hiding this comment

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

I think this fix is ok but I would indeed suggest expanding the warning to indicate that the user might want to inspect the pixel signal to check for stability.

@psomhorst psomhorst merged commit 419e4f5 into main Dec 12, 2025
9 checks passed
@psomhorst psomhorst deleted the fix/462-pixel-breath-cross-correlation branch December 12, 2025 13:37
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.

Pixel breath fails if no cross correlation can be found

3 participants