Changeset 4834


Ignore:
Timestamp:
02/23/09 09:16:48 (11 years ago)
Author:
melissa
Message:

Allow channels to be merged if the original images have color lookup tables.

File:
1 edited

Legend:

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

    r4550 r4834  
    5050  public boolean canMerge() { 
    5151    int c = getSizeC(); 
    52     return c > 1 && c <= 4 && !reader.isRGB() && !reader.isIndexed(); 
     52    return c > 1 && c <= 4 && !reader.isRGB(); 
    5353  } 
    5454 
     
    8383    FormatTools.assertId(getCurrentFile(), true, 2); 
    8484    return canMerge() || reader.isRGB(); 
     85  } 
     86 
     87  /* @see IFormatReader#isIndexed() */ 
     88  public boolean isIndexed() { 
     89    FormatTools.assertId(getCurrentFile(), true, 2); 
     90    return !canMerge() && reader.isIndexed(); 
    8591  } 
    8692 
Note: See TracChangeset for help on using the changeset viewer.