Ignore:
Timestamp:
07/19/10 21:21:25 (10 years ago)
Author:
melissa
Message:
  • Fixed how ICS files with > 4 channels are read.
  • Fixed Channel population when exporting from ImageJ.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/4.2/components/loci-plugins/src/loci/plugins/out/Exporter.java

    r6707 r6710  
    320320        catch (EnumerationException e) { } 
    321321      } 
    322       if (store.getChannelCount(0) == 0 || 
    323         store.getChannelSamplesPerPixel(0, 0) == null) 
    324       { 
     322 
     323      for (int c=0; c<imp.getNChannels(); c++) { 
     324        if (c >= store.getChannelCount(0) || store.getChannelID(0, c) == null) { 
     325          String lsid = MetadataTools.createLSID("Channel", 0, c); 
     326          store.setChannelID(lsid, 0, c); 
     327        } 
    325328        store.setChannelSamplesPerPixel(new PositiveInteger(channels), 0, 0); 
    326       } 
    327       for (int channel=0; channel<store.getChannelCount(0); channel++) { 
    328         if (store.getChannelID(0, channel) == null) { 
    329           String lsid = MetadataTools.createLSID("Channel", 0, channel); 
    330           store.setChannelID(lsid, 0, channel); 
    331         } 
    332329      } 
    333330 
Note: See TracChangeset for help on using the changeset viewer.