Skip to content

BUG: Fix two bugs in IdentifySampleSliceBySliceFunctor#1562

Open
imikejackson wants to merge 1 commit intoBlueQuartzSoftware:developfrom
imikejackson:bug/identify_sample_indexing
Open

BUG: Fix two bugs in IdentifySampleSliceBySliceFunctor#1562
imikejackson wants to merge 1 commit intoBlueQuartzSoftware:developfrom
imikejackson:bug/identify_sample_indexing

Conversation

@imikejackson
Copy link
Contributor

  1. Fix incorrect global index in fill-holes setValue: the local plane index was used directly instead of decomposing into p1/p2 and applying the correct strides. This produced wrong results for XZ and YZ planes.

  2. Reset the checked vector before the fill-holes phase. Without the reset, voxels visited during sample identification were skipped during hole filling, leaving unfilled holes inside the sample.

Update IdentifySampleTest to use v2 test data with all 12 parameter
combinations (fill/nofill x whole/sliced x XY/XZ/YZ).

@imikejackson imikejackson requested a review from nyoungbq March 6, 2026 20:36
  1. Fix incorrect global index in fill-holes setValue: the local plane
     index was used directly instead of decomposing into p1/p2 and
     applying the correct strides. This produced wrong results for XZ
     and YZ planes.

  2. Reset the checked vector before the fill-holes phase. Without the
     reset, voxels visited during sample identification were skipped
     during hole filling, leaving unfilled holes inside the sample.

  Update IdentifySampleTest to use v2 test data with all 12 parameter
  combinations (fill/nofill x whole/sliced x XY/XZ/YZ).
@imikejackson imikejackson force-pushed the bug/identify_sample_indexing branch from 076dec4 to 53c5ed7 Compare March 6, 2026 20:39
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