# \#vector

**URL:** https://discourse.itk.org/tag/vector/109.md

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

---

## [Vector type single channel image](https://discourse.itk.org/t/vector-type-single-channel-image/7575)

<div class="topic-metadata">

**Author:** [@Franciska](https://discourse.itk.org/u/Franciska)\
**Replies:** 2\
**Last updated:** [June 25, 2025, 1:09pm UTC](https://discourse.itk.org/t/vector-type-single-channel-image/7575 "2025-06-25T13:09:54Z")

</div>

I have a dicom image thats shape is (1136, 852, 1) and PixelID is ‘vector of 8-bit unsigned integer’ . I want to cast this to float32 but as I can not cast vector type to simple float, following online advice I tried: …

---

## [How to create a displacement field image from a numpy array without files?](https://discourse.itk.org/t/how-to-create-a-displacement-field-image-from-a-numpy-array-without-files/5717)

<div class="topic-metadata">

**Author:** [@edgar](https://discourse.itk.org/u/edgar)\
**Replies:** 1\
**Last updated:** [March 22, 2023, 10:53am UTC](https://discourse.itk.org/t/how-to-create-a-displacement-field-image-from-a-numpy-array-without-files/5717 "2023-03-22T10:53:17Z")

</div>

Continuing the discussion from Creating a displacement field image from a numpy array: Hello! I am trying to warp an image. The image is built from an array, and I would like to build the displacement field from anothe…

---

## [Store Images in a Vector and then Average it](https://discourse.itk.org/t/store-images-in-a-vector-and-then-average-it/3027)

<div class="topic-metadata">

**Author:** [@machadoL](https://discourse.itk.org/u/machadoL)\
**Replies:** 2\
**Last updated:** [May 4, 2020, 8:50pm UTC](https://discourse.itk.org/t/store-images-in-a-vector-and-then-average-it/3027 "2020-05-04T20:50:50Z")

</div>

Hey Guys, I am generating vector images (3 images) iteratively and I would like to know how I can store those images into a vector, or array, of images, and average those 3 images to save only the final averaged one. T…

---

## [Multiply vector with scalar value](https://discourse.itk.org/t/multiply-vector-with-scalar-value/2259)

<div class="topic-metadata">

**Author:** [@Gordian](https://discourse.itk.org/u/Gordian)\
**Replies:** 2\
**Last updated:** [September 24, 2019, 2:32pm UTC](https://discourse.itk.org/t/multiply-vector-with-scalar-value/2259 "2019-09-24T14:32:23Z")

</div>

Hello, i want to multiply either a vector with a single scalar (s \* {v\_0,...,v\_n} = {s \* v\_0,...,s \* v\_n}) or a elementwise multiplication of two vectors ({w\_0,...,w\_n} \* {v\_0,...,v\_n} = {w\_0 \* v\_0,..., w\_n \* v\_n}). Th…

---

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