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

Fix issue interpolating when many slices are missing #171

Merged
merged 1 commit into from
Dec 3, 2024

Conversation

pchlap
Copy link
Contributor

@pchlap pchlap commented Nov 24, 2024

Hi @dalmouiee & @rnfinnegan,

not sure if you remember writing this function together a while back to interpolate missing slices of an image. I discovered a small issue with it, when many slices are missing throughout the image. The index of the previous and next slice to use for interpolation needs to be tracked, since we are modifying the list that tracks those files within the loop. Let me know if you think this is a reasonable solution. It seems to work well.

Thanks!

@pchlap pchlap merged commit 35edb1b into main Dec 3, 2024
2 checks passed
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