Changeset 6804


Ignore:
Timestamp:
08/17/10 13:17:20 (9 years ago)
Author:
melissa
Message:

Hackish fix for some files that have an incorrect dimension order.

File:
1 edited

Legend:

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

    r6791 r6804  
    552552        core[s].imageCount = num; 
    553553        core[s].dimensionOrder = meta.getPixelsDimensionOrder(i).toString(); 
     554 
     555        // hackish workaround for files exported by OMERO that have an 
     556        // incorrect dimension order 
     557        if (meta.getChannelName(i, 0) == null && 
     558          meta.getUUIDFileName(i, 0).indexOf("__omero_export") != -1) 
     559        { 
     560          int zIndex = core[s].dimensionOrder.indexOf("Z"); 
     561          int tIndex = core[s].dimensionOrder.indexOf("T"); 
     562          core[s].dimensionOrder = zIndex < tIndex ? "XYCZT" : "XYCTZ"; 
     563        } 
     564 
    554565        core[s].orderCertain = true; 
    555566        PhotoInterp photo = firstIFD.getPhotometricInterpretation(); 
Note: See TracChangeset for help on using the changeset viewer.