Multiply vector with scalar value

I think that BinaryGeneratorImageFilter 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.

1 Like