# Export red slice as array with specific zoom

**URL:** https://discourse.slicer.org/t/export-red-slice-as-array-with-specific-zoom/25925
**Category:** Support
**Created:** [October 27, 2022, 10:47am UTC](https://discourse.slicer.org/t/export-red-slice-as-array-with-specific-zoom/25925 "2022-10-27T10:47:16Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![bserrano](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/bserrano/32/17034_2.png) [@bserrano](https://discourse.slicer.org/u/bserrano)
#### Post date: [October 27, 2022, 10:47am UTC](https://discourse.slicer.org/t/export-red-slice-as-array-with-specific-zoom/25925/1 "2022-10-27T10:47:16Z")

</div>

Hi,

I want to extract the image of the red slice as seen in the visualisation. That is, with the corresponding zoom and dimension. I don’t need the dicom file, just the array of values in HU.  
How can I do this?

Thanks

---

<div class="post-metadata">

### Author: ![Sunderlandkyl](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/sunderlandkyl/32/79987_2.png) [@Sunderlandkyl](https://discourse.slicer.org/u/Sunderlandkyl)
#### Post date: [October 27, 2022, 5:21pm UTC](https://discourse.slicer.org/t/export-red-slice-as-array-with-specific-zoom/25925/2 "2022-10-27T17:21:03Z")

</div>

I think that this script will do what you want:  
[Get reformatted image from a slice viewer as numpy array](https://slicer.readthedocs.io/en/latest/developer_guide/script_repository.html#get-reformatted-image-from-a-slice-viewer-as-numpy-array)
