Changeset 1441


Ignore:
Timestamp:
09/07/06 14:17:45 (14 years ago)
Author:
melissa
Message:

fixed channel detection in LSM reader

File:
1 edited

Legend:

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

    r1402 r1441  
    337337      } 
    338338 
     339      channels = cSize; 
     340 
    339341      // some LSM files will have a thumbnail associated with each plane; this 
    340342      // thumbnail is counted as an extra channel, but since we strip out the 
    341343      // thumbnails, we need to correct the channel count 
    342       while (zSize * cSize * tSize != numImages) { 
     344      while (zSize * cSize * tSize > numImages) { 
    343345        cSize--; 
    344346      } 
     
    346348      if (cSize == 0) cSize++; 
    347349 
     350      if (isRGB(currentId) && cSize == 1 && channels > 2) cSize = 3; 
     351 
    348352      channels = cSize; 
    349       if (isRGB(currentId)) channels *= 3; 
    350353 
    351354      // The metadata store we're working with. 
Note: See TracChangeset for help on using the changeset viewer.