Changeset 6454


Ignore:
Timestamp:
06/03/10 10:13:27 (10 years ago)
Author:
bdezonia
Message:

testComboManyOptions() - improved and working

File:
1 edited

Legend:

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

    r6453 r6454  
    19571957      ImagePlus imp = imps[zIndex]; 
    19581958       
    1959       final int actualSizeZ = imp.getNSlices(); 
    1960       final int actualSizeC = imp.getNChannels(); 
    1961       final int actualSizeT = imp.getNFrames(); 
    1962  
    19631959      int numC = numInSeries(0,sizeC-1,stepBy); 
    19641960 
    1965       System.out.println("Actual z c t "+actualSizeZ+" "+actualSizeC+" "+actualSizeT); 
    1966       System.out.println("  numInSeries(0,actualSizeZ-1,2)"+numInSeries(0,actualSizeZ-1,2)); 
    1967       System.out.println("  numInSeries(0,actualSizeC-1,2)"+numInSeries(0,actualSizeC-1,2)); 
    1968       System.out.println("  numInSeries(0,actualSizeT-1,2)"+numInSeries(0,actualSizeT-1,2)); 
    1969       System.out.println("  numInSeries(0,sizeZ-1,2)"+numInSeries(0,sizeZ-1,2)); 
    1970       System.out.println("  numInSeries(0,sizeC-1,2)"+numInSeries(0,sizeC-1,2)); 
    1971       System.out.println("  numInSeries(0,sizeT-1,2)"+numInSeries(0,sizeT-1,2)); 
    1972       System.out.println("About to test ZCT vs. "+1+" "+sizeZ+" "+numC); 
    1973        
    1974       //xyzctTest(imp,cropSizeX,cropSizeY,1,sizeZ,sizeC); //  Before tStepBy and works 
    19751961      xyzctTest(imp,cropSizeX,cropSizeY,1,sizeZ,numC); // all dims swapped 
    19761962   
    19771963      ImageStack st = imp.getStack(); 
    1978       //assertEquals(actualSizeC*actualSizeT,st.getSize());  // works before tSTepBy 
    19791964      assertEquals(sizeZ*numC,st.getSize());  // sizeZ = C, numC = T 
    19801965       
    19811966      int p = 1; 
    1982 //      for (int tIndex = 0; tIndex < actualSizeT; tIndex++) // worked before tStepBy 
    19831967      for (int tIndex = 0; tIndex < sizeC; tIndex += stepBy) 
    1984         for (int cIndex = 0; cIndex < actualSizeC; cIndex++) 
     1968        for (int cIndex = 0; cIndex < sizeZ; cIndex++) 
    19851969        { 
    19861970          ImageProcessor proc = st.getProcessor(p++); 
     
    19881972          final int actualC = zIndex(proc); 
    19891973          final int actualT = cIndex(proc); 
    1990           System.out.println(" indices z c t "+zIndex+" "+cIndex+" "+tIndex); 
    1991           System.out.println(" values z c t "+actualZ+" "+actualC+" "+actualT); 
    19921974          assertEquals(zIndex, actualZ); 
    19931975          assertEquals(cIndex, actualC); 
Note: See TracChangeset for help on using the changeset viewer.