Changeset 6488


Ignore:
Timestamp:
06/04/10 12:20:20 (10 years ago)
Author:
bdezonia
Message:

Fixed issue in adjustColorRange() with calculation of max and min

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/components/loci-plugins/src/loci/plugins/util/ImagePlusTools.java

    r6408 r6488  
    184184    MinMaxCalculator minMaxCalc) 
    185185  { 
    186     double min = Double.MAX_VALUE; 
    187     double max = Double.MIN_VALUE; 
     186    double min = Double.POSITIVE_INFINITY; 
     187    double max = Double.NEGATIVE_INFINITY; 
    188188 
    189189    // try to grab min and max values from the MinMaxCalculator 
     
    207207 
    208208    // couldn't find min and max values; determine manually 
    209     if (min == Double.MAX_VALUE && max == Double.MIN_VALUE) { 
     209    if (min == Double.POSITIVE_INFINITY && max == Double.NEGATIVE_INFINITY) { 
    210210      ImageStack stack = imp.getStack(); 
    211211      for (int i=0; i<stack.getSize(); i++) { 
Note: See TracChangeset for help on using the changeset viewer.