很细致地讲解:
http://insightsoftwareconsortium.github.io/SimpleITK-Notebooks/Python_html/03_Image_Details.html
From SimpleITK to numpy
Getsize() 返回信息如下图(ch不会返回,ch会再numpy中返回):
大家会发现SimpleITK and numpy indexing access is in opposite order!
自己补充一个二维的:
SimpleITK: image[x,y]
numpy: image_numpy_array[y,x]
From numpy to SimpleITK
关于SimpleITK与numpy的顺序问题,这篇博客也说的比较简单易懂:
https://blog.csdn.net/JianJuly/article/details/99547691
https://blog.csdn.net/weixin_43026262/article/details/102876270