Login  Register

Re: editing results

Posted by karo03 on Jul 18, 2009; 9:39am
URL: http://imagej.273.s1.nabble.com/editing-results-tp3691733p3691734.html

I got from Ben Tupper some time ago a piece of code for that purpose:
File name TableHandler.java

import ij.*;
import ij.process.*;
import ij.gui.*;
import ij.measure.*;
import ij.plugin.*;
import ij.plugin.filter.*;

public class TableHandler {

        public static void deleteRow(String row){
                Integer iRow = new Integer(row);
                ResultsTable rt = Analyzer.getResultsTable();
                rt.deleteRow(iRow.intValue());
                rt.show("Results");
        }

}

The macro call is than:

call("TableHandler.deleteRow", rownr);

Regards
Karsten


Am 18.07.2009 um 04:39 schrieb Glen MacDonald:

> Hi,
> is it possible to delete lines in the results table from a macro? Or  
> to filter particle counting results by Solidity, as with Circularity?
>
> Thanks,
> Glen
>
> Glen MacDonald
> Core for Communication Research
> Virginia Merrill Bloedel Hearing Research Center
> Box 357923
> University of Washington
> Seattle, WA 98195-7923  USA
> (206) 616-4156
> [hidden email]
>
> ******************************************************************************
> The box said "Requires WindowsXP or better", so I bought a Macintosh.
> ******************************************************************************

Karsten
[hidden email]