-
Notifications
You must be signed in to change notification settings - Fork 68
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add example notebook for interfacing with Numpy #344
Comments
I believe that ITK uses IJK and numpy KJI, not the other way around. |
Perhaps we are already thinking along these lines, but just in case ... we may want to go all verbose and say that there are two distinct cases here, depending on whether the "third dimension" represents multiple planes (Z) or time points (T), or represents multiple colors (C, such as R, G, & B).
And of course there are monochromatic 2-dimensional images. |
@dzenanz Maybe my thinking is backwards. In ITK the fastest element is the first index while in numpy it is the last index. When we say "IJK" is "K" the fastest or slowest index? |
In calculus |
Works for me, updated the description. |
Assigned to @andinet per request |
itk.image_from_array
anditk.image_view_from_array
itk.array_from_image
anditk.array_view_from_image
KJIIJK notation vs numpy'sIJKKJI notation withitk.size(image)
vsimage.shape
EDIT: Fixed
image_view_from_array
andarray_view_from_image
The text was updated successfully, but these errors were encountered: