InsightSoftwareConsortium / InsightSoftwareConsortium/ITKSphinxExamples

Add example notebook for interfacing with Numpy

未关闭
#344 6 条评论 0 个 reaction 已指派 1 人 已被 @andinet 认领 在 GitHub 查看
area:Bridge Good first issue type:Python Notebook
主要语言
Jupyter Notebook
星标
59
派生
70
平均合并
1 天 15 小时
30 天内合并 PR
12

描述

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

贡献指南

这个仓库没有索引到贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。