Working faster with imagej

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

Working faster with imagej

Tal Shprung
Dear All,

What I am currently doing is, that I have allocated the following shortcuts:

F1 opens the load menu, where i load 2 pictures, one by one.

F2 does binary -> make maxima + Sets Threshold.

I close the two original pictures manually.

F3 opens the image calculator menu, where i choose the pictures and do
Subtract.

F4 measures the area - I measure the area of the subtract picture and of one
of the pictures created after F2.

Then i close all the pictures and open the second set.

Is there a way to do this process faster and more efficient?

Thank you,

Tal Shprung
Reply | Threaded
Open this post in threaded view
|

Antwort: Working faster with imagej

Joachim Wesner
Tal,

I´m a bit confused, you can easily combine all this processing steps in one
simple macro that you generate with the macro recorder, you can also edit
the macro so that it still will
leave you a choice *which* files you want to open  and not the recorded
ones (replace the explicit name in open() with an empty string ""), is that
whatyou need? Or do you need all these steps separately available?

Joachim



                                                                           
             Tal Shprung                                                  
             <[hidden email]                                            
             OM>                                                        An
             Gesendet von:              [hidden email]                
             ImageJ Interest                                         Kopie
             Group                                                        
             <[hidden email].                                       Thema
             GOV>                       Working faster with imagej        
                                                                           
                                                                           
             22.02.2008 12:39                                              
                                                                           
                                                                           
              Bitte antworten                                              
                    an                                                    
              ImageJ Interest                                              
                   Group                                                  
             <[hidden email].                                            
                   GOV>                                                    
                                                                           
                                                                           




Dear All,

What I am currently doing is, that I have allocated the following
shortcuts:

F1 opens the load menu, where i load 2 pictures, one by one.

F2 does binary -> make maxima + Sets Threshold.

I close the two original pictures manually.

F3 opens the image calculator menu, where i choose the pictures and do
Subtract.

F4 measures the area - I measure the area of the subtract picture and of
one
of the pictures created after F2.

Then i close all the pictures and open the second set.

Is there a way to do this process faster and more efficient?

Thank you,

Tal Shprung



______________________________________________________________________
This email has been scanned by the MessageLabs Email Security System.
For more information please visit http://www.messagelabs.com/email 
______________________________________________________________________
Reply | Threaded
Open this post in threaded view
|

Re: Working faster with imagej

Tal Shprung
I have 20 pairs of pictures named 1t0, 1t1, 2t0, 2t1... 20t0, 20t1

what i want is to do the calculations for each pair. As far as i know, i
have to load each pair myself.

The other calculations i do need me to choose the right windows in the
program, or else it will not work... that is why i have divided the actions.
I couldnt find the right command.

Is macro better than plugin?

On Fri, Feb 22, 2008 at 2:28 PM, Joachim Wesner <
[hidden email]> wrote:

> Tal,
>
> I´m a bit confused, you can easily combine all this processing steps in
> one
> simple macro that you generate with the macro recorder, you can also edit
> the macro so that it still will
> leave you a choice *which* files you want to open  and not the recorded
> ones (replace the explicit name in open() with an empty string ""), is
> that
> whatyou need? Or do you need all these steps separately available?
>
> Joachim
>
>
>
>
>             Tal Shprung
>             <[hidden email]
>             OM>                                                        An
>             Gesendet von:              [hidden email]
>             ImageJ Interest                                         Kopie
>             Group
>             <[hidden email].                                       Thema
>             GOV>                       Working faster with imagej
>
>
>             22.02.2008 12:39
>
>
>              Bitte antworten
>                    an
>              ImageJ Interest
>                   Group
>             <[hidden email].
>                   GOV>
>
>
>
>
>
>
> Dear All,
>
> What I am currently doing is, that I have allocated the following
> shortcuts:
>
> F1 opens the load menu, where i load 2 pictures, one by one.
>
> F2 does binary -> make maxima + Sets Threshold.
>
> I close the two original pictures manually.
>
> F3 opens the image calculator menu, where i choose the pictures and do
> Subtract.
>
> F4 measures the area - I measure the area of the subtract picture and of
> one
> of the pictures created after F2.
>
> Then i close all the pictures and open the second set.
>
> Is there a way to do this process faster and more efficient?
>
> Thank you,
>
> Tal Shprung
>
>
>
> ______________________________________________________________________
> This email has been scanned by the MessageLabs Email Security System.
> For more information please visit http://www.messagelabs.com/email
> ______________________________________________________________________
>
Reply | Threaded
Open this post in threaded view
|

Antwort: Re: Working faster with imagej

Joachim Wesner
Hi,

ImageJ Interest Group <[hidden email]> schrieb am 22.02.2008 14:07:17:

> I have 20 pairs of pictures named 1t0, 1t1, 2t0, 2t1... 20t0, 20t1
>
> what i want is to do the calculations for each pair. As far as i know, i
> have to load each pair myself.
>
> The other calculations i do need me to choose the right windows in the
> program, or else it will not work... that is why i have divided the
actions.
> I couldnt find the right command.
>
> Is macro better than plugin?
>

A nacro is "easier" to program than a plugin.

I see, it would not be very difficult to automatically generate 20 file
names
in a macro of the above pattern.

for (i = 1; i <= 20; i++) {
  nm0 = ""+i+"t0";
  nm1 = ""+i+"t1";
}

open(nm0);
open(nm1);

and your processing......

You can select a certain window via it´s name and bring to the front for
further processing,
here some code I made some time ago for this, you would do eg;

id=findWind(nm1);
selectImage(id);

///////////////////////////////////////////////////////////////////////////////////////////////////

function findWin(prefix)
// Find the most recent (most negative ID) image window, whose title starts
with <prefix> and return its ID
{
//  setBatchMode(true);
  id = getImageID();
  minid = 0;
  for (i = 1; i <= nImages; i++) {
    selectImage(i);
    thisid = getImageID();
    if (startsWith(getTitle(), prefix) && thisid < minid)
      minid = thisid;
  }
//  setBatchMode(false);
  selectImage(id);
  return minid;
}


______________________________________________________________________
This email has been scanned by the MessageLabs Email Security System.
For more information please visit http://www.messagelabs.com/email 
______________________________________________________________________