Pls: on a "customizable" Set Measurements

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Pls: on a "customizable" Set Measurements

Juan Francisco-2
Hi all:
  On Analyze-->Set Measurement , there  are some operations avalaible. But it would be possible to enter some matematical expresion as well? For instance if I´m intersted into compyte the quantity F= (Imax-Imin)/(Imax+Imin) (where I is gray value) on a ROI, is there some way to adds this equation to Set Measurement
  Thanks very much
  JFC

       
---------------------------------

¿Con Mascota por primera vez? - Sé un mejor Amigo
Entra en Yahoo! Respuestas.
 
Reply | Threaded
Open this post in threaded view
|

Re: Pls: on a "customizable" Set Measurements

Harry Parker
Hi JFC,

You can create a macro to read the measurement results, calculate and and write a new column. See the documentation for the macro functions getResult and setResult. That macro can also run the Measure command, so you could do it all with a single shortcut keystroke.

Or you could simply copy the results to a spreadsheet and have the spreadsheet do the calculations.
 
--  
Harry Parker  
Senior Systems Engineer  
Digital Imaging Systems, Inc.

----- Original Message ----
From: Juan Francisco <[hidden email]>
To: [hidden email]
Sent: Tuesday, February 5, 2008 6:02:27 AM
Subject: Pls: on a "customizable" Set Measurements


Hi
all:
 
On
Analyze-->Set
Measurement
,
there  
are
some
operations
avalaible.
But
it
would
be
possible
to
enter
some
matematical
expresion
as
well?
For
instance
if
I´m
intersted
into
compyte
the
quantity
F=
(Imax-Imin)/(Imax+Imin)
(where
I
is
gray
value)
on
a
ROI,
is
there
some
way
to
adds
this
equation
to
Set
Measurement
 
Thanks
very
much
 
JFC

 
 
 
 
---------------------------------

¿Con
Mascota
por
primera
vez?
-

un
mejor
Amigo
Entra
en
Yahoo!
Respuestas.
 





      ____________________________________________________________________________________
Be a better friend, newshound, and
know-it-all with Yahoo! Mobile.  Try it now.  http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ 
Reply | Threaded
Open this post in threaded view
|

Re: Pls: on a "customizable" Set Measurements

Wayne Rasband
In reply to this post by Juan Francisco-2
Here is a macro that runs the Measure command, calculates F=
(Imax-Imin)/(Imax+Imin) and adds the result of this calculation to the
Results table. You run the macro by pressing the F1 key.

    macro "Derive Result [f1]" {
       run("Measure");
       min = getResult('Min', nResults-1);
       max = getResult('Max', nResults-1);
       if (isNaN(min) || isNaN(max))
          exit("Min & Max not enabled in 'Set Measurements'");
       F = (max-min)/(max+min);
       setResult("F", nResults-1, F);
       updateResults();
    }

-wayne

On Feb 5, 2008, at 6:02 AM, Juan Francisco wrote:

> Hi all:
>   On Analyze-->Set Measurement , there  are some operations avalaible.
> But it would be possible to enter some matematical expresion as well?
> For instance if I´m intersted into compyte the quantity F=
> (Imax-Imin)/(Imax+Imin) (where I is gray value) on a ROI, is there
> some way to adds this equation to Set Measurement
>   Thanks very much
>   JFC
>
>
> ---------------------------------
>
> ¿Con Mascota por primera vez? - Sé un mejor Amigo
> Entra en Yahoo! Respuestas.
>
>