Hi all,
sorry for a such a primitive question! and I hope I am in the right forum!
I am trying to follow the python program for image interpolation, I have created PhysicalPointSource pattern and could show the image using my show python script! yet I could not Use site.Expand to rescale the by factor of 5 for all dimensions!? I am not sure why? but at this line of code:
You seem to have stumbled on an old user initiative to create a read-the-docs site for SimpleITK, this is not part of our official eco-system. We recommend to always go to simpleitk.org and follow the links from there (most of the time search engines will point you in the right direction, but sometimes not).
The problem you have is not related to SimpleITK but to standard Python and usage of correct package names (you imported sitk but you try to refer to it as site and sick). The following works:
ml = marschner_lobb(40)
ml = ml[:,:, ml.GetSize()[-1] // 2]
my_show(sitk.Expand(ml, [5] * 3, sitk.sitkLinear), title='Linear')