Changeset 6345


Ignore:
Timestamp:
05/18/10 17:32:09 (9 years ago)
Author:
curtis
Message:

Remove some obsolete code.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/components/loci-plugins/src/loci/plugins/in/ImagePlusReader.java

    r6342 r6345  
    188188 
    189189    if (options.isVirtual()) { 
     190      // CTR FIXME - clean up this part 
    190191      boolean doMerge = false; //options.isMergeChannels(); 
    191192      boolean doColorize = false; //options.isColorize(); 
     
    464465      ImagePlusTools.adjustColorRange(imp, process.getMinMaxCalculator()); 
    465466    } 
    466     else if (!(imp.getProcessor() instanceof ColorProcessor)) { 
     467    else if (!(imp.getProcessor() instanceof FloatProcessor)) { 
    467468      // ImageJ may autoscale the images anyway, so we need to manually 
    468469      // set the display range to the min/max values allowed for 
     
    470471      imp.setDisplayRange(0, Math.pow(2, imp.getBitDepth()) - 1); 
    471472    } 
    472  
    473 //    IFormatReader r = options.getReader(); 
    474 //    boolean windowless = options.isWindowless(); 
    475  
    476  
    477     // NB: ImageJ 1.39+ is required for hyperstacks 
    478  
    479 //      boolean hyper = options.isViewHyperstack() || options.isViewBrowser(); 
    480 // 
    481 //      boolean splitC = options.isSplitChannels(); 
    482 //      boolean splitZ = options.isSplitFocalPlanes(); 
    483 //      boolean splitT = options.isSplitTimepoints(); 
    484 // 
    485 //      boolean customColorize = options.isCustomColorize(); 
    486 //      boolean browser = options.isViewBrowser(); 
    487 //      boolean virtual = options.isVirtual(); 
    488 // 
    489 //      if (options.isColorize() || customColorize) { 
    490 //        byte[][][] lut = 
    491 //          Colorizer.makeDefaultLut(imp.getNChannels(), customColorize ? -1 : 0); 
    492 //        imp = Colorizer.colorize(imp, true, stackOrder, lut, r.getSeries(), null, options.isViewHyperstack()); 
    493 //      } 
    494 //      else if (colorModels != null && !browser && !virtual) { 
    495 //        byte[][][] lut = new byte[colorModels.length][][]; 
    496 //        for (int channel=0; channel<lut.length; channel++) { 
    497 //          lut[channel] = new byte[3][256]; 
    498 //          colorModels[channel].getReds(lut[channel][0]); 
    499 //          colorModels[channel].getGreens(lut[channel][1]); 
    500 //          colorModels[channel].getBlues(lut[channel][2]); 
    501 //        } 
    502 //        imp = Colorizer.colorize(imp, true, 
    503 //          stackOrder, lut, r.getSeries(), null, hyper); 
    504 //      } 
    505 //    } 
    506473 
    507474    return imp; 
Note: See TracChangeset for help on using the changeset viewer.