Skip to content

Add example notebook for interfacing with Numpy #344

Open
@tbirdso

Description

@tbirdso
  • Demonstrate initializing a numpy array and converting to ITK image format with itk.image_from_array and itk.image_view_from_array
  • Demonstrate manipulating an ITK image as a numpy array with itk.array_from_image and itk.array_view_from_image
  • Demonstrate ITK's KJI IJK notation vs numpy's IJK KJI notation with itk.size(image) vs image.shape

EDIT: Fixed image_view_from_array and array_view_from_image

Metadata

Metadata

Assignees

Labels

Good first issueA good issue for community members new to contributingarea:BridgeIssues affecting the Bridge moduletype:Python NotebookChanges to Python Notebook examples

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions