Changeset 7916


Ignore:
Timestamp:
03/07/12 18:59:56 (7 years ago)
Author:
avivekan
Message:

major flow code changes

Location:
trunk/projects/flow-cytometry/src/main/java/loci/apps/flow
Files:
1 added
1 deleted
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/projects/flow-cytometry/src/main/java/loci/apps/flow/FlowCytometry.java

    r7893 r7916  
    666666 
    667667        //ajeet 
    668         public static int[] getBFParticleAreas(){ 
     668        public static int[] getParticleAreas(boolean isIntensityImage, boolean excludeOnEdge, double thresholdMin, int sizeMin){ 
    669669 
    670670                int[] retVal = new int[1]; 
    671671 
    672672                try{ 
    673 //                      ImagePlus currentImg = WindowManager.getCurrentImage(); 
    674                         IJ.run("bf ParticleAreasPlugin"); 
    675 //                      IJ.runPlugIn("bf ParticleAreasPlugin", null); 
     673                        if(isIntensityImage){ 
     674                                if(excludeOnEdge) IJ.run("Find Particle Areas", "channel=Intensity threshold_minimum="+thresholdMin+" size_minimum="+sizeMin+" exclude_particles_on_edge"); 
     675                                else IJ.run("Find Particle Areas", "channel=Intensity threshold_minimum="+thresholdMin+" size_minimum="+sizeMin+""); 
     676                        } 
     677                        else { 
     678                                if(excludeOnEdge)IJ.run("Find Particle Areas", "channel=Brightfield threshold_minimum="+thresholdMin+" size_minimum="+sizeMin+" exclude_particles_on_edge"); 
     679                                else IJ.run("Find Particle Areas", "channel=Brightfield threshold_minimum="+thresholdMin+" size_minimum="+sizeMin+""); 
     680                        } 
     681 
    676682                        RoiManager rman = RoiManager.getInstance(); 
    677683                        ResultsTable rtab = ResultsTable.getResultsTable(); 
Note: See TracChangeset for help on using the changeset viewer.