Changeset 7218 for branches/4.2


Ignore:
Timestamp:
11/17/10 03:14:46 (10 years ago)
Author:
melissa
Message:

Fixed ImageViewer's default metadata population; closes #525.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/4.2/components/bio-formats/src/loci/formats/gui/ImageViewer.java

    r7007 r7218  
    372372          (PixelType) new PixelTypeEnumHandler().getEnumeration(pixelType), 0); 
    373373 
    374         int nBands = images[0].getRaster().getNumBands(); 
    375         int rgbChannelCount = (sizeC * sizeZ * sizeT) / nBands; 
     374        int rgbChannelCount = images[0].getRaster().getNumBands(); 
    376375        int realChannelCount = sizeC / rgbChannelCount; 
    377376 
    378377        for (int i=0; i<realChannelCount; i++) { 
    379           omeMeta.setChannelID(MetadataTools.createLSID("Channel", i, 0), i, 0); 
     378          omeMeta.setChannelID(MetadataTools.createLSID("Channel", i, 0), 0, i); 
    380379          omeMeta.setChannelSamplesPerPixel( 
    381             new PositiveInteger(rgbChannelCount), i, 0); 
     380            new PositiveInteger(rgbChannelCount), 0, i); 
    382381        } 
    383382 
Note: See TracChangeset for help on using the changeset viewer.