Fix width logic in SliceProjectionOp#990
Merged
Merged
Conversation
Contributor
Contributor
📚 Documentation |
schuenke
approved these changes
May 6, 2026
Collaborator
schuenke
left a comment
There was a problem hiding this comment.
Looks reasonable. Maybe we can document (at least in this PR) why you choose 4 * max_shape + 1 ?!
Member
Author
|
It think half-voxelwise checking would be enough.
That we do double the steps is because I am not 100% sure about it. And it
is cheap...
If you have a better suggestion, we can change it.
Patrick Schuenke ***@***.***> schrieb am Mi., 6. Mai 2026,
07:34:
… ***@***.**** approved this pull request.
Looks reasonable. Maybe we can document (at least in this PR) why you
choose 4 * max_shape + 1 ?!
—
Reply to this email directly, view it on GitHub
<#990 (review)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABH3DV2ZMMNXPTBVI4ZIRR34ZLFFXAVCNFSM6AAAAACYN23ZXCVHI2DSMVQWIX3LMV43YUDVNRWFEZLROVSXG5CSMV3GSZLXHM2DEMZTGQ2TMOJRG4>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
Collaborator
|
It's fine for me. Just wanted to have it documented in case we are wondering in 3 years where these numbers come from... |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
There was some logic to autodetect width of a profile, i.e. in what range it is nonzero.
But this check was completly broken with a too large step size (only 2 steps over the volume), resulting in wrong effective slice width for width larger than 4 voxels.
See failing test in first commit: