http://imagej.273.s1.nabble.com/Batch-silently-measure-ROIs-tp3687836p3687837.html
You get this behavior because you have a displayed image. If you open your
be displayed.
Jerome.
> Dear all,
>
> I've written a macro that sequentially measures ROIs from the ROI
> manager. So the macro selects the ROI in the manager using
> roiManager("select", index), uses the roiManager("Measure") function
> to get results, processes some of the results into more results, write
> these processed results to the Results table as new columns.
>
> The problem is, with several hundreds of ROIs I can see the ROIs being
> selected on the image one after another, and the results being written
> to the Results table. Is it possible to accelerate the macro by doing
> this in batch mode ? I added setBatchMode(true) at the beginning of
> the macro and setBatchMode(exit and display) at the very end, but I
> still see the ROIs being selected and measured. The macro
> documentation states :
>
> roiManager("select", index)
> Note that macros that use this function sometimes run orders of
> magnitude faster in batch mode
>
> which leads me to think that it could be done silently. However I've
> not seen any difference with or without batch mode. Do you know if it
> is possible to select a ROI and measure it with no display update
> before the end of the macro ?
>
> Thank you for your help,
>
> Christophe
>
>
> --
> Christophe Leterrier
> Postdoc
> INSERM UMR641 // Ionic channels Lab
> IFR Jean Roche, Mediterranée University
> Marseille, France
>
[hidden email]
>