Changeset 3353


Ignore:
Timestamp:
11/09/07 12:52:58 (12 years ago)
Author:
melissa
Message:

Append the appropriate Z, C and T indices to the window title.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/loci/plugins/Slicer.java

    r3333 r3353  
    125125 
    126126    for (int i=0; i<newStacks.length; i++) { 
    127       ImagePlus p = new ImagePlus(imp.getTitle(), newStacks[i]); 
     127      String title = imp.getTitle(); 
     128 
     129      int[] zct = FormatTools.getZCTCoords(stackOrder, sliceZ ? sizeZ : 1, 
     130        sliceC ? sizeC : 1, sliceT ? sizeT : 1, newStacks.length, i); 
     131 
     132      if (sliceZ) title += " - Z=" + zct[0]; 
     133      if (sliceT) { 
     134        if (sliceZ) title += " T=" + zct[2]; 
     135        else title += " - T=" + zct[2]; 
     136      } 
     137      if (sliceC) { 
     138        if (sliceZ || sliceT) title += " C=" + zct[1]; 
     139        else title += " - C=" + zct[1]; 
     140      } 
     141 
     142      ImagePlus p = new ImagePlus(title, newStacks[i]); 
    128143      p.setDimensions(sliceC ? 1 : sizeC, sliceZ ? 1 : sizeZ, 
    129144        sliceT ? 1 : sizeT); 
Note: See TracChangeset for help on using the changeset viewer.