Changeset 4789


Ignore:
Timestamp:
02/09/09 08:03:14 (11 years ago)
Author:
melissa
Message:

Only set LogicalChannel attributes for channels that are present in the image.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/components/bio-formats/src/loci/formats/in/LeicaReader.java

    r4756 r4789  
    967967              store.setDetectorID("Detector:" + detector, 0, detector); 
    968968              for (int i=0; i<getSeriesCount(); i++) { 
     969                if (detector < core[i].sizeC) { 
    969970                store.setDetectorSettingsDetector("Detector:" + detector, i, 
    970971                  detector); 
     972                } 
    971973              } 
    972974            } 
     
    10971099    for (int i=0; i<getSeriesCount(); i++) { 
    10981100      int nextChannel = 0; 
    1099       for (int channel=0; channel<channelNames[i].size(); channel++) { 
     1101      for (int channel=0; channel<getSizeC(); channel++) { 
     1102        if (channel >= channelNames[i].size()) break; 
    11001103        String name = (String) channelNames[i].get(channel); 
    11011104        if (name == null || name.trim().equals("")) continue; 
Note: See TracChangeset for help on using the changeset viewer.