InsightSoftwareConsortium / InsightSoftwareConsortium/ITKSphinxExamples

Add example notebook for interfacing with Numpy

Abierto
#344 6 comentarios 0 reacciones 1 asignado Reclamado por @andinet Ver en GitHub
area:Bridge Good first issue type:Python Notebook
Lenguaje dominante
Jupyter Notebook
Estrellas
59
Forks
70
Merge medio
1 d 15 h
PR fusionados (30 d)
12

Descripción

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

Guía de contribución

No hay ninguna guía de contribución indexada para este repositorio

Evaluación

Este issue todavía no se ha evaluado.

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.