I have a macro that I would like to run in Headless mode (see this recent post for a solved problem with being unable to use roiManager in headless mode.)
This macro employs Analyze Particles, which populates the Results table with particle data. The Results table is refreshed with
I need a second Results table to hold the final multi-row output of the macro.
To do this, I call
This call changes the table named “Results” to “Particles”, so that a subsequent call to
UpdateResults: creates a new table named “Results”. With this new Results table, I call a series of
setResult(("Column", row, value):
commands, so that the new Results table holds my final table.
At the end of the analysis loop, I rename the new Results table “Stats” using the `IJ.remameResults’ call, so that these final data are preserved the next time through the loop when AnalyzeParticles is called. Then, it’s just a matter of renaming the two tables back and forth as multiple images are analyzed. In regular Fiji, this approach works fine.
The problem is that calling
IJ.renameResults("Results,"Particles"); throws an exception:
“Results” not found
Why is this?
updateResults; runs fine, so the data must be held in some structure.
Does the Results Table contain a visual element that doesn’t exist in headless mode? If so, how do I access Results tables in headless mode so these datasets can be maintained as the analysis proceeds through multiple images, and can be ultimately saved to disc?
Many thanks for any help.