Changeset 6640


Ignore:
Timestamp:
07/02/10 16:49:11 (9 years ago)
Author:
bdezonia
Message:

minor edits. did change maxPixel calc for UINT32.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/components/loci-plugins/test/loci/plugins/in/ImporterTest.java

    r6639 r6640  
    355355      case FormatTools.UINT8:   return 255;  
    356356      case FormatTools.UINT16:  return 65535;  
    357       case FormatTools.UINT32:  return 4294967296L; // off by 1 from unsigned max  
     357      case FormatTools.UINT32:  return 4294967295L; // off by 1 from unsigned max 
     358                                            // TODO : prev line modified to get autoscale working better. Off by 1 not true. 
    358359 
    359360      default: 
     
    402403  /** returns the expected max value within a FakeFile plane based on pixel type and if autoscale desired */ 
    403404  private long expectedMax(int pixType, boolean wantAutoscale, long maxPixVal, long maxIndex) 
    404   { 
     405  {                     // TODO - call Math.max() at point of call. Simplify this method to take a maxVal. 
    405406    long max; 
    406407     
     
    15821583    } 
    15831584 
    1584     // TODO - notice I pass in numSeries but don't test it below : no for loop for it. We're only opening the first series. 
    1585     //  Not sure why I'm enforcing the 25 slider rule then. 
    1586      
    15871585    impsCountTest(imps,1); 
    15881586     
     
    23622360  } 
    23632361 
    2364   // TODO - enable virtual case 
    23652362  @Test 
    23662363  public void testColorDefault() 
     
    23932390  } 
    23942391   
    2395   // TODO - enable virtual case 
    23962392  @Test 
    23972393  public void testColorComposite() 
     
    24602456  } 
    24612457   
    2462   // TODO - enable virtual case 
    24632458  @Test 
    24642459  public void testColorColorized() 
     
    24892484  } 
    24902485   
    2491   // TODO - enable virtual case 
    24922486  @Test 
    24932487  public void testColorGrayscale() 
     
    25182512  } 
    25192513   
    2520   // TODO - enable virtual case 
    25212514  @Test 
    25222515  public void testColorCustom() 
     
    25772570    for (int pixType : PIXEL_TYPES) { 
    25782571      for (boolean autoscale : BOOLEAN_STATES) { 
    2579         //if (DEBUG) log("testColorAutoscale(): pixType = "+FormatTools.getPixelTypeString(pixType)+" autoscale = "+autoscale); 
     2572        log("testColorAutoscale(): pixType = "+FormatTools.getPixelTypeString(pixType)+" autoscale = "+autoscale); 
    25802573        autoscaleTester(pixType,autoscale); 
    25812574      } 
     
    29742967      for (int cIndex = 0; cIndex < imp.getNChannels(); cIndex++) { 
    29752968        for (int zIndex = 0; zIndex < imp.getNSlices(); zIndex++) { 
    2976           setZctPosition(imp,zIndex,cIndex,tIndex); 
     2969          setZctPosition(imp,zIndex,cIndex,tIndex);  // TODO - should change this loop to czt order and use setCztPosition() 
    29772970          ImageProcessor proc = imp.getProcessor(); 
    29782971          printVals(proc); 
     
    30223015  } 
    30233016 
     3017  // TODO - see if this can go away. How much does testColorColorize() handle this? 
    30243018  // TODO - make a virtual case when working 
    30253019  // TODO - enable tests rather thans prints. Its been a while since I worked on this and it may be working better now. 
     
    31003094  } 
    31013095 
     3096  // TODO - see if this can go away. How much does testColorComposite() handle this? 
    31023097  // TODO - make a virtual case when working 
    31033098  @Test 
Note: See TracChangeset for help on using the changeset viewer.