Login  Register

Re: Help with particle analysis filter

Posted by Marcel on Aug 08, 2008; 9:50am
URL: http://imagej.273.s1.nabble.com/Help-with-particle-analysis-filter-tp3695432p3695434.html

What about selections with an opened ROI Manager ("Add to Manager" option)?
You can create an array with your particles and then select them in the ROI Manager.

Here a short snippet for a plugin which have to be filled with your methods etc.:

public class Select_ implements PlugIn {
 /*Example selection as an array!*/
int [] selection={1,5,8,12};
       
        public void run(String arg) {
        if (RoiManager.getInstance() != null) {
           RoiManager roiManager=RoiManager.getInstance();
               for(int i=0;i<selection.length;i++){
              /*Select more than one particle in the ROI Manager!*/
               roiManager.select(selection[i]-1,true,false);
               }
            }
        }

}

With kind regards

M.Austenfeld