Login  Register

Re: Linear Combination of Images

Posted by Michael Schmid on Aug 12, 2009; 8:22am
URL: http://imagej.273.s1.nabble.com/Linear-Combination-of-Images-tp3691507p3691508.html

Hi Brian,

you can use the Blend Images Plugin
  http://rsb.info.nih.gov/ij/plugins/blend-images.html

it does either
  (1-a)*currentImage + a*secondImage
or
  currentImage + a*secondImage
(the latter iuf you click "fix weight 1 = 1")

If you need two independent factors, you can easily modify it.

Michael

_______________________________________________________________________


On Tue, August 11, 2009 22:58, Brian Wilt wrote:

> Hello,
>
> In the Process -> Image calculator ... dialog, there are some basic
> options, (add, subtract, multiply, etc.).  I was wondering if there
> was an easy way to do linear combinations of images / stacks, ie.
> NewImage = a * OldImage1 + b * OldImage2, where I can specify a and b.
>
> Any suggestions?  Or do I have to write my own plugin?
>
> Much appreciated, Brian
>