Mismatch in volume size of same segmentation

Hi there,

I’m working on a registration-related project. While I was working on this project, I noticed something interesting after performing the following steps:

  1. created a segmentation from one volume
  2. shifted the original volume via a linear transformation
  3. created a second segmentation from the transformed volume
  4. performed segment comparison

I noticed that the reference volume and the compare volumes are different in size under the Dice similarity metrics. I wonder if I misunderstood how to use the segment comparison module or if there is a bug that needs to be addressed.

I attached a screenshot of what I have just described and a screenshot. I can send you a copy of what I did(I tried to include the source file here but I can’t upload it from here)
Thanks in advance for your help.

Could the difference be due to the discrete regular grid?

Depending on your policy for when to include or exclude voxels that are only partially in the target region, segmentation might not commute with rigid rotation. Exaggerated example rotating a square and getting larger segmentation:

image

1 Like

@ebrahim thank you for your reply. I found out the issue by doing the following:

  1. created a segmentation from one volume
  2. clone the original volume
  3. shifted the cloned volume via a linear transformation
  4. created a second segmentation from the cloned volume
  5. performed segment comparison

With that change, the reference volume and the compare volume now have the same size.

1 Like