Re: Using "Import results table" and continuing measurements

Posted by Wayne Rasband on
URL: http://imagej.273.s1.nabble.com/Using-Import-results-table-and-continuing-measurements-tp3699522p3699523.html

ImageJ 1.38r adds a File>Import>Results command that does not have this
problem.

-wayne

On May 10, 2007, at 12:09 AM, Justin McGrath wrote:

> Thanks to those who answered my previous question. Here's yet another.
>
> I use the "Import results table" macro from the ImageJ website to load
> unfinished files.  It seems to load them correctly, but then when I
> use the Measure command it clears all of the loaded results. I could
> save the different parts in different files then stick them together
> but having one file would be easier.
>
> I don't know why it's doing it, but I found that if you remove
> run("Clear Results"), so that the Import macro just writes over the
> old data, then Measure doesn't delete the imported data.  Does Clear
> Results set something that tells Measure to start from row 0
> regardless of whether setResult() was used? print(nResults()) gives
> the correct number of results, so ImageJ knows there are rows there.
> It just gets rid of them.
>
> Is this a bug?  How do you resume adding to unfinished files?  For
> now, I'm going to use the inelegant solution of adding run("Measure")
> right after run("Clear Results") in the Import macro.
>
> Thanks,
> Justin
>