Mismatch of image view and its actual dimensions

Good day,
I noticed a mismatch between the image dimensions and its view in Slicer (the view is the same in other viewers as in Slicer). The dimension of the image is 512233. On the left side is the image view in Slicer, on the right side is its view after I read it in python, converted it into an array and displayed it. It can be seen that the dimensions on the left side don’t correspond to 512233 (the width should be > 2 times bigger than height but it is not), on the other hand, on the right image the image seems to have the correct dimensions but it seems to be distorted also (I am not sure if it’s really distorted or not)
Could you please tell me, why the image is displayed in slicer in such a way and what parameters are responsible for the mismatch between the actual dimensions and the dimensions of the view in Slicer?

Hi -

Pixel dimensions are not the same as world space, and the spacing between pixel center can be different in different directions.

See this page for more info:


1 Like

thank you, the problem is solved by using make_isotropic function from sitk notebook, but your answer is also helpful.
Here is the link to another helpful answer

1 Like