Why did the segment created by threshold masking contain voxels beyond the threshold?

As the pictures shows, in Segment Editor, I painted my segment under the masking with a threshold of >130. But in Segment Statistics, the minimum value of that segment was 85, which was lower than 130, the threshold I set.

Would it be possible for anyone to tell me why this happened? And how can I get a segment without voxels out of the range I set? Many thanks in advance!


You have multiple segments, but your table does not show from which segment the stat is coming from. Perhaps you are looking at the wrong segment?

Minimum and maximum are extremely sensitive. Out of millions of voxels, a fraction of a single voxel can change the result. You can have uncertainties about what parts of a voxel considered to be part of segmentation when the geometry (origin, spacing, axis directions, extents) is not exactly for the same for the segmentation, the scalar volume you thresholded, and the scalar volume you chose for statistics computation.

If you want to use minimum and maximum values then I would recommend to make conservative estimations, for example by applying Margin effect to erode/dilate the segments to ensure voxels near the segmentation boundary are excluded/included according to your requirements.

I’ve also added the option to compute 5th and 95th percentiles, which characterize the value range of a segment more robustly than minimum and maximum values.

2 Likes

Thanks for your reply. I double-checked and confirmed that I was looking at the same segment. :grinning:

Thanks for your reply. This looks like the answer to my question and I will try your advice!