InsightSoftwareConsortium / InsightSoftwareConsortium/ITKSphinxExamples

Add example notebook for interfacing with Numpy

Ouverte
#344 6 commentaires 0 réactions 1 personne assignée Réclamée par @andinet Voir sur GitHub
area:Bridge Good first issue type:Python Notebook
Langage dominant
Jupyter Notebook
Étoiles
59
Forks
70
Merge moyen
1 j 15 h
PR mergées (30 j)
12

Description

- 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`

Guide de contribution

Aucun guide de contribution indexé pour ce dépôt

Évaluation

Cette issue n'a pas encore été évaluée.

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.