Changeset 6836


Ignore:
Timestamp:
08/23/10 10:26:57 (9 years ago)
Author:
melissa
Message:

Fixed Image indexed passed to MetadataRetrieve.getPixelsBinDataBigEndian(...).

Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/4.2/components/bio-formats/src/loci/formats/in/OMEXMLReader.java

    r6663 r6836  
    305305    int oldSeries = getSeries(); 
    306306 
    307     int imageIndex = 0; 
    308307    for (int i=0; i<numDatasets; i++) { 
    309308      setSeries(i); 
     
    320319      } 
    321320 
    322       Boolean endian = omexmlMeta.getPixelsBinDataBigEndian(imageIndex, 0); 
     321      Boolean endian = omexmlMeta.getPixelsBinDataBigEndian(i, 0); 
    323322      String pixType = omexmlMeta.getPixelsType(i).toString(); 
    324323      core[i].dimensionOrder = omexmlMeta.getPixelsDimensionOrder(i).toString(); 
     
    336335      core[i].pixelType = FormatTools.pixelTypeFromString(pixType); 
    337336      core[i].orderCertain = true; 
    338       imageIndex += core[i].imageCount; 
    339337    } 
    340338    setSeries(oldSeries); 
  • trunk/components/bio-formats/src/loci/formats/in/OMEXMLReader.java

    r6728 r6836  
    305305    int oldSeries = getSeries(); 
    306306 
    307     int imageIndex = 0; 
    308307    for (int i=0; i<numDatasets; i++) { 
    309308      setSeries(i); 
     
    320319      } 
    321320 
    322       Boolean endian = omexmlMeta.getPixelsBinDataBigEndian(imageIndex, 0); 
     321      Boolean endian = omexmlMeta.getPixelsBinDataBigEndian(i, 0); 
    323322      String pixType = omexmlMeta.getPixelsType(i).toString(); 
    324323      core[i].dimensionOrder = omexmlMeta.getPixelsDimensionOrder(i).toString(); 
     
    336335      core[i].pixelType = FormatTools.pixelTypeFromString(pixType); 
    337336      core[i].orderCertain = true; 
    338       imageIndex += core[i].imageCount; 
    339337    } 
    340338    setSeries(oldSeries); 
Note: See TracChangeset for help on using the changeset viewer.