Changeset 3271


Ignore:
Timestamp:
10/12/07 11:33:27 (12 years ago)
Author:
melissa
Message:

Corrected image count calculation if we have indexed color planes.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/loci/formats/in/OMETiffReader.java

    r3266 r3271  
    369369        core.falseColor[currentSeries] = isFalseColor(); 
    370370 
    371         if (core.rgb[currentSeries] && core.indexed[currentSeries] && 
    372           core.sizeC[currentSeries] == 3) 
    373         { 
    374           core.rgb[currentSeries] = false; 
    375           core.indexed[currentSeries] = false; 
    376           core.falseColor[currentSeries] = false; 
    377         } 
    378  
    379371        int sc = core.sizeC[currentSeries]; 
    380         if (core.rgb[currentSeries] && sc > 1) sc /= 3; 
     372        if (core.rgb[currentSeries] && !core.indexed[currentSeries]) sc /= 3; 
     373        if (core.indexed[currentSeries]) core.sizeC[currentSeries] *= 3; 
    381374        core.imageCount[currentSeries] = 
    382375          core.sizeZ[currentSeries] * sc * core.sizeT[currentSeries]; 
Note: See TracChangeset for help on using the changeset viewer.