InsightSoftwareConsortium / InsightSoftwareConsortium/ITKSphinxExamples

Add example notebook for interfacing with Numpy

Aperta
#344 6 commenti 0 reazioni 1 assegnatario Rivendicata da @andinet Vedi su GitHub
area:Bridge Good first issue type:Python Notebook
Lingua principale
Jupyter Notebook
Stelle
59
Fork
70
Merge medio
1g 15h
PR unite (30g)
12

Descrizione

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

Guida per i contributori

Nessuna guida per i contributori indicizzata per questo repository

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.