# Get array from image data

**URL:** <https://discourse.slicer.org/t/get-array-from-image-data/530>\
**Category:** Support\
**Created:** [June 19, 2017, 6:10pm UTC](https://discourse.slicer.org/t/get-array-from-image-data/530 "2017-06-19T18:10:40Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![jks1995](https://avatars.discourse-cdn.com/v4/letter/j/90db22/32.png) [@jks1995](https://discourse.slicer.org/u/jks1995)\
**Post date:** [June 19, 2017, 6:10pm UTC](https://discourse.slicer.org/t/get-array-from-image-data/530/1 "2017-06-19T18:10:40Z")

</div>

How could i get the arrays that make up an image data object as arrays in python?

---

<div class="post-metadata">

**Author:** ![ihnorton](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/ihnorton/32/9_2.png) [@ihnorton](https://discourse.slicer.org/u/ihnorton)\
**Post date:** [June 19, 2017, 7:22pm UTC](https://discourse.slicer.org/t/get-array-from-image-data/530/2 "2017-06-19T19:22:11Z")

</div>

Please see

[https://www.slicer.org/wiki/Documentation/Nightly/Developers/Python\_scripting#Accessing\_Volume\_data\_as\_numpy\_array](https://www.slicer.org/wiki/Documentation/Nightly/Developers/Python_scripting#Accessing_Volume_data_as_numpy_array)

---

<div class="post-metadata">

**Author:** ![jks1995](https://avatars.discourse-cdn.com/v4/letter/j/90db22/32.png) [@jks1995](https://discourse.slicer.org/u/jks1995)\
**Post date:** [June 26, 2017, 5:33pm UTC](https://discourse.slicer.org/t/get-array-from-image-data/530/3 "2017-06-26T17:33:05Z")

</div>

The solution I was looking for was:

`
slicer.util.array('NodeName')
`
