When loading an ROI mask or a set of vertices within an ROI, the code previously returned only vertices on the flatmap. This is fine in general, but if the ROI spans a cut, then those vertices won't be included and the ROI mask will ignore some voxels.
This PR fixes this issue by including the neighboring vertices that are not present in the flatmap.
When loading an ROI mask or a set of vertices within an ROI, the code previously returned only vertices on the flatmap. This is fine in general, but if the ROI spans a cut, then those vertices won't be included and the ROI mask will ignore some voxels.
This PR fixes this issue by including the neighboring vertices that are not present in the flatmap.
Example: before/after for
get_roi_verts
.Before
After
Example: before/after for
get_roi_masks
.Before
After