# \#scalar

**URL:** https://discourse.itk.org/tag/scalar/108.md

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

---

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