Changeset 4003


Ignore:
Timestamp:
05/05/08 14:59:33 (12 years ago)
Author:
melissa
Message:

Fixed compile error.

File:
1 edited

Legend:

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

    r3974 r4003  
    207207      BufferedImage b = openImage(no, x, y, w, h); 
    208208      byte[][] pixels = ImageTools.getPixelBytes(b, false); 
    209       if (pixels.length == 1 && getRGBChannelCount() > 1) { 
    210         pixels = ImageTools.splitChannels(pixels[series], getRGBChannelCount(), 
    211           bpp, false, !core.interleaved[series]); 
    212       } 
    213209      for (int i=0; i<getRGBChannelCount(); i++) { 
    214         System.arraycopy(pixels[i], 0, buf, i*pixels[i].length, 
    215           pixels[i].length); 
     210        byte[] p = ImageTools.splitChannels(pixels[series], i, 
     211          getRGBChannelCount(), bpp, false, !core.interleaved[series]); 
     212        System.arraycopy(p, 0, buf, i*p.length, p.length); 
    216213      } 
    217214      pixels = null; 
Note: See TracChangeset for help on using the changeset viewer.