Changeset 7142


Ignore:
Timestamp:
10/28/10 10:42:23 (9 years ago)
Author:
melissa
Message:

Fixed a bug that prevented ROIs from being displayed.

Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/4.2/components/loci-plugins/src/loci/plugins/util/ROIHandler.java

    r7000 r7142  
    7777    OME root = (OME) retrieve.getRoot(); 
    7878 
    79     int imageCount = retrieve.getImageCount(); 
     79    int imageCount = images.length; 
    8080    for (int imageNum=0; imageNum<imageCount; imageNum++) { 
    81       Image image = root.getImage(imageNum); 
    82       int roiCount = image.sizeOfLinkedROIList(); 
     81      int roiCount = root.sizeOfROIList(); 
    8382      if (roiCount > 0 && manager == null) { 
    8483        manager = new RoiManager(); 
    8584      } 
    8685      for (int roiNum=0; roiNum<roiCount; roiNum++) { 
    87         Union shapeSet = image.getLinkedROI(roiNum).getUnion(); 
     86        Union shapeSet = root.getROI(roiNum).getUnion(); 
    8887        int shapeCount = shapeSet.sizeOfShapeList(); 
    8988 
  • trunk/components/loci-plugins/src/loci/plugins/util/ROIHandler.java

    r6881 r7142  
    7777    OME root = (OME) retrieve.getRoot(); 
    7878 
    79     int imageCount = retrieve.getImageCount(); 
     79    int imageCount = images.length; 
    8080    for (int imageNum=0; imageNum<imageCount; imageNum++) { 
    81       Image image = root.getImage(imageNum); 
    82       int roiCount = image.sizeOfLinkedROIList(); 
     81      int roiCount = root.sizeOfROIList(); 
    8382      if (roiCount > 0 && manager == null) { 
    8483        manager = new RoiManager(); 
    8584      } 
    8685      for (int roiNum=0; roiNum<roiCount; roiNum++) { 
    87         Union shapeSet = image.getLinkedROI(roiNum).getUnion(); 
     86        Union shapeSet = root.getROI(roiNum).getUnion(); 
    8887        int shapeCount = shapeSet.sizeOfShapeList(); 
    8988 
Note: See TracChangeset for help on using the changeset viewer.