Ignore:
Timestamp:
06/22/10 17:53:40 (10 years ago)
Author:
curtis
Message:

Do not fill indices for true color data if LUT is compatible with ImageJ.

File:
1 edited

Legend:

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

    r6554 r6561  
    4949  } 
    5050 
     51  // -- Fields -- 
     52 
     53  /** 
     54   * Whether to fill in the indices. 
     55   * By default, indices are filled iff data not false color. 
     56   */ 
     57  protected Boolean filled = null; 
     58 
    5159  // -- Constructors -- 
    5260 
     
    6169  /** Returns true if the indices are being factored out. */ 
    6270  public boolean isFilled() { 
    63     return reader.isIndexed() && !reader.isFalseColor(); 
     71    if (!reader.isIndexed()) return false; // cannot fill non-indexed color 
     72    return filled == null ? !reader.isFalseColor() : filled; 
     73  } 
     74 
     75  /** Toggles whether the indices should be factored out. */ 
     76  public void setFilled(boolean filled) { 
     77    this.filled = filled; 
    6478  } 
    6579 
Note: See TracChangeset for help on using the changeset viewer.