Changeset 7256 for trunk


Ignore:
Timestamp:
11/26/10 15:33:48 (10 years ago)
Author:
melissa
Message:

Fixed interleaving bugs in ImageInfo and ImageTools.make24Bits.

Location:
trunk/components/bio-formats/src/loci/formats
Files:
2 edited

Legend:

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

    r7143 r7256  
    164164      int maxC = Math.min(c, a.length); 
    165165      for (int j=maxC-1; j>=0; j--) { 
    166         a[j] = b[interleaved ? i + j * w * h : i * c + j]; 
     166        a[j] = b[interleaved ? i * c + j : i + j * w * h]; 
    167167      } 
    168168      if (c == 1) { 
  • trunk/components/bio-formats/src/loci/formats/tools/ImageInfo.java

    r7151 r7256  
    762762          } 
    763763        } 
    764         images[i - start] = AWTImageTools.makeImage( 
    765           ImageTools.make24Bits(pix, sizeX, sizeY, false, false, min, max), 
     764        images[i - start] = AWTImageTools.makeImage(ImageTools.make24Bits(pix, 
     765          sizeX, sizeY, reader.isInterleaved(), false, min, max), 
    766766          sizeX, sizeY, FormatTools.isSigned(pixelType)); 
    767767      } 
Note: See TracChangeset for help on using the changeset viewer.