Need a plugin to read .nd2 files in ImageJ

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

Need a plugin to read .nd2 files in ImageJ

Kyle E. Miller
We've been using the Nikon NIS-Elements software, which saves files in nd2 format. It would be
very convenient if these files could be opened through a plug-in by ImageJ. Has anyone written a
plugin for importing these files or is planning to?

Thanks
Reply | Threaded
Open this post in threaded view
|

"Static" macro variables?

Joachim Wesner
Hi,

when programming a plugin I like that I can use statics for any variables
that set processing parameters etc.,
so the next time I run the same plugin the recent settings are already
active (at least within one ImageJ session).

This does not work with macros as there are no static variables. Any good
suggestions to acchieve this?
Saving the settings in a file would be possible, but I find it a bit
clumsy.

Joachim


______________________________________________________________________
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: "Static" macro variables?

Michael Cammer
If you set global variables and then don't reload the macro, the
value from the last run is saved.  For instance:

var a;
a = getNumber(a,a);
print (a);

At each run it will remember the value of a from the previous run.



At 01:43 PM 10/27/06, you wrote:

>Hi,
>
>when programming a plugin I like that I can use statics for any variables
>that set processing parameters etc.,
>so the next time I run the same plugin the recent settings are already
>active (at least within one ImageJ session).
>
>This does not work with macros as there are no static variables. Any good
>suggestions to acchieve this?
>Saving the settings in a file would be possible, but I find it a bit
>clumsy.
>
>Joachim
>
>
>______________________________________________________________________
>This email has been scanned by the MessageLabs Email Security System.
>For more information please visit http://www.messagelabs.com/email
>______________________________________________________________________

____________________________________________________________________________
Michael Cammer   Analytical Imaging Facility   Albert Einstein Coll. of Med.
URL:  http://www.aecom.yu.edu/aif/ 
Reply | Threaded
Open this post in threaded view
|

Re: "Static" macro variables?

jmutterer
Joachim,
you can use the built in preferences file to store values. Take a look
at the callJavaDemo.txt macro, and use :

value  = call("ij.Prefs.get", key, defaultValue);
and
call("ij.Prefs.set", key, value);


Jerome



On 10/27/06, Michael Cammer <[hidden email]> wrote:

> If you set global variables and then don't reload the macro, the
> value from the last run is saved.  For instance:
>
> var a;
> a = getNumber(a,a);
> print (a);
>
> At each run it will remember the value of a from the previous run.
>
>
>
> At 01:43 PM 10/27/06, you wrote:
> >Hi,
> >
> >when programming a plugin I like that I can use statics for any variables
> >that set processing parameters etc.,
> >so the next time I run the same plugin the recent settings are already
> >active (at least within one ImageJ session).
> >
> >This does not work with macros as there are no static variables. Any good
> >suggestions to acchieve this?
> >Saving the settings in a file would be possible, but I find it a bit
> >clumsy.
> >
> >Joachim
> >
> >
> >______________________________________________________________________
> >This email has been scanned by the MessageLabs Email Security System.
> >For more information please visit http://www.messagelabs.com/email
> >______________________________________________________________________
>
> ____________________________________________________________________________
> Michael Cammer   Analytical Imaging Facility   Albert Einstein Coll. of Med.
> URL:  http://www.aecom.yu.edu/aif/
>
Reply | Threaded
Open this post in threaded view
|

Re: Need a plugin to read .nd2 files in ImageJ

ctrueden
In reply to this post by Kyle E. Miller
Hi Kyle,

Bio-Formats does not support ND2, but we may consider adding such
support. Care to send us some sample data? I can provide you with FTP
information for our server, if you wish.

Thanks,
Curtis

On 10/27/06, Kyle E. Miller <[hidden email]> wrote:
> We've been using the Nikon NIS-Elements software, which saves files in nd2 format. It would be
> very convenient if these files could be opened through a plug-in by ImageJ. Has anyone written a
> plugin for importing these files or is planning to?
>
> Thanks
>
Reply | Threaded
Open this post in threaded view
|

Antwort: Re: "Static" macro variables?

Joachim Wesner
In reply to this post by Michael Cammer
Hi Michael,

Oh, I didnĀ“t know that using "var" makes the difference!

I will try this, thanx a lot!

Joachim




                                                                                                                                       
                      Michael Cammer                                                                                                  
                      <[hidden email]         An:      [hidden email]                                                            
                      .EDU>                    Kopie:   (Blindkopie: Joachim Wesner/DEWET/LMSCentral/Leica)                            
                      Gesendet von:            Thema:   Re: "Static" macro variables?                                                  
                      ImageJ Interest                                                                                                  
                      Group                                                                                                            
                      <[hidden email]                                                                                                
                      .GOV>                                                                                                            
                                                                                                                                       
                                                                                                                                       
                      27.10.2006 19:59                                                                                                
                      Bitte antworten                                                                                                  
                      an ImageJ                                                                                                        
                      Interest Group                                                                                                  
                                                                                                                                       




If you set global variables and then don't reload the macro, the
value from the last run is saved.  For instance:

var a;
a = getNumber(a,a);
print (a);

At each run it will remember the value of a from the previous run.



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