# Multiply vector with scalar value

**URL:** https://discourse.itk.org/t/multiply-vector-with-scalar-value/2259
**Category:** Algorithms
**Tags:** filter, vector
**Created:** [September 24, 2019, 8:43am UTC](https://discourse.itk.org/t/multiply-vector-with-scalar-value/2259 "2019-09-24T08:43:04Z")
**Posts on this page:** 1
**Showing post:** 2

<div class="post-metadata">

### Author: ![dzenanz](https://discourse.itk.org/user_avatar/discourse.itk.org/dzenanz/32/1093_2.png) [@dzenanz](https://discourse.itk.org/u/dzenanz)
#### Post date: [September 24, 2019, 1:34pm UTC](https://discourse.itk.org/t/multiply-vector-with-scalar-value/2259/2 "2019-09-24T13:34:24Z")

</div>

I think that [BinaryGeneratorImageFilter](https://itk.org/Doxygen/html/classitk_1_1BinaryGeneratorImageFilter.html) can do what you want. You will need to define a per-pixel operation via a lambda function or a functor. You can read more about it [here](https://discourse.itk.org/t/new-functor-filter-with-lambda-support/899).

---

_[View the full topic](https://discourse.itk.org/t/multiply-vector-with-scalar-value/2259)._
