# \#pixeltype

**URL:** https://discourse.itk.org/tag/pixeltype/107.md

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

---

## [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…

---

## [Set default pixel type for a resample filter in python](https://discourse.itk.org/t/set-default-pixel-type-for-a-resample-filter-in-python/2179)

<div class="topic-metadata">

**Author:** [@asertyuio](https://discourse.itk.org/u/asertyuio)\
**Replies:** 3\
**Last updated:** [August 21, 2019, 4:08pm UTC](https://discourse.itk.org/t/set-default-pixel-type-for-a-resample-filter-in-python/2179 "2019-08-21T16:08:42Z")

</div>

Hello community, I don’t manage to create an arbitrary pixel from a numpy scalar. I would like to transform the numpy scalar to a pixel, using fill if pixel has multiple modalities px\_type = itk.template(itk\_image)\[1\]\[…

---

## [InterpolateImageFunction of templated PixelType](https://discourse.itk.org/t/interpolateimagefunction-of-templated-pixeltype/1729)

<div class="topic-metadata">

**Author:** [@Gordian](https://discourse.itk.org/u/Gordian)\
**Replies:** 3\
**Last updated:** [April 2, 2019, 4:26pm UTC](https://discourse.itk.org/t/interpolateimagefunction-of-templated-pixeltype/1729 "2019-04-02T16:26:34Z")

</div>

Hello, if I want to use an ImageInterpolatorFunction (Linear or NearestNeighbor) for an image with PixelType that can be either scalar or a vector. The PixelType is determined at compile time because the function templ…
