Changeset 6499


Ignore:
Timestamp:
06/08/10 10:17:44 (9 years ago)
Author:
melissa
Message:

Fixed bug introduced in r6497, for real this time.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/components/loci-plugins/src/loci/plugins/in/ImagePlusReader.java

    r6498 r6499  
    257257        int w = region.width, h = region.height; 
    258258        if (ip instanceof ByteProcessor) { 
    259           throw new FormatException( 
    260             "Found a FloatProcessor, expected a ByteProcessor"); 
     259          if (stackB == null) stackB = new ImageStack(w, h); 
     260          stackB.addSlice(label, ip); 
    261261        } 
    262262        else if (ip instanceof ShortProcessor) { 
    263           throw new FormatException( 
    264             "Found a FloatProcessor, expected a ShortProcessor"); 
     263          if (stackS == null) stackS = new ImageStack(w, h); 
     264          stackS.addSlice(label, ip); 
    265265        } 
    266266        else if (ip instanceof FloatProcessor) { 
Note: See TracChangeset for help on using the changeset viewer.