Changeset 6064


Ignore:
Timestamp:
03/24/10 10:31:45 (10 years ago)
Author:
melissa
Message:

Ported r6063 to 4.1 branch.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/4.1/components/bio-formats/src/loci/formats/tiff/IFD.java

    r5773 r6064  
    547547    int samplesPerPixel = getSamplesPerPixel(); 
    548548    if (bitsPerSample.length < samplesPerPixel) { 
    549       throw new FormatException("BitsPerSample length (" + 
    550         bitsPerSample.length + ") does not match SamplesPerPixel (" + 
    551         samplesPerPixel + ")"); 
     549      LogTools.debug("BitsPerSample length (" + bitsPerSample.length + 
     550        ") does not match SamplesPerPixel(" + samplesPerPixel + ")"); 
     551      int bits = bitsPerSample[0]; 
     552      bitsPerSample = new int[samplesPerPixel]; 
     553      Arrays.fill(bitsPerSample, bits); 
    552554    } 
    553555    int nSamples = (int) Math.min(bitsPerSample.length, samplesPerPixel); 
Note: See TracChangeset for help on using the changeset viewer.