I'm trying to write a macro for batch analysis of a large set of images
in a folder. Everything is working fine, but in the process of the analysis, the results table gets updated and opened/closed a few times. One of these prompts me for every cycle to select whether of not I want to save the previous results. I seem to have a bit of a mental block and don't seem to be able to figure out how to determine where in the macro this event occurs and how to prevent it. Is there an easy way to run the macro line by line or to see where the macro is aborted if I select 'Cancel' in the 'Save results' dialogue? Thanks for any advice/suggestions, Volko -- ImageJ mailing list: http://imagej.nih.gov/ij/list.html |
Hi Volko,
If you open your macro in imageJ, the text window contains a Debug function. You can go through the macro step by step. For this you have to click Debug Macro then Step at each line of the macro (Ctrl +E) to continue. In Fiji you need to copy your macro (which opens in a macro editor) in a new text Window (Plugin/New/Text Window) to get the Debug function. Hope it helps. Eric Denarier Grenoble Institut des Neurosciences Inserm U836 Chemin Fortuné Ferrini 38700 La Tronche France Tél :33 (0)4 56 52 05 38 http://neurosciences.ujf-grenoble.fr/ Le 25/03/2016 09:34, Volko Straub a écrit : > I'm trying to write a macro for batch analysis of a large set of > images in a folder. Everything is working fine, but in the process of > the analysis, the results table gets updated and opened/closed a few > times. One of these prompts me for every cycle to select whether of > not I want to save the previous results. I seem to have a bit of a > mental block and don't seem to be able to figure out how to determine > where in the macro this event occurs and how to prevent it. Is there > an easy way to run the macro line by line or to see where the macro is > aborted if I select 'Cancel' in the 'Save results' dialogue? > > Thanks for any advice/suggestions, > Volko > > -- > ImageJ mailing list: http://imagej.nih.gov/ij/list.html -- ImageJ mailing list: http://imagej.nih.gov/ij/list.html Capture.PNG (49K) Download Attachment |
Thanks Eric,
Using the script editor in Fiji, I had forgotten about the Debug function that is available via the ImageJ text window. Would be nice if the script editor in Fiji could incorporate that functionality. Thanks, Volko On 25/03/2016 09:05, Eric Denarier wrote: > Hi Volko, > If you open your macro in imageJ, the text window contains a Debug > function. You can go through the macro step by step. For this you > have to click Debug Macro then Step at each line of the macro (Ctrl > +E) to continue. > > In Fiji you need to copy your macro (which opens in a macro editor) in > a new text Window (Plugin/New/Text Window) to get the Debug function. > > Hope it helps. > > Eric Denarier > Grenoble Institut des Neurosciences > Inserm U836 > Chemin Fortuné Ferrini > 38700 La Tronche > France > > > Tél :33 (0)4 56 52 05 38 > > http://neurosciences.ujf-grenoble.fr/ > > Le 25/03/2016 09:34, Volko Straub a écrit : >> I'm trying to write a macro for batch analysis of a large set of >> images in a folder. Everything is working fine, but in the process of >> the analysis, the results table gets updated and opened/closed a few >> times. One of these prompts me for every cycle to select whether of >> not I want to save the previous results. I seem to have a bit of a >> mental block and don't seem to be able to figure out how to determine >> where in the macro this event occurs and how to prevent it. Is there >> an easy way to run the macro line by line or to see where the macro >> is aborted if I select 'Cancel' in the 'Save results' dialogue? >> >> Thanks for any advice/suggestions, >> Volko >> >> -- >> ImageJ mailing list: http://imagej.nih.gov/ij/list.html > > > -- > ImageJ mailing list: http://imagej.nih.gov/ij/list.html -- ImageJ mailing list: http://imagej.nih.gov/ij/list.html |
Free forum by Nabble | Edit this page |