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 |
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 ______________________________________________________________________ |
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/ |
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/ > |
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 > |
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 ______________________________________________________________________ |
Free forum by Nabble | Edit this page |