Re: entering an equation
Posted by
shilo2 on
Jan 20, 2009; 2:31pm
URL: http://imagej.273.s1.nabble.com/entering-an-equation-tp3694011p3694014.html
Thank you very much
*This is exactly what I am looking for.*
shilo
On Tue, Jan 20, 2009 at 3:46 PM, Rasband Wayne <
[hidden email]> wrote:
> Dear list members,
>>
>> I am using the imageJ to produce radiometric images. The images are
>> results
>> of division of two probes with different excitation wavelength.
>> Since the ration is in correlation to the parameter I interested, I'm
>> looking for a tool to replace the ration values with the parameter value
>> by
>> entering the equation.
>>
>
> ImageJ 1.42h, due next week, will have a Process>Math>Equation command
> where you can enter an equation, such as
>
> v2=v1-0.6/(0.5*v1+0.3)
>
> that will be applied to all the pixels in the image. This will be
> equivalent to running the macro:
>
> for (y=0; y<getHeight; y++) {
> for (x=0; x<getWidth; x++) {
> v1=getPixel(x,y);
> v2=v1-0.6/(0.5*v1+0.3)
> setPixel(x,y,v2)
> }
> }
>
> -wayne
>