# \#numpy

**URL:** https://discourse.itk.org/tag/numpy/47.md

[Latest](https://discourse.itk.org/latest.md) · [Categories](https://discourse.itk.org/categories.md) · [Tags](https://discourse.itk.org/tags.md)

---

## [Are numpy arrays supported in the object-oriented API?](https://discourse.itk.org/t/are-numpy-arrays-supported-in-the-object-oriented-api/6137)

<div class="topic-metadata">

**Author:** [@AwesomeLemon](https://discourse.itk.org/u/AwesomeLemon)\
**Replies:** 4\
**Last updated:** [August 10, 2023, 5:21pm UTC](https://discourse.itk.org/t/are-numpy-arrays-supported-in-the-object-oriented-api/6137 "2023-08-10T17:21:49Z")

</div>

Input in the form of numpy arrays works with the procedural API but doesn’t work with the object-oriented API (I get “itk.ElastixRegistrationMethod is not wrapped for input type None”). Is that a known limitation or am …

---

## [Problem in image and its mask superposition](https://discourse.itk.org/t/problem-in-image-and-its-mask-superposition/5867)

<div class="topic-metadata">

**Author:** [@Sunita\_Patel](https://discourse.itk.org/u/Sunita_Patel)\
**Replies:** 3\
**Last updated:** [April 14, 2023, 8:52am UTC](https://discourse.itk.org/t/problem-in-image-and-its-mask-superposition/5867 "2023-04-14T08:52:16Z")

</div>

Dear SITK team, We are trying to generate image and its mask from RTStruct file. The dimension of the image is: 256 256 216 The dimension of the mask is: 256 256 216 While visualizing we observed that mask is not sup…

---

## [ITK 5.3 Release Candidate 4 available for testing](https://discourse.itk.org/t/itk-5-3-release-candidate-4-available-for-testing/5290)

<div class="topic-metadata">

**Author:** [@matt.mccormick](https://discourse.itk.org/u/matt.mccormick)\
**Replies:** 0\
**Last updated:** [August 23, 2022, 7:11pm UTC](https://discourse.itk.org/t/itk-5-3-release-candidate-4-available-for-testing/5290 "2022-08-23T19:11:38Z")

</div>

We are happy to announce the Insight Toolkit (ITK) 5.3 Release Candidate 4 is available for testing! :tada: ITK is an open-source, cross-platform toolkit for N-dimensional scientific image processing, segmentation, and r…

---

## [Odd behavior with Numpy Array Views](https://discourse.itk.org/t/odd-behavior-with-numpy-array-views/4827)

<div class="topic-metadata">

**Author:** [@brandonfosso](https://discourse.itk.org/u/brandonfosso)\
**Replies:** 2\
**Last updated:** [February 23, 2022, 1:31am UTC](https://discourse.itk.org/t/odd-behavior-with-numpy-array-views/4827 "2022-02-23T01:31:21Z")

</div>

Hello, I was just experimenting with SimpleITK in a Jupyter Notebook and was surprised by the following behavior. \> junk = np.zeros((3,3), dtype=np.uint8) \> junk array(\[\[0, 0, 0\], \[0, 0, 0\], \[0, 0, 0\]\], dt…

---

## [Read Numpy array as itk.itkImagePython.itkImageF3](https://discourse.itk.org/t/read-numpy-array-as-itk-itkimagepython-itkimagef3/4776)

<div class="topic-metadata">

**Author:** [@edgar](https://discourse.itk.org/u/edgar)\
**Replies:** 11\
**Last updated:** [February 2, 2022, 11:12pm UTC](https://discourse.itk.org/t/read-numpy-array-as-itk-itkimagepython-itkimagef3/4776 "2022-02-02T23:12:56Z")

</div>

I just want to be able to use a numpy array as itk.itkImagePython.itkImageF3 to feed it into a registration (without SimpleITK). Thanks! Description of the issue with MWE I get an error when trying to run any of these i…

---

## [ITK 5.2.0 has been released!](https://discourse.itk.org/t/itk-5-2-0-has-been-released/4165)

<div class="topic-metadata">

**Author:** [@matt.mccormick](https://discourse.itk.org/u/matt.mccormick)\
**Replies:** 6\
**Last updated:** [June 1, 2021, 1:23pm UTC](https://discourse.itk.org/t/itk-5-2-0-has-been-released/4165 "2021-06-01T13:23:43Z")

</div>

We are happy to announce the release of Insight Toolkit (ITK) 5.2.0! :tada: ITK is an open-source, cross-platform toolkit for N-dimensional scientific image processing, segmentation, and registration. ITK 5.2 is a featu…

---

## [ITK 5.2 Release Candidate 3 available for testing](https://discourse.itk.org/t/itk-5-2-release-candidate-3-available-for-testing/3947)

<div class="topic-metadata">

**Author:** [@matt.mccormick](https://discourse.itk.org/u/matt.mccormick)\
**Replies:** 3\
**Last updated:** [May 6, 2021, 6:56pm UTC](https://discourse.itk.org/t/itk-5-2-release-candidate-3-available-for-testing/3947 "2021-05-06T18:56:33Z")

</div>

ITK 5.2 Release Candidate 3 Release Notes We are happy to announce the Insight Toolkit (ITK) 5.2 Release Candidate 3 is available for testing! :tada: ITK is an open-source, cross-platform toolkit for N-dimensional scient…

---

## [ITK 5.2 Release Candidate 2 available for testing](https://discourse.itk.org/t/itk-5-2-release-candidate-2-available-for-testing/3867)

<div class="topic-metadata">

**Author:** [@matt.mccormick](https://discourse.itk.org/u/matt.mccormick)\
**Replies:** 0\
**Last updated:** [February 15, 2021, 8:43pm UTC](https://discourse.itk.org/t/itk-5-2-release-candidate-2-available-for-testing/3867 "2021-02-15T20:43:42Z")

</div>

ITK 5.2 Release Candidate 2 Release Notes We are happy to announce the Insight Toolkit (ITK) 5.2 Release Candidate 2 is available for testing! :tada: ITK is an open-source, cross-platform toolkit for N-dimensional scient…

---

## [ITK 5.2 Release Candidate 1 available for testing](https://discourse.itk.org/t/itk-5-2-release-candidate-1-available-for-testing/3810)

<div class="topic-metadata">

**Author:** [@matt.mccormick](https://discourse.itk.org/u/matt.mccormick)\
**Replies:** 0\
**Last updated:** [January 29, 2021, 4:47pm UTC](https://discourse.itk.org/t/itk-5-2-release-candidate-1-available-for-testing/3810 "2021-01-29T16:47:19Z")

</div>

We are happy to announce the Insight Toolkit (ITK) 5.2 Release Candidate 1 is available for testing! :tada: ITK is an open-source, cross-platform toolkit for N-dimensional scientific image processing, segmentation, and r…

---

## [ITK 5.1.0 has been released!](https://discourse.itk.org/t/itk-5-1-0-has-been-released/3164)

<div class="topic-metadata">

**Author:** [@matt.mccormick](https://discourse.itk.org/u/matt.mccormick)\
**Replies:** 3\
**Last updated:** [June 22, 2020, 4:21am UTC](https://discourse.itk.org/t/itk-5-1-0-has-been-released/3164 "2020-06-22T04:21:07Z")

</div>

We are happy to announce the Insight Toolkit (ITK) 5.1.0 release! :tada: ITK is an open-source, cross-platform toolkit for N-dimensional scientific image processing, segmentation, and registration. ITK 5.1.0 is a featur…

---

## [ITK 5.1 Release Candidate 2 available for testing](https://discourse.itk.org/t/itk-5-1-release-candidate-2-available-for-testing/2803)

<div class="topic-metadata">

**Author:** [@matt.mccormick](https://discourse.itk.org/u/matt.mccormick)\
**Replies:** 3\
**Last updated:** [March 10, 2020, 9:53am UTC](https://discourse.itk.org/t/itk-5-1-release-candidate-2-available-for-testing/2803 "2020-03-10T09:53:02Z")

</div>

We are happy to announce the Insight Toolkit (ITK) 5.1 Release Candidate 2 is available for testing! :tada: ITK is an open-source, cross-platform toolkit for N-dimensional scientific image processing, segmentation, and r…

---

## [ITK 5.1 Release Candidate 1 available for testing](https://discourse.itk.org/t/itk-5-1-release-candidate-1-available-for-testing/2568)

<div class="topic-metadata">

**Author:** [@matt.mccormick](https://discourse.itk.org/u/matt.mccormick)\
**Replies:** 0\
**Last updated:** [December 23, 2019, 10:33pm UTC](https://discourse.itk.org/t/itk-5-1-release-candidate-1-available-for-testing/2568 "2019-12-23T22:33:07Z")

</div>

We are happy to announce the Insight Toolkit (ITK) 5.1 Release Candidate 1 is available for testing! :tada: ITK is an open-source, cross-platform toolkit for N-dimensional scientific image processing, segmentation, and r…

---

## [Importing image from array and axis reorder](https://discourse.itk.org/t/importing-image-from-array-and-axis-reorder/1192)

<div class="topic-metadata">

**Author:** [@fedorov](https://discourse.itk.org/u/fedorov)\
**Replies:** 14\
**Last updated:** [December 16, 2019, 8:01pm UTC](https://discourse.itk.org/t/importing-image-from-array-and-axis-reorder/1192 "2019-12-16T20:01:54Z")

</div>

I am creating image from a numpy array, using itk-python, and I see that it reorders the array axes: print("Array shape: "+str(scanArray.shape)) scanVolume = itk.GetImageFromArray(scanArray) print("Image shape: "+str(sc…

---

## [ITK 5.1 Beta 1: NumPy Interface, Part 1](https://discourse.itk.org/t/itk-5-1-beta-1-numpy-interface-part-1/2260)

<div class="topic-metadata">

**Author:** [@matt.mccormick](https://discourse.itk.org/u/matt.mccormick)\
**Replies:** 2\
**Last updated:** [September 25, 2019, 3:09pm UTC](https://discourse.itk.org/t/itk-5-1-beta-1-numpy-interface-part-1/2260 "2019-09-25T15:09:06Z")

</div>

We are happy to announce that the Insight Toolkit (ITK) 5.1 Beta 1 is available for testing! :tada: ITK is an open-source, cross-platform toolkit for N-dimensional scientific image processing, segmentation, and registrat…

---

## [Is it possible to get a writable array view of a SimpleITK image?](https://discourse.itk.org/t/is-it-possible-to-get-a-writable-array-view-of-a-simpleitk-image/1585)

<div class="topic-metadata">

**Author:** [@david-hoffman](https://discourse.itk.org/u/david-hoffman)\
**Replies:** 10\
**Last updated:** [February 8, 2019, 7:30pm UTC](https://discourse.itk.org/t/is-it-possible-to-get-a-writable-array-view-of-a-simpleitk-image/1585 "2019-02-08T19:30:13Z")

</div>

Following up on this question: https://stackoverflow.com/questions/54557586/does-simpleitk-have-broadcasting/54577094 If GetArrayViewFromImage returned a writable view then you could use numpy broadcasting without issue…

---

## [Convert NVL Matrix to NumPy array](https://discourse.itk.org/t/convert-nvl-matrix-to-numpy-array/711)

<div class="topic-metadata">

**Author:** [@glemaitre](https://discourse.itk.org/u/glemaitre)\
**Replies:** 1\
**Last updated:** [February 26, 2018, 5:10am UTC](https://discourse.itk.org/t/convert-nvl-matrix-to-numpy-array/711 "2018-02-26T05:10:09Z")

</div>

Just found out that I should not post to the mailing list anymore. So here is my question. I am using the python wrapper of itk to manipulate. I checked the quick start guide ( http://itkpythonpackage.readthedocs.io/e…
